<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
try default-gateway for guest 113.203.209.163<br>
<br>
<br>
16.05.2012 19:07, Thorsten Göllner написал:
<blockquote cite="mid:4FB3C2BD.1050301@ovm-group.com" type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hi,<br>
<br>
I installed 12.04 on my host and installed a 12.04 guest under
kvm/libvirt. I setup a bridge as described here<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://help.ubuntu.com/12.04/serverguide/network-configuration.html#bridging">https://help.ubuntu.com/12.04/serverguide/network-configuration.html#bridging</a><br>
but my guest can not reach the internet nor other host within my
local net.<br>
<br>
ON THE HOST:<br>
============<br>
<br>
<font face="Courier New, Courier, monospace">~$ ifconfig<br>
br0 Link encap:Ethernet HWaddr 00:25:90:57:02:c7<br>
inet addr:113.203.209.163 Bcast:213.203.209.191
Mask:255.255.255.224<br>
inet6 addr: fe80::225:90ff:fe57:2c7/64 Scope:Link<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:5195 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:3643 errors:0 dropped:0 overruns:0
carrier:0<br>
collisions:0 txqueuelen:0<br>
RX bytes:397189 (397.1 KB) TX bytes:2499669 (2.4 MB)<br>
<br>
eth0 Link encap:Ethernet HWaddr 00:25:90:57:02:c7<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:5417 errors:0 dropped:128 overruns:0
frame:0<br>
TX packets:4775 errors:0 dropped:0 overruns:0
carrier:0<br>
collisions:0 txqueuelen:1000<br>
RX bytes:528691 (528.6 KB) TX bytes:2591855 (2.5 MB)<br>
Interrupt:20 Memory:fba00000-fba20000<br>
<br>
lo Link encap:Local Loopback<br>
inet addr:127.0.0.1 Mask:255.0.0.0<br>
inet6 addr: ::1/128 Scope:Host<br>
UP LOOPBACK RUNNING MTU:16436 Metric:1<br>
RX packets:5442 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:5442 errors:0 dropped:0 overruns:0
carrier:0<br>
collisions:0 txqueuelen:0<br>
RX bytes:2484575 (2.4 MB) TX bytes:2484575 (2.4 MB)<br>
<br>
vnet0 Link encap:Ethernet HWaddr fe:54:00:d2:d1:73<br>
inet6 addr: fe80::fc54:ff:fed2:d173/64 Scope:Link<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:103 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:875 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:500<br>
RX bytes:7882 (7.8 KB) TX bytes:55858 (55.8 KB)<br>
<br>
~$ route -n<br>
Kernel IP routing table<br>
Destination Gateway Genmask Flags Metric
Ref Use Iface<br>
0.0.0.0 113.203.209.161 0.0.0.0 UG 100
0 0 br0<br>
113.203.209.160 0.0.0.0 255.255.255.224 U 0
0 0 br0<br>
<br>
:~$ sudo iptables -L<br>
Chain INPUT (policy ACCEPT)<br>
target prot opt source destination<br>
<br>
Chain FORWARD (policy DROP)<br>
target prot opt source destination<br>
<br>
Chain OUTPUT (policy ACCEPT)<br>
target prot opt source destination<br>
<br>
~$ brctl show<br>
bridge name bridge id STP enabled
interfaces<br>
br0 8000.0025905702c7 no eth0<br>
vnet0</font><br>
<br>
~$ sudo cat /etc/libvirt/qemu/guest.xml<br>
<font face="Courier New, Courier, monospace">[...]<br>
<interface type='bridge'><br>
<mac address='52:54:00:d2:d1:73'/><br>
<source bridge='br0'/><br>
<model type='virtio'/><br>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x03' function='0x0'/><br>
</interface><br>
[...]</font><br>
<br>
ON THE GUEST:<br>
=============<br>
<font face="Courier New, Courier, monospace">~$ ifconfig<br>
eth0 Link encap:Ethernet HWaddr 52:54:00:d2:d1:73<br>
inet addr:113.203.209.165 Bcast:213.203.09.191
Mask:255.255.255.224<br>
[...]<br>
<br>
~$ route -n</font><br>
<font face="Courier New, Courier, monospace">Kernel IP routing
table<br>
Destination Gateway Genmask Flags Metric
Ref Use Iface<br>
0.0.0.0 113.203.209.161 0.0.0.0 UG 100
0 0 eth0<br>
1213.203.209.160 0.0.0.0 255.255.255.224 U 0
0 0 eth0</font><br>
<br>
<font face="Courier New, Courier, monospace">:~$ sudo iptables -L<br>
Chain INPUT (policy ACCEPT)<br>
target prot opt source destination<br>
<br>
Chain FORWARD (policy DROP)<br>
target prot opt source destination<br>
<br>
Chain OUTPUT (policy ACCEPT)<br>
target prot opt source destination</font><br>
<br>
My NET:<br>
=======<br>
host-server: 113.203.209.163<br>
guest: 113.203.209.165<br>
default gateway: 113.203.209.161<br>
<br>
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?<br>
<br>
Best regards,<br>
-Thorsten-<br>
<br>
<br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>