]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/conf.c
add autodetection of the gateway address
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 30 Aug 2011 21:50:23 +0000 (23:50 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 30 Aug 2011 21:50:23 +0000 (23:50 +0200)
commit19a26f82145042062cb2b11292622efb3ccac37f
tree9595f0bfb22f4f51f345413df3ecd793156ee192
parentf8fee0e2c399af59ee30c62234b47505fbd93725
add autodetection of the gateway address

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

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/confile.c
src/lxc/network.c
src/lxc/network.h
src/lxc/start.c