Simple method to create a bridge for the ODROID-C1+/C2/XU4.
Is is known that both the ODROID-C1+ and ODROID-C2 (perhaps others) have a limitation with network bridges, at least as they apply to established network tools such as netctl and systemd-networkd. For some reason, neither tool is able to create and bring up a usable network bridge needed for linux containers among other things.
A simple solution to this problem is to use iproute2 and bridge-utils to create the bridge before either of the network managers is called. Once created, both netctl and systemd-networkd work to bring up the bridge.
This repo supplies a simple script to create the bridge and a systemd unit to call it. Enjoy!
- Users of Arch ARM can download odroid-auto-bridge from the AUR.
- Users of other distros can simply install manually, see: INSTALL for dependencies and instructions.
Note - Both examples below use DHCP; obviously static and more advanced setups can be used. See the respective man pages for systemd.network and netctl man page for more options.
- Enable the odroid-auto-bridge service:
systemctl enable odroid-auto-bridge
- Create the following unit in
/etc/systemd/network/
and insure that you have enabled the required services, then reboot:
# /etc/systemd/network/bridge.network
[Match]
Name=br0
[Network]
DHCP=yes
- Enable the odroid-auto-bridge service:
systemctl enable odroid-auto-bridge
- Create the following profile in
/etc/netctl/
and insure that you have enabled it, then reboot:
# /etc/netctl/bridge
Description="Example Bridge connection"
Interface=br0
Connection=bridge
BindsToInterfaces=(eth0)
IP=dhcp