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

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to