title: How to setup LXD containers that communicate over the LAN
body: <p>I have a set of servers rung up to a LAN. I am able to install and work with LXD containers on a machine, but for the life of me I can't get the containers visible on the network. I have attempted to follow these urls, to no avail :</p>
  
  <ul>
  <li><a href="https://www.simpleprecision.com/ubuntu-16-04-lxd-networking-simple-bridge/" rel="nofollow noreferrer">https://www.simpleprecision.com/ubuntu-16-04-lxd-networking-simple-bridge/</a></li>
  <li><a href="https://www.stgraber.org/2016/10/27/network-management-with-lxd-2-3/" rel="nofollow noreferrer">https://www.stgraber.org/2016/10/27/network-management-with-lxd-2-3/</a></li>
  <li><a href="https://www.simpleprecision.com/ubuntu-16-04-lxd-networking-simple-bridge/" rel="nofollow noreferrer">https://www.simpleprecision.com/ubuntu-16-04-lxd-networking-simple-bridge/</a></li>
  </ul>
  
  <p>My servers are setup as follows:</p>
  
  <ol>
  <li><strong>eth0</strong> - Hardware NIC connected to the Internet </li>
  <li><strong>eth1</strong> - Hardware NIC connected to the LAN</li>
  </ol>
  
  <p>If i try to setup a bridge on the eth1 device via lxdbr0, the containers are not visible on the LAN. If i try to setup a bridged <code>br0</code> device manually, bridged to eth1 and using DHCP, the device fails to start.</p>
  
  <p>My /etc/network/interfaces looks like this:</p>
  
  <pre><code>iface lo inet loopback
  
  # The primary network interface
  iface eth0 inet static
      address x.x.x.x
      netmask 255.255.255.224
      gateway x.x.x.x
  
  iface eth1 inet static
      address 192.168.0.61/23
  
  iface br0 inet dhcp
      bridge_ports eth1
      bridge-ifaces eth1
      bridge_stp off
      bridge_fd 0
      bridge_maxwait 0
  
  auto lo eth0 eth1 br0
  </code></pre>
  
  <p>Is it possible to create containers that are visible on the LAN and can connect to the internet?</p>
  
  <p>LXD v2.7 on Ubuntu 16.04</p>