From: Matthijs Kooijman Date: Mon, 15 Aug 2011 21:26:13 +0000 (+0200) Subject: network: Add br-lxc bridge for containers. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=a4f8e070421ccc3f23c9fff4debcfcc4a6c9a156;p=matthijs%2Fservers%2Ftika.git network: Add br-lxc bridge for containers. This is a bridge interface, under which all containers will get an interface. Only containers' interfaces will be added there, which will be received by the host system on this bridge interface and routed or NATed from there. --- diff --git a/etc/network/interfaces b/etc/network/interfaces index 04ee0fe..0f2f47d 100644 --- a/etc/network/interfaces +++ b/etc/network/interfaces @@ -8,3 +8,12 @@ iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet dhcp + +auto br-lxc +iface br-lxc inet static + # Set this up as a bridge, but don't add any ports yet. Ports + # will be added when lxc containers are created later on. + bridge_ports none + # Statically configure this bridge + address 10.42.0.1 + netmask 255.255.255.0