i am having a problem connecting VMs to the bridge interface. My VMs cannot connect to the host and LAN outside the host, when i ping it just say destination host unreachable.
it seems that my VM is not connected to the br0 interface. I use redhat 5.6 on the host and centos 6 as VMs
i modify ifcfg-br0 interface with this:
DEVICE=br0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
TYPE=Bridge
GATEWAY=10.1.2.1
NETMASK=255.255.255.0
IPADDR=10.1.2.2
my server connects to the outside network with bond0 interface, i modify ifcfg-bond0 like this:
DEVICE=bond0
BOOTPROTO=yes
ONBOOT=yes
USERCTL=no
BONDING_OPTS="mode=4 miimon=50"
BRIDGE=br0
NM_CONTROLLED=no
i use bond0 as my KVM guest's network interface
here is ifcfg-eth0 configuration inside my CentOS KVM guest:
DEVICE=eth0
ONBOOT=yes
GATEWAY=10.1.2.1
NETMASK=255.255.255.0
IPADDR=10.1.2.22
NAME=eth0
NM_CONTROLLED=no
here is the output of brctl show:
bridge name bridge id STP enabled interfaces
br0 8000.bc305be8c04f no bond0
i've disable netfilter for bridge interface, restarting network service but no luck
if anyone know where the problem is, please your help :'(
Best Answer
First, make sure your host network configuration is working correctly. In your Virtual machine configuration file, use "br0" as the networking interface.