Cannot get bridge up with systemd-networkd on C2 [SOLVED]

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

Cannot get bridge up with systemd-networkd on C2 [SOLVED]

Postby graysky » Wed Dec 21, 2016 5:33 pm

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
')
Last edited by graysky on Sun Jan 01, 2017 10:12 pm, edited 1 time in total.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Cannot get bridge up with systemd-networkd on C2

Postby graysky » Wed Dec 28, 2016 10:19 pm

Upstream blames the 3.14.x kernel...
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Cannot get bridge up with systemd-networkd on C2

Postby graysky » Thu Dec 29, 2016 6:53 am

Can anyone get either systemd-networkd or a netctl bridge working? Note that I can get the netctl bridge working, BUT when I try to let an lxc on the C2 use it, no network traffic in the lxc works at all.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Cannot get bridge up with systemd-networkd on C2

Postby graysky » Sun Jan 01, 2017 10:12 pm

I finally figured out a solution to this, see: https://github.com/graysky2/odroid-auto-bridge
Also updated the wiki: https://wiki.archlinux.org/index.php/OD ... ork_bridge
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 2 guests