Networking on vmbr1 not working.

rahman

Renowned Member
Nov 1, 2010
63
1
73
Hi,

I set two bridge interfaces on the server. The fist one is working OK. The VMs attached to them also working without any problem. But the VMs attached to second bridge has no network connection. They cant get ip via dhcp. They don't work with static ip either. Can't ping even the host.

Here is server's config.
Code:
kvm-44:~# cat /etc/network/interfaces                                                                                                                                            
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 192.168.10.44                                                                                                                                                    
        netmask 255.255.255.0                                                                                                                                                    
        gateway 192.168.10.1                                                                                                                                                     
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

Thanks.
 
Last edited:
Its normal to have the bridge without ip :) As you can see the first bridge has ip address so I can ping the host. I don't want to assign any ip to the second bridge. Why should I? No reason if you don't want the host to have multible IPs.

Well the problem was eth labels. Thanks to qk4l, the port I was trying to use (connected to swicth) was eth2. Wierd though, eth0 and eth2 are on same card so I thought the second port shoud be named eth1 :)