I need to use systemd-networkd to setup a bridge on my C2, but I get errors and no functional network. On my x86_64 box, this setup works fine, but on my C2 it does not work at all.
1. I have bridge-utils installed.
2. I have systemd-networkd and systemd-resolved enabled.
3. I setup the following 3 files in /etc/systemd/network
$this->bbcode_second_pass_code('', ' cat /etc/systemd/network/br0.network
[Match]
Name=br0
[Network]
DHCP=yes
')
$this->bbcode_second_pass_code('', '% cat /etc/systemd/network/br0.netdev
[NetDev]
Name=br0
Kind=bridge')
$this->bbcode_second_pass_code('', '% cat uplink.network
[Match]
Name=eth0
[Network]
Bridge=br0')
When the C2 boots, however, I get the following in the journalctl and no functional network. Any thoughts are appreciated.
$this->bbcode_second_pass_code('', '% journalctl -b -u systemd-networkd
-- Logs begin at Fri 2016-12-09 20:10:44 EST, end at Wed 2016-12-21 12:32:01 EST. --
Dec 21 12:19:55 odroid systemd[1]: Starting Network Service...
Dec 21 12:19:55 odroid systemd-networkd[227]: br0: netdev ready
Dec 21 12:19:55 odroid systemd-networkd[227]: Enumeration completed
Dec 21 12:19:55 odroid systemd[1]: Started Network Service.
Dec 21 12:19:55 odroid systemd-networkd[227]: br0: IPv6 enabled for interface: Success
Dec 21 12:19:55 odroid systemd-networkd[227]: br0: Bridge parameters could not be set: Operation not supported
Dec 21 12:19:55 odroid systemd-networkd[227]: br0: Could not bring up interface: Invalid argument
Dec 21 12:19:55 odroid systemd-networkd[227]: eth0: Could not join netdev: Invalid argument
Dec 21 12:19:55 odroid systemd-networkd[227]: eth0: Failed
')
Note - If I use a simple DHCP setup, the network works fine with systemd-netctld:
$this->bbcode_second_pass_code('', '% cat /etc/systemd/network/eth0.network
[Match]
Name=eth0
[Network]
DHCP=yes
')