[Lxc-users] LXC and Slackware 13.37

Matteo Bernardini matteo.bernardini at gmail.com
Tue Jul 12 22:13:04 UTC 2011


Hi Laurens,

I'm using some lxc containers on slackware-13.37 with one interface with
a bridge and the containers still on 192.168.1.x (as example ;) ). If
can be useful this is the script I use to bring it up (it's run from
/etc/rc.d/rc.local)

/sbin/brctl addbr br0
/sbin/brctl setfd br0 0
/sbin/ifconfig br0 192.168.1.5 netmask 255.255.255.0 promisc up
/sbin/brctl addif br0 eth0
ifconfig eth0 0.0.0.0 up
route add default gw 192.168.1.1
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/br0/proxy_arp

the container network part in the config is

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.hwaddr = 2a:29:13:39:99:cf
lxc.network.ipv4 = 192.168.1.62/24
lxc.network.name = eth0

Matteo

-- 
Matteo Bernardini
Comunicazione Integrata
Divisione Didattica, Ricerca e Relazioni Esterne
Scuola Normale Superiore




More information about the lxc-users mailing list