<div><br></div><div>It seems that ARP reply is not seen in guest's eth0...</div><div><br></div><div><br></div><br><div class="gmail_quote">2012/6/12 Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>First of all, make sure the host's link actually works. The easiest</div></div>

way is to put the guest's IPv4 address on host's eth0 (if without<br>
bridge) or br0 (if the bridge is active).<br></blockquote><div><br></div><div><br></div><div><b>Host ping test :</b></div><div><font face="'courier new', monospace"># ping -c 4 91.121.99.254</font></div><div><div>


<font face="'courier new', monospace">connect: Network is unreachable</font></div><div><font face="'courier new', monospace"># ifconfig br0 91.121.99.167</font></div><div><font face="'courier new', monospace"># ping -c 4 91.121.99.254</font></div>


<div><font face="'courier new', monospace">PING 91.121.99.254 (91.121.99.254) 56(84) bytes of data.</font></div><div><font face="'courier new', monospace">64 bytes from <a href="http://91.121.99.254" target="_blank">91.121.99.254</a>: icmp_req=1 ttl=255 time=3.32 ms</font></div>


<div><font face="'courier new', monospace">64 bytes from <a href="http://91.121.99.254" target="_blank">91.121.99.254</a>: icmp_req=2 ttl=255 time=0.550 ms</font></div><div><font face="'courier new', monospace">64 bytes from <a href="http://91.121.99.254" target="_blank">91.121.99.254</a>: icmp_req=3 ttl=255 time=0.506 ms</font></div>


<div>...</div></div><div><br></div><div>Working :)</div><div><div>After running this command I've rebooted the host.</div></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Next, do:<br>
- "brctl show" on the host<br></blockquote><div><br></div><div><b>Host brctl show, before starting container :</b></div><div><br></div><div><div><font face="'courier new', monospace">ks357547:~# brctl show</font></div>


<div><font face="'courier new', monospace">bridge name<span style="white-space:pre-wrap"> </span>bridge id<span style="white-space:pre-wrap">               </span>STP enabled<span style="white-space:pre-wrap">     </span>interfaces</font></div>


<div><font face="'courier new', monospace">br0<span style="white-space:pre-wrap">         </span>8000.001cc0178b44<span style="white-space:pre-wrap">       </span>no<span style="white-space:pre-wrap">              </span>eth0</font></div>


</div><div><br></div><div><br></div><div><br></div><div><div><b>Host brctl show, after the container is started :</b></div></div><div><br></div><div><div><font face="'courier new', monospace">ks357547:~# brctl show</font></div>


<div><font face="'courier new', monospace">bridge name<span style="white-space:pre-wrap"> </span>bridge id<span style="white-space:pre-wrap">               </span>STP enabled<span style="white-space:pre-wrap">     </span>interfaces</font></div>


<div><font face="'courier new', monospace">br0<span style="white-space:pre-wrap">         </span>8000.001cc0178b44<span style="white-space:pre-wrap">       </span>no<span style="white-space:pre-wrap">              </span>eth0</font></div>


<div><font face="'courier new', monospace"><span style="white-space:pre-wrap">                                                    </span>vethZkMxv3</font></div><div><font face="'courier new', monospace"><br></font></div></div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- "netstat -nr" on the guest<br></blockquote><div><br></div><div><b>Guest netstat -nr :</b></div><div><br></div><div><div><div># netstat -nr</div><div>Kernel IP routing table</div><div>Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface</div>


<div>91.121.99.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0</div></div></div><div><i><br></i></div><div><i><br></i></div><div><i>Running <b>route add -host 91.121.99.254 eth0</b></i></div><div><br>

</div>
<div><br></div><div><div><b># netstat -nr</b></div><div><font face="'courier new', monospace">Kernel IP routing table</font></div><div><font face="'courier new', monospace">Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface</font></div>


<div><font face="'courier new', monospace">91.121.99.254   0.0.0.0         255.255.255.255 UH        0 0          0 eth0</font></div><div><font face="'courier new', monospace">91.121.99.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0</font></div>


</div><div><br></div><div><br></div><div><div><i>Running <b>route del -net <a href="http://91.121.99.0/24" target="_blank">91.121.99.0/24</a> gw 0.0.0.0 eth0</b></i></div></div><div><br></div><div><br></div><div><div><b># netstat -nr</b></div>


<div><font face="'courier new', monospace">Kernel IP routing table</font></div><div><font face="'courier new', monospace">Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface</font></div>


<div><font face="'courier new', monospace">91.121.99.254   0.0.0.0         255.255.255.255 UH        0 0          0 eth0</font></div></div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



- "tcpdump -n -i eth0 host 91.121.99.254" on the guest and the host,<br>
and "tcpdump -n -i br0 host 91.121.99.254" on the host, to see where<br>
the packets start gone missing.<br></blockquote><div> </div><div><br></div><div><b>Guest tcpdump -n -i eth0 host 91.121.99.254 :</b></div><div><div><div># tcpdump -n -i eth0 host 91.121.99.254</div><div><font face="'courier new', monospace">tcpdump: verbose output suppressed, use -v or -vv for full protocol decode</font></div>


<div><font face="'courier new', monospace">listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes</font></div><div><font face="'courier new', monospace">07:13:35.725768 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div>


<div><font face="'courier new', monospace">07:13:36.741762 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div><div><font face="'courier new', monospace">07:13:37.741763 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div>


<div><font face="'courier new', monospace">07:13:38.741767 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div><div><br></div></div><div><br></div><div><br></div><div><div><b>Host tcpdump -n -i br0 host 91.121.99.254 :</b></div>


</div><div><div><font face="'courier new', monospace"># tcpdump -n -i br0 host 91.121.99.254</font></div><div><font face="'courier new', monospace">tcpdump: WARNING: br0: no IPv4 address assigned</font></div>


<div><font face="'courier new', monospace">tcpdump: verbose output suppressed, use -v or -vv for full protocol decode</font></div><div><font face="'courier new', monospace">listening on br0, link-type EN10MB (Ethernet), capture size 65535 bytes</font></div>


<div><font face="'courier new', monospace">07:15:09.221773 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div><div><font face="'courier new', monospace">07:15:09.222176 ARP, Reply 91.121.99.254 is-at 00:00:0c:07:ac:01, length 46</font></div>


<div><font face="'courier new', monospace">07:15:10.237765 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div><div><font face="'courier new', monospace">07:15:10.238146 ARP, Reply 91.121.99.254 is-at 00:00:0c:07:ac:01, length 46</font></div>


<div><font face="'courier new', monospace">07:15:11.237775 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div><div><font face="'courier new', monospace">07:15:11.238216 ARP, Reply 91.121.99.254 is-at 00:00:0c:07:ac:01, length 46</font></div>


<div><font face="'courier new', monospace">07:15:12.237772 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div><div><font face="'courier new', monospace">07:15:12.238460 ARP, Reply 91.121.99.254 is-at 00:00:0c:07:ac:01, length 46</font></div>


<div style="font-weight:bold"><br></div></div><div><br></div><div><br></div><div><b>Host tcpdump -n -i eth0 host 91.121.99.254 :</b></div></div><div><div><div><font face="'courier new', monospace"># tcpdump -n -i eth0 host 91.121.99.254</font></div>


<div><font face="'courier new', monospace">tcpdump: WARNING: eth0: no IPv4 address assigned</font></div><div><font face="'courier new', monospace">tcpdump: verbose output suppressed, use -v or -vv for full protocol decode</font></div>


<div><font face="'courier new', monospace">listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes</font></div><div><font face="'courier new', monospace">07:15:37.381859 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div>


<div><font face="'courier new', monospace">07:15:37.382222 ARP, Reply 91.121.99.254 is-at 00:00:0c:07:ac:01, length 46</font></div><div><font face="'courier new', monospace">07:15:38.381870 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div>


<div><font face="'courier new', monospace">07:15:38.382211 ARP, Reply 91.121.99.254 is-at 00:00:0c:07:ac:01, length 46</font></div><div><font face="'courier new', monospace">07:15:39.381869 ARP, Request who-has 91.121.99.254 tell 91.121.99.167, length 28</font></div>


<div><font face="'courier new', monospace">07:15:39.382320 ARP, Reply 91.121.99.254 is-at 00:00:0c:07:ac:01, length 46</font></div></div><div><br></div></div><div><br></div><div><br></div><div>Thank you Fajar !</div>

<div><br></div><div><br></div></div>