1

I need a bridge interface for LXC networking to work. Normally I just do something like this in /etc/network/interfaces:

auto br0
iface br0 inet dhcp
  bridge_ports eth0

But Raspbian uses dhcpcd.

How do I create a bridge on an RPi?

I'm not sure how the internals of LXC work, but I know for a fact that LXC needs a bridge in order to work. I have tried LXC's NAT and couldn't get that to work, and I don't want a NAT layer anyway.

  • 1
    What do you want to bridge if there is only one interface eth0 on the bridge? – Ingo Jul 18 '18 at 19:16
  • I need to create a bridge for LXC to work. That's just what LXC requires. I'm guessing it bridges its virtual interfaces to br0, but I'm no LXC expert. It works fine on my x86 systems, but requires br0 for sure. – cat pants Jul 18 '18 at 19:40
0

I have not done this but it should be possible.

See Using the Raspberry Pi as an access point to share an internet connection (bridge) in Access Point

See also Advanced dhcpcd Configuration in How to set up networking/WiFi in particular Prevent dhcpcd from configuring an interface

NOTE DO NOT include dhcp in interfaces - this will stop dhcpcd from working - use manual and let dhcpcd configure the interfaces. You need to tell dhcpcd which interfaces NOT to configure.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.