From a4f8e070421ccc3f23c9fff4debcfcc4a6c9a156 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 15 Aug 2011 23:26:13 +0200 Subject: [PATCH] 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. --- etc/network/interfaces | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.30.2