Skip to content

Simple method to create a network bridge for the ODROID-C1+/C2/XU4.

Notifications You must be signed in to change notification settings

graysky2/odroid-auto-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odroid-auto-bridge

Simple method to create a bridge for the ODROID-C1+/C2/XU4.

Rationale

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.

Solution

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!

Installation

  • 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.

Upstream bug reports/forum posts referencing this limitation

Examples

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.

Using systemd-networkd

  1. Enable the odroid-auto-bridge service: systemctl enable odroid-auto-bridge
  2. 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

Using netctl

  1. Enable the odroid-auto-bridge service: systemctl enable odroid-auto-bridge
  2. 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

About

Simple method to create a network bridge for the ODROID-C1+/C2/XU4.

Resources

Stars

Watchers

Forks

Packages

No packages published