Sorry, my fault. I had a typo. The broadcst is configured correctly: 113.203.209.191

Any other idea?

Am 17.05.2012 00:51, schrieb Paul Schulz:

Chech IP address and broadcast addess on br0. They don't appear to match.

On May 17, 2012 12:38 AM, "Thorsten Göllner" <[email protected]> wrote:
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-






--
ubuntu-server mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

-- 
Thorsten Göllner

OVM Office Voice Media GmbH
Herderstrasse 68
40237 Düsseldorf

Tel.: +49(0)211 / 618 57 53
Fax: +49(0)211 / 618 57 54
-- 
ubuntu-server mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Reply via email to