[Lxc-users] Running LXC containers on a laptop

matto fransen mattofransen at gmail.com
Fri Sep 24 16:06:51 UTC 2010


Hi,

On Fri, Sep 24, 2010 at 05:20:04PM +0200, Daniel Lezcano wrote:

> On my host I have also in /etc/network/interfaces:
>
> auto br0
> iface br0 inet static
>     address 172.20.0.1
>     netmask 255.255.255.0
>     bridge_stp off
>     bridge_maxwait 5
>     pre-up  /usr/sbin/brctl addbr br0
>     post-up /usr/sbin/brctl setfd br0 0
>     post-up /sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
>     post-up echo 1 > /proc/sys/net/ipv4/ip_forward
>
> (the host is an ubuntu).

Works like a charm (my host is debian :),

Thanx!

Matto




More information about the lxc-users mailing list