[lxc-devel] [PATCH 1/3] add lxc.network.ipv[46].gateway configuration

2011-08-15 Thread Matthijs Kooijman
This directive adds a default route to the guest at startup. syntax: lxc.network.ipv4.gateway = 10.0.0.1 lxc.network.ipv6.gateway = 2001:db8:85a3::8a2e:370:7334 --- src/lxc/conf.c| 45 ++ src/lxc/conf.h|2 + src/lxc/confile.c | 66 ++

[lxc-devel] [PATCH 2/3] add autodetection of the gateway address

2011-08-15 Thread Matthijs Kooijman
For veth and macvlan networks, this can look up the host address on the bridge (link) interface and add a default route on the guest to that address. This facilitates a typical setup where guests are bridged together. syntax: lxc.ipv4.gateway = auto lxc.ipv6.gateway = auto --- src

[lxc-devel] Patch to automatically set a gateway inside a container

2011-08-15 Thread Matthijs Kooijman
Hey folks, Here's a small patch series that allows setting up a gateway inside a container. Two modes are supported: Defining a static address in lxc.conf, or taking the configured address from the bridge (link) interface and using that as a gateway. The latter is usefule when a number of contain

[lxc-devel] [PATCH 3/3] document lxc.network.ipv[46].gateway options

2011-08-15 Thread Matthijs Kooijman
--- doc/lxc.conf.sgml.in | 43 +++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/doc/lxc.conf.sgml.in b/doc/lxc.conf.sgml.in index cfaa686..532739e 100644 --- a/doc/lxc.conf.sgml.in +++ b/doc/lxc.conf.sgml.in @@ -300,6 +300,28 @@ Foundati

Re: [lxc-devel] Patch to automatically set a gateway inside a container

2011-08-15 Thread Daniel Lezcano
On 08/15/2011 10:58 PM, Matthijs Kooijman wrote: > Hey folks, > > Here's a small patch series that allows setting up a gateway inside a > container. Two modes are supported: Defining a static address in > lxc.conf, or taking the configured address from the bridge (link) > interface and using that a