Problems with networking after editing /etc/network/interfaces.

Misiek

New Member
Jun 5, 2023
1
0
1
Hello. I'm new to Proxmox and I'm trying to resolve my problems with network after editing "/etc/network/interfaces".

I edited manually "/etc/network/interfaces":
auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.31.9
gateway 192.168.31.254
bridge-ports eno1
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.31.41
gateway 192.168.31.254
bridge-ports eno2
bridge-stp off
bridge-fd 0

auto vmbr2
iface vmbr2 inet static
address 192.168.31.42
gateway 192.168.31.254
bridge-ports eno3
bridge-stp off
bridge-fd 0

auto vmbr3
iface vmbr3 inet static
address 192.168.31.43
gateway 192.168.31.254
bridge-ports eno4
bridge-stp off
bridge-fd 0

I did "ifreload -a", rebooted a server.

My first interface eno1 in vmbr0 with WEB GUI https://192.168.31.9:8006 doesn't work, Firefox says "timeout", can't ping.
This happen until I ping eno2 (vmbr1), 192.168.31.41.
After this eno1 is starting to work, WEB GUI with adress https://192.168.31.9:8006 appears.
Eno1 is working for some time, but after some time WEB GUI stops working, says "connection failure" and I must ping again eno2 to "wake up" eno1 and use WEB GUI.
And again and again.

What is happening? Some kind of sleep / hibernation of network cards?
 
Hello,

first of all, there is no subnetmask (neither as CIDR or separate entry) in your configuration.

Then, your configuration will cause a lot of problems regarding routing:
  • You can only have one gateway
  • Never give adresses in the same subnet to different interfaces
Your sporadic timeouts are because there is no clear way for your Proxmox Host to answer to incoming packets, because the routing table is all over the place and thus the reply-packages get sent over random interfaces.

Kind regards,
Benedikt
 
  • Like
Reactions: bobmc
only vmbr0 needs a specific IP address, you can still create a bridge for your extra network interfaces if you like, just don't assign any ip addresses to them. You could still create a VM, attach it to vmbr2 and give the VM an IP of 192.168.31.42, that would work. Alternatively, you could bond two or more of your ports into one logical unit (link aggregation) if your network switch supports this functionality
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!