[Lxc-users] IPv4 container in a non-IPv4 main system ?
Sébastien Montagne
sebastien.montagne at gmail.com
Tue Jun 12 05:59:58 UTC 2012
2012/6/12 Fajar A. Nugraha <list at fajar.net>
> On Tue, Jun 12, 2012 at 12:23 PM, Sébastien Montagne
> <sebastien.montagne at gmail.com> wrote:
> >
> > It seems that ARP reply is not seen in guest's eth0...
>
>
> Well, fix that :)
>
>
> > Guest netstat -nr :
> >
> > # netstat -nr
> > Kernel IP routing table
> > Destination Gateway Genmask Flags MSS Window irtt
> > Iface
> > 91.121.99.0 0.0.0.0 255.255.255.0 U 0 0 0
> > eth0
> >
> >
> > Running route add -host 91.121.99.254 eth0
>
> You shouldn't need to execute that command. Ever.
>
>
> >
> > Running route del -net 91.121.99.0/24 gw 0.0.0.0 eth0
>
> ... and neither does that command. Ever.
>
>
> > Guest tcpdump -n -i eth0 host 91.121.99.254 :
> > # tcpdump -n -i eth0 host 91.121.99.254
> > tcpdump: verbose output suppressed, use -v or -vv for full protocol
> decode
> > listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
> > 07:13:35.725768 ARP, Request who-has 91.121.99.254 tell 91.121.99.167,
> > length 28
> > 07:13:36.741762 ARP, Request who-has 91.121.99.254 tell 91.121.99.167,
> > length 28
>
> >
> > Host tcpdump -n -i br0 host 91.121.99.254 :
> > # tcpdump -n -i br0 host 91.121.99.254
> > tcpdump: WARNING: br0: no IPv4 address assigned
> > tcpdump: verbose output suppressed, use -v or -vv for full protocol
> decode
> > listening on br0, link-type EN10MB (Ethernet), capture size 65535 bytes
> > 07:15:09.221773 ARP, Request who-has 91.121.99.254 tell 91.121.99.167,
> > length 28
> > 07:15:09.222176 ARP, Reply 91.121.99.254 is-at 00:00:0c:07:ac:01, length
> 46
>
> Try tcpdump on your container's veth interface on host side (from your
> example, it was vethZkMxv3). This can help isolate whether the problem
> is in the host (e.g. host firewall) or veth pair (unlikely, but worth
> to try).
Thank you.
I'll try it as soon as possible (server maintenance right now).
> Also:
>
> - disable firewall (e.g. iptables) in the host temporarily, if active
>
No firewall on my system.
> - try simple setup first, with IPv4 in both host and guest
>
It is a hosted server ; I have only 1 available IPv4 address for now.
- make sure the switch/router your server connected to supports
> multiple MAC on the same port
>
I think I use only *one* MAC address : the one my provider gave for my host.
It is the same in
Here is the information the provider gave :
*IP : 91.121.99.167*
*IPv6 : 2001:41d0:1:98a7::/64*
*MAC : 00:1C:C0:17:8B:44*
Or, do you mean the host veth generated interface seems to have created one
of its own ?
If you're using a hosted server, the last one might be the source of
> problem as many provider doesn't allow that.
Okay :(
Do you think it would be possible to solve the problem with e.g.
information in /etc/ethers ?
Thank you Fajar !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120612/d3482673/attachment.html>
More information about the lxc-users
mailing list