You are not logged in.

#1 2022-07-20 02:45:20

caseydwayne
Member
Registered: 2022-07-20
Posts: 1

Bridge only works after restarting systemd-networkd

Hello. I have a problem where my bridge only comes online after I restart systemd-networkd. I've searched online and asked on Reddit but no solution yet. After I restart the service it works fine. I cannot seem to find a way to fix this.

Here's the output from journalctl tracking networkd. I'll put the config files down below.

Jul 20 02:22:39 ArchLinux systemd-networkd[320]: lanbr: Configuring with /etc/systemd/network/120-bridge-lanbr-static-address.network.
Jul 20 02:22:39 ArchLinux systemd-networkd[320]: lanbr: Link UP
Jul 20 02:22:39 ArchLinux systemd-networkd[320]: eth0: Interface name change detected, renamed to eno1.
Jul 20 02:22:39 ArchLinux systemd-networkd[320]: eno1: Configuring with /etc/systemd/network/110-eno1-config.network.
Jul 20 02:22:39 ArchLinux systemd-networkd[320]: eno1: Link UP
Jul 20 02:22:39 ArchLinux systemd-networkd[320]: lanbr: Gained carrier
Jul 20 02:22:40 ArchLinux systemd-networkd[320]: lanbr: Lost carrier
Jul 20 02:22:41 ArchLinux systemd-networkd[320]: wlan0: Interface name change detected, renamed to wlp0s20f0u12u1.
Jul 20 02:22:42 ArchLinux systemd-networkd[320]: eno1: Gained carrier
Jul 20 02:22:42 ArchLinux systemd-networkd[320]: lanbr: Gained carrier
Jul 20 02:23:23 ArchLinux systemd[1]: Stopping Network Configuration...
Jul 20 02:23:23 ArchLinux systemd[1]: systemd-networkd.service: Deactivated successfully.
Jul 20 02:23:23 ArchLinux systemd[1]: Stopped Network Configuration.
Jul 20 02:23:23 ArchLinux systemd[1]: Starting Network Configuration...
Jul 20 02:23:23 ArchLinux systemd-networkd[1237]: eno1: Link UP
Jul 20 02:23:23 ArchLinux systemd-networkd[1237]: eno1: Gained carrier
Jul 20 02:23:23 ArchLinux systemd-networkd[1237]: lanbr: netdev ready
Jul 20 02:23:23 ArchLinux systemd-networkd[1237]: lanbr: Link UP
Jul 20 02:23:23 ArchLinux systemd-networkd[1237]: lanbr: Gained carrier
Jul 20 02:23:23 ArchLinux systemd-networkd[1237]: lo: Link UP
Jul 20 02:23:23 ArchLinux systemd-networkd[1237]: lo: Gained carrier
Jul 20 02:23:23 ArchLinux systemd-networkd[1237]: Enumeration completed
Jul 20 02:23:23 ArchLinux systemd[1]: Started Network Configuration.
Jul 20 02:23:23 ArchLinux systemd-networkd[1237]: lanbr: netdev exists, using existing without changing its parameters
Jul 20 02:23:23 ArchLinux systemd-networkd[1237]: eno1: Configuring with /etc/systemd/network/110-eno1-config.network.
Jul 20 02:23:24 ArchLinux systemd-networkd[1237]: lanbr: Configuring with /etc/systemd/network/120-bridge-lanbr-static-address.network.

---
*100-bridge-lanbr.netdev*

[NetDev]
Name=lanbr
Kind=bridge

*110-eno1-config.network*

[Match]
Name=eno1
MACAddress=< address here >

[Network]
Bridge=lanbr
Address=192.168.1.99/24
Gateway=192.168.1.254
LinkLocalAddressing=ipv4
IPv6AcceptRA=no

*120-bridge-lanbr-static-address.network*

[Match]
Name=lanbr

[Network]
Address=192.168.1.100/24
Gateway=192.168.1.254
LinkLocalAddressing=ipv4
IPv6AcceptRA=no

---

Everything works fine once I restart the service, but on next boot, I have to do it again.

I can see that the netdev file is loading before the device eth0->eno1 rename, the bridge link state goes UP, and lo isn't available until restarting networkd (at which point everything loads in order).  I can post additional journal logs from the kernel if it helps. I have no idea how to fix this properly.

Offline

Board footer

Powered by FluxBB