[Bug 626662] Re: KVM images losing connectivity w/bridged network

Frank Groeneveld 626662 at bugs.launchpad.net
Mon Aug 30 19:15:28 BST 2010


Hello Serge,

Here are the requested outputs:

$ brctl show
ridge name	bridge id		STP enabled	interfaces
br0		8000.002219921724	no		eth0
							eth1
							tap0
							tap1


$ ifconfig -a
br0       Link encap:Ethernet  HWaddr xx:xx:xx:xx:17:24  
          inet addr:xx.xx.xx.xx  Bcast:xx.xx.xx.xx  Mask:255.255.255.0
          inet6 addr: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:603386007 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2296279 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:28072306331 (26.1 GB)  TX bytes:391354428 (373.2 MB)

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:17:24  
          inet6 addr: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:761443820 errors:0 dropped:568 overruns:0 frame:0
          TX packets:170054379 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:141300061621 (131.5 GB)  TX bytes:160379148403 (149.3 GB)
          Interrupt:16 

eth1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:17:25  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3296 (3.2 KB)  TX bytes:3296 (3.2 KB)

tap0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:6f:88  
          inet6 addr: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:578969753 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2654211025 errors:0 dropped:3 overruns:9 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:627719982664 (584.6 GB)  TX bytes:350948393083 (326.8 GB)

tap1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:34:4d  
          inet6 addr: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:50380331 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2252027804 errors:0 dropped:117912 overruns:39 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:34513623019 (32.1 GB)  TX bytes:152631281449 (142.1 GB)

$ netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
xx.xx.xx.0     0.0.0.0         255.255.255.0   U         0 0          0 br0
0.0.0.0         xx.xx.xx.4     0.0.0.0         UG        0 0          0 br0

Note, the gateway really is at .4 :)


$ cat /etc/network/interfaces 
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto br0
iface br0 inet static
	address xx.xx.xx.xx
	netmask 255.255.255.0
	gateway xx.xx.xx.4
	bridge_ports eth0 eth1
	up iptables-restore < /etc/iptables.rules

auto tap0
iface tap0 inet manual
	pre-up tunctl -t tap0 -b -u frank
	up brctl addif br0 tap0
	down brctl delif br0 tap0
	post-down tunctl -d tap0

auto tap1
iface tap1 inet manual
	pre-up tunctl -t tap1 -b -u frank
	up brctl addif br0 tap1
	down brctl delif br0 tap1
	post-down tunctl -d tap1

Thanks for trying to help out!!

-- 
KVM images losing connectivity w/bridged network
https://bugs.launchpad.net/bugs/626662
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.



More information about the Ubuntu-server-bugs mailing list