[Lxc-users] Routing issues
Rory Campbell-Lange
rory at campbell-lange.net
Mon Jun 3 16:55:46 UTC 2013
I have (with Rob van der Hoeven's help) setup a Debian Wheezy container on a
Wheezy host. This worked well.
I can ssh into the main host from the lxc host. However I cannot hit the
internet from the lxc host. I'd be grateful for some pointers.
At present I have the following configuration on the host:
auto br0
iface br0 inet static
bridge_ports eth0
bridge_fd 0
address aa.bb.cc.103
netmask 255.255.255.192
gateway aa.bb.cc.65
and the following in the container config:
lxc.utsname = wheezy05
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.ipv4 = aa.bb.cc.87/26
lxc.network.hwaddr = 00:1E:83:8D:7C:25
with the following in wheezy05's /etc/network/interfaces file:
auto eth0
# iface eth0 inet dhcp
iface eth0 inet static
address aa.bb.cc.87
netmask 255.255.255.192
gateway aa.bb.cc.65
One specific issue I found:
* it looks like the container address is assigned at startup and the
'interfaces' network stanza is not run -- I have to assign the
gateway by hand
Many thanks
Rory
--
Rory Campbell-Lange
rory at campbell-lange.net
More information about the lxc-users
mailing list