[lxc-users] lxc bridge setup

Joe McDonald ideafilter at gmail.com
Sun Mar 8 18:52:38 UTC 2015


I have 5 public IPs (/29) and would like to make them available to lxc
containers.  I am on ubuntu 14.04.

What is the procedure?   I tried to duplicate br0 with br1, etc and
incrementing the IP#, but it didn't like it.  I'd like to make 1 IP
for the host system, and the other 4 IP's each go to a container.

I have this in /etc/network/interfaces:

# The loopback network interface
auto lo p4p1
iface lo inet loopback
iface p4p1 inet manual


auto br0
iface br0 inet static
  bridge_ports p4p1
  bridge_stp off
  bridge_fd 0
  bridge_maxwait 0

  address 104.250.x.x
  netmask 255.255.255.248
  gateway 104.250.x.x
  dns-nameservers 8.8.8.8


More information about the lxc-users mailing list