[Lxc-users] Routing issues
Serge Hallyn
serge.hallyn at ubuntu.com
Tue Jun 4 00:36:18 UTC 2013
Quoting Rory Campbell-Lange (rory at campbell-lange.net):
> On 04/06/13, Papp Tamas (tompos at martos.bme.hu) wrote:
> >
> > What is the IP address of the container?
>
> The host is on aa.bb.cc.103 (a public net address)
> and the container is on aa.bb.cc.87.
>
> I can get from 87 to 103, but I can't ping the gateway from the
> container.
Hm, here's an idea. Lxc sets /proc/sys/net/ipv4/conf/$link/forwarding.
Perhaps that isn't enough. You might echo 1 >
/proc/sys/net/ipv4/conf/eth0/forwarding and
/proc/sys/net/ipv4/ip_forward.
But,
1. what does 'route -n' in the container (and on the host) show?
2. when you ping the ip address of your router, what does traceroute
(wireshark, whatever) on the host show?
-serge
More information about the lxc-users
mailing list