Ubuntu 12.04 / kvm / libvirt / problem with network bridge br0
Николай Федосов
nikolay.fedosov at gmail.com
Thu May 17 22:16:07 UTC 2012
try default-gateway for guest 113.203.209.163
16.05.2012 19:07, Thorsten Göllner написал:
> Hi,
>
> I installed 12.04 on my host and installed a 12.04 guest under
> kvm/libvirt. I setup a bridge as described here
> https://help.ubuntu.com/12.04/serverguide/network-configuration.html#bridging
> but my guest can not reach the internet nor other host within my local
> net.
>
> ON THE HOST:
> ============
>
> ~$ ifconfig
> br0 Link encap:Ethernet HWaddr 00:25:90:57:02:c7
> inet addr:113.203.209.163 Bcast:213.203.209.191
> Mask:255.255.255.224
> inet6 addr: fe80::225:90ff:fe57:2c7/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:5195 errors:0 dropped:0 overruns:0 frame:0
> TX packets:3643 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:397189 (397.1 KB) TX bytes:2499669 (2.4 MB)
>
> eth0 Link encap:Ethernet HWaddr 00:25:90:57:02:c7
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:5417 errors:0 dropped:128 overruns:0 frame:0
> TX packets:4775 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:528691 (528.6 KB) TX bytes:2591855 (2.5 MB)
> Interrupt:20 Memory:fba00000-fba20000
>
> 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:5442 errors:0 dropped:0 overruns:0 frame:0
> TX packets:5442 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:2484575 (2.4 MB) TX bytes:2484575 (2.4 MB)
>
> vnet0 Link encap:Ethernet HWaddr fe:54:00:d2:d1:73
> inet6 addr: fe80::fc54:ff:fed2:d173/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:103 errors:0 dropped:0 overruns:0 frame:0
> TX packets:875 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:7882 (7.8 KB) TX bytes:55858 (55.8 KB)
>
> ~$ route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref
> Use Iface
> 0.0.0.0 113.203.209.161 0.0.0.0 UG 100 0
> 0 br0
> 113.203.209.160 0.0.0.0 255.255.255.224 U 0 0
> 0 br0
>
> :~$ sudo iptables -L
> Chain INPUT (policy ACCEPT)
> target prot opt source destination
>
> Chain FORWARD (policy DROP)
> target prot opt source destination
>
> Chain OUTPUT (policy ACCEPT)
> target prot opt source destination
>
> ~$ brctl show
> bridge name bridge id STP enabled interfaces
> br0 8000.0025905702c7 no eth0
> vnet0
>
> ~$ sudo cat /etc/libvirt/qemu/guest.xml
> [...]
> <interface type='bridge'>
> <mac address='52:54:00:d2:d1:73'/>
> <source bridge='br0'/>
> <model type='virtio'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
> function='0x0'/>
> </interface>
> [...]
>
> ON THE GUEST:
> =============
> ~$ ifconfig
> eth0 Link encap:Ethernet HWaddr 52:54:00:d2:d1:73
> inet addr:113.203.209.165 Bcast:213.203.09.191
> Mask:255.255.255.224
> [...]
>
> ~$ route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref
> Use Iface
> 0.0.0.0 113.203.209.161 0.0.0.0 UG 100 0
> 0 eth0
> 1213.203.209.160 0.0.0.0 255.255.255.224 U 0 0
> 0 eth0
>
> :~$ sudo iptables -L
> Chain INPUT (policy ACCEPT)
> target prot opt source destination
>
> Chain FORWARD (policy DROP)
> target prot opt source destination
>
> Chain OUTPUT (policy ACCEPT)
> target prot opt source destination
>
> My NET:
> =======
> host-server: 113.203.209.163
> guest: 113.203.209.165
> default gateway: 113.203.209.161
>
> From the host-server I can ping all hosts and the internet. But on the
> guest I can ping the host (213.203.209.163) but no other host. (TX
> packets increases but no RX packets). Any idea?
>
> Best regards,
> -Thorsten-
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20120518/17f31147/attachment.html>
More information about the ubuntu-server
mailing list