---
title: Converting eth0 to br0 and getting all your LXC or LXD onto your LAN
description: Wayne has a great post on the new juju lxd work. I’ve been using it a
  bit and it is awesome. It is super fast and I can create and destroy environments
  faster than creating and destroying with juju-local. One thing which I’ve done which
  has made all LXC and LXD instances more valuable to … Continue reading Converting
  eth0 to br0 and getti […]
url: https://canonical.com/blog/converting-eth0-to-br0-and-getting-all-your-lxc-or-lxd-onto-your-lan?format=md
---

1. [Blog](https://canonical.com/blog)
2. Article

---

[Jay R. Wren](https://canonical.com/blog/author/evarlast "More about Jay R. Wren")

on 10 November 2015

# Converting eth0 to br0 and getting all your LXC or LXD onto your LAN

[containers](https://canonical.com/blog/tag/containers)
[docker](https://canonical.com/blog/tag/docker)
[Juju](https://canonical.com/blog/tag/juju)
[LXC](https://canonical.com/blog/tag/lxc)
[LXD](https://canonical.com/blog/tag/lxd)
[OpenStack](https://canonical.com/blog/tag/openstack)

Share on:* [Facebook](https://www.facebook.com/sharer/sharer.php?u=https://www.canonical.com/blog/converting-eth0-to-br0-and-getting-all-your-lxc-or-lxd-onto-your-lan "Share on Facebook")
* [Twitter](https://twitter.com/share?text=Converting%20eth0%20to%20br0%20and%20getting%20all%20your%20LXC%20or%20LXD%20onto%20your%20LAN&url=https://www.canonical.com/blog/converting-eth0-to-br0-and-getting-all-your-lxc-or-lxd-onto-your-lan&hashtags=ubuntu "Share on Twitter")
* [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https://www.canonical.com/blog/converting-eth0-to-br0-and-getting-all-your-lxc-or-lxd-onto-your-lan&title=Converting%20eth0%20to%20br0%20and%20getting%20all%20your%20LXC%20or%20LXD%20onto%20your%20LAN "Share on LinkedIn")

---

---

## Newsletter signup

Get the latest Canonical news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

By submitting this form, I confirm that I have read and agree to [Canonical's Privacy Policy](https://canonical.com/legal/data-privacy).

Sign up

Wayne Witzell has a [great post](https://insights.ubuntu.com/2015/11/16/juju-and-remote-lxd-host/) on the new juju lxd work. I’ve been using it a bit and it is awesome. It is super fast and I can create and destroy environments faster than creating and destroying with juju-local.

One thing which I’ve done which has made all LXC and LXD instances more valuable to me, in my home development environment, is to use a bridge to put them directly on my home LAN.

Normally, LXC creates its own device, lxc-br0, which is managed by the lxc-net service. The service creates the device, brings it up, manages the dnsmasq tied to it (which provides DHCP for the 10.0.3.0/24 range).

## Bridge your interface

Instead of using lxc-br0, I create a br0. I add my eth0 (and in my case other devices) to that br0. Then I configure LXC and LXD to use br0 instead of lxc-br0. I go as far as stopping the lxc-net service, since I’m not using it.

There is one trick if you are going to do that on a remote home system, e.g. I have an old laptop I leave in the basement and I’m really lazy and I don’t want to walk down there and use its console when I screw up its networking. The trick is to make sure eth0 comes up on br0 when its added there.

Before you do anything, make sure bridge-utils is installed. It probably is if you are already using lxc, but if this is a fresh install, you’ll want to *apt-get install bridge-utils*

Edit your /etc/network/interfaces and disable eth0 by setting it to manual. Add it to br0 by adding a new br0 section and listing eth0 in bridge-ifaces and bridge-ports.

```
auto br0
iface br0 inet dhcp
    bridge-ifaces eth0
    bridge-ports eth0
    up ifconfig eth0 up

iface eth0 inet manual
```

Now run *sudo ifup br0*. At this point something magical happens, the DHCP lease is renewed but this time the IP address is bound to br0. The magical part is that br0 used the eth0 MAC to make the DHCP request and so you get the same IP address in response and even your SSH session stays open. YAY!

## LXC can use any bridge

Now configure LXC to use this bridge.

```
apt-get install lxc
sed -i 's/lxc.network.link = lxcbr0/lxc.network.link = br0/' /etc/lxc/default.conf
```

TADA, now any LXC containers you start with lxc-start will use br0 and get an address from your household DHCP server. They will be accessible from any host in your home.

Now what about LXD?

## LXD can use any bridge

It turns out, while LXD is a layer on top of LXC, it doesn’t use /etc/lxc/default.conf for its default config, but instead uses its own settings. These are editable with *lxc profile edit default*. Change the lxcbr0 in your editor and save and exit. You can check that it is correct by using *lxc profile show default*.

There you have it. LXD instances starting on your local LAN.

Now go [read Wayne’s post again](https://insights.ubuntu.com/2015/11/16/juju-and-remote-lxd-host/) and use the Juju LXD provider.

[Read Original Post](http://jrwren.wrenfam.com/blog/2015/11/10/converting-eth0-to-br0-and-getting-all-your-lxc-or-lxd-onto-your-lan/)

#### Related posts

---

[Rhys Knipe](https://canonical.com/blog/author/rhysknipe)

7 July 2026

### [Ubuntu Server: a platform made for enterprise scale](https://canonical.com/blog/ubuntu-server-a-platform-made-for-enterprise-scale)

Cloud and Infrastructure

Ubuntu tech blog

A platform is an environment that allows software to run smoothly across the infrastructure, runtime, and application layers. The key word there is “smoothly”: a good platform connects those layers so well that you don’t notice it. That’s what Ubuntu Server has become: the essential layer between bare metal and the apps running on top, ...

---

[Canonical](https://canonical.com/blog/author/canonical)

20 March 2026

### [Canonical partners with Snyk for scanning chiseled Ubuntu containers](https://canonical.com/blog/canonical-partners-with-snyk-for-scanning-chiseled-ubuntu-containers)

Canonical announcements

Ubuntu tech blog

Canonical, the publisher of Ubuntu, is pleased to announce a new partnership with developer-focused cybersecurity company Snyk. Snyk Container, Snyk’s container security solution, now offers native support for scanning chiseled Ubuntu containers. This partnership will create a path to a more secure container ecosystem, where developers wi ...

---

[Miona Aleksic](https://canonical.com/blog/author/mionaalex)

20 March 2026

### [Introducing MicroCloud Cluster Manager](https://canonical.com/blog/introducing-microcloud-cluster-manager)

Cloud and server

Ubuntu tech blog

Canonical introduces the beta release of MicroCloud Cluster Manager, a new way to discover, organize, and operate your MicroCloud environments from a single, unified interface. ...
