Re: [Lxc-users] Set default GW

2010-06-09 Thread Bodhi Zazen
sourceforge.net Sent: Wednesday, June 9, 2010 2:55:28 PM Subject: Re: [Lxc-users] Set default GW On Wed, 9 Jun 2010, Bodhi Zazen wrote: > Daniel - Thank you for answering, not a big deal. > > Gordon - Aye, that is what I do for containers. For applications I > write an "init" scrip

Re: [Lxc-users] Set default GW

2010-06-09 Thread Gordon Henderson
On Wed, 9 Jun 2010, Bodhi Zazen wrote: > Daniel - Thank you for answering, not a big deal. > > Gordon - Aye, that is what I do for containers. For applications I write an > "init" script > > #!/bin/bash > > route add default gw 192.168.0.1 eth0 > > Additional commands / config > > service start f

Re: [Lxc-users] Set default GW

2010-06-09 Thread Bodhi Zazen
on). then lxc-execute -n foo -f foo.config /path_to/init_script - Original Message - From: "Daniel Lezcano" To: "Bodhi Zazen" Cc: lxc-users@lists.sourceforge.net Sent: Wednesday, June 9, 2010 2:09:50 PM Subject: Re: [Lxc-users] Set default GW On 06/09/2010 09:15 PM, B

Re: [Lxc-users] Set default GW

2010-06-09 Thread Daniel Lezcano
On 06/09/2010 09:15 PM, Bodhi Zazen wrote: > Is there a way to set the default gateway in a linux container ? > > If I set an ipaddress in the config file > > lxc.utsname = foo > lxc.network.type = veth > lxc.network.flags = up > lxc.network.link = br0 > lxc.network.name = eth0 > lxc.network.mtu =

Re: [Lxc-users] Set default GW

2010-06-09 Thread Gordon Henderson
On Wed, 9 Jun 2010, Bodhi Zazen wrote: > Is there a way to set the default gateway in a linux container ? > > If I set an ipaddress in the config file > > lxc.utsname = foo > lxc.network.type = veth > lxc.network.flags = up > lxc.network.link = br0 > lxc.network.name = eth0 > lxc.network.mtu = 150

[Lxc-users] Set default GW

2010-06-09 Thread Bodhi Zazen
Is there a way to set the default gateway in a linux container ? If I set an ipaddress in the config file lxc.utsname = foo lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.name = eth0 lxc.network.mtu = 1500 lxc.network.ipv4 = 192.168.0.10/24 These lines set the