New configured bridged interface in proxmox, doesn't works in virtual machine

D

dlopeztassara

Guest
Hello everybody.

Recently, I succeed in the configuration of another bridged interface ethernet in a node of a Proxmox VE 2 Cluster. Actually, I figured out that the second bridged interface (vmbr1), must not have a gateway. But, now that the bridged interface is configured, I use it in a virtual machine with Centos 6, but doesn't works.

So, here is the network configuration of the proxmox node.

/etc/network/interfaces

Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

iface eth3 inet manual

auto vmbr0
iface vmbr0 inet static
    address  172.16.156.22
    netmask  255.255.252.0
    gateway  172.16.156.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet static
    address  172.16.156.27
    netmask  255.255.252.0
    bridge_ports eth1
    bridge_stp off
    bridge_fd 0


And, how we see in the next figure, both interfaces works.

working_interfaces.jpg


And, interfaces "eth0", "eth1", "vmbr0", "vmbr1" are ACTIVE in proxmox.


So, my virtual machine, called VM00X-DANIEL-SRV, has a network device, configured with the bridged interface 'vmbr1' (the recently configured interface).

vm_network.png


And, here is the configuration of the interface 'eth0' in the virtual machine (Centos 6)

/etc/sysconfig/network-scripts/ifcfg-eth0

Code:
DEVICE="eth0"
HWADDR="9E:60:C3:C8:2C:6C"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO=static
IPADDR=172.16.156.36
NETMASK=255.255.255.252


And the configuration of the gateway is:

/etc/sysconfig/network

Code:
NETWORKING=yes
HOSTNAME=daniel

GATEWAY=172.16.156.1


And, how we see in the next figures, the network configuration appears to be OK.

"interface configured"

vm_interface.png


"ethtool eth0"

vm_ethtool.png


But, when I make a ping to the gateway, doesn't works. Shows the following.

Code:
# ping 172.16.156.1
PING 172.16.156.1 (172.16.156.1) 56(84) bytes of data.
From 172.16.156.36 icmp_seq=2 Destination Host Unreachable
From 172.16.156.36 icmp_seq=3 Destination Host Unreachable
From 172.16.156.36 icmp_seq=4 Destination Host Unreachable


When I change to the bridged interface 'vmbr0', IT WORKS!!! But with 'vmbr1' doesn't.

Somebody could help with this???

Thank you in advance.
 
You cannot have two interfaces on the same subnet. What happens is that all traffic will be returned to vmbr0 since this bridge has the default gateway on the subnet and packages sent to the default gateway (172.16.156.1) will be routed back to 172.16.156.22 (vmbr0)
 
You don't need to be adding an IP address to any vmbr except the one you manage from.

The bridges work fine as long as you don't give them IP addresses
 

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!