[lxc-users] Network connection on a Debian unstable host

Geordie geordi at kos.net
Wed Mar 25 00:00:50 UTC 2015


Fajar 

The problem has been solved. I went back through all the notes I
kept when I started this last year. In an obscure note I found a
mention of gateway ie lxc.network.ipv4.gateway

so now my /var/lib/lxc/lsmb1/config
looks like this

 
# Distribution configuration
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.include = /usr/share/lxc/config/debian.userns.conf
lxc.arch = x86_64

# Container specific configuration
lxc.id_map = u 0 100000 65536
lxc.id_map = g 0 100000 65536
lxc.rootfs = /var/lib/lxc/lsmb1/rootfs
lxc.utsname = lsmb1

# Network configuration
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.hwaddr = ac:de:48:00:00:15
lxc.network.ipv4 = 10.0.0.15/24
lxc.network.ipv4.gateway = 10.0.0.1

/etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

auto br0
iface br0 inet dhcp
 bridge_maxwait 0
 bridge_ports eth0
 bridge_fd 0
 bridge_stp off

So happy camper As far as I can tell I did not use
lxc.network.ipv4.gateway in my config file last year, But I got to keep
better notes

Thank you for assistance
Geordie




More information about the lxc-users mailing list