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
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
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
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 =
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
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