[Lxc-users] Can not ping outside of local LAN from within a LXC
Kevin LaTona
lists at studiosola.com
Fri Jul 26 20:27:38 UTC 2013
Hi All,
I've been testing LXC and seemed to have run into one final snag that is not allowing them to run smoothly for me.
l was hoping maybe someone might be able to point out a gotcha that is causing this that I might be missing.
I've set up a Bridge on the Host with a static IP address.
All containers are setup with their own static IP addresses.
All test containers will boot up with no problems ( I used the ubuntu template )
All containers can ping any other local LAN point just fine.
But none of the containers can make contact outside the local LAN.
Until I issue route add default gw 192.168.0.1
Now the container can make connect outside the local LAN
For what ever reason it appears that none of the containers are seeing the gateway config call.
I've tried all kind of tweaks to the config files.
As well as adding a post-up route add default gw 192.168.0.1 or up route add default gw 192.168.0.1 to the container's /etc/network/interfaces config file
But this still is not getting the gateway included.
I've looked at ip route, brctl show, and ifconfig both on the host and containers and all appear to be working correctly
Is anybody else had an issue with container gateways like this?
If so how did they solve calling ad adding a route add default gw 192.168.0.1 once the container was running?
I could ssh in and run a python script to do it.
But it seems like I am missing one final config setting that is not allowing the LXC to run correct.
I am running under LXC Candidate: 0.7.5-3ubuntu67 + Ubuntu 12.04.2 LTS
Any thoughts or ideas?
Thanks
-Kevin
More information about the lxc-users
mailing list