You are not logged in.

#1 2019-08-03 12:52:47

nomeed
Member
Registered: 2015-05-08
Posts: 10

[SOLVED] systemd-networkd bridges stuck at configuring

My bridges managed by systemd-networkd which are not connected to my physical interface never get an IP address assigned with its *.network file. Sometimes systemd-networkd cannot find a matching network file at all but even if the bridges are stuck at the state configuring.

systemd 242 (242.32-2-arch)
+PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid

My network setup files:

# /etc/systemd/network/10-lxdbr0.netdev
[NetDev]
Kind = bridge
Name = lxdbr0

# /etc/systemd/network/10-lxdbr0.network
[Network]
Address = 10.0.40.0/24
Gateway = 10.0.40.1
LinkLocalAddressing=no

[Match]
Name = lxdbr0

# /etc/systemd/network/10-qkbrlan.netdev
[NetDev]
Kind = bridge
Name = qkbrlan

# /etc/systemd/network/10-qkbrlan.network
[Network]
Address = 10.122.0.0/24
Gateway = 10.122.0.1

[Match]
Name = qkbrlan

# /etc/systemd/network/10-qkbr0.netdev
[NetDev]
Kind = bridge
Name = qkbr0

# /etc/systemd/network/10-qkbr0.network
[Network]
Address = 10.0.41.0/24
Gateway = 10.0.41.1

[Match]
Name = qkbr0

# /etc/systemd/network/10-brlan.netdev
[NetDev]
Kind = bridge
Name = brlan

# /etc/systemd/network/10-brlan.network
[Address]
Address = 10.0.0.6/24
Broadcast = 10.0.0.255
[Match]
Name = brlan
[Network]
DHCP = no
DNS = 10.0.0.2
DNS = 10.0.0.1
LinkLocalAddressing = no
[Route]
Gateway = 10.0.0.1
Metric = 0
PreferredSource = 10.0.0.6
Source = 10.0.0.6/24

I deleted the links before running the following.

$ SYSTEMD_LOG_LEVEL=debug sudo -E /usr/lib/systemd/systemd-networkd
Failed to read $container of PID 1, ignoring: Permission denied
Found container virtualization none.
Bus bus-api-network: changing state UNSET → OPENING
Bus bus-api-network: changing state OPENING → AUTHENTICATING
timestamp of '/etc/systemd/network' changed
brlan: loaded bridge
brlan: Creating
lxdbr0: loaded bridge
lxdbr0: Creating
lxdisolated: loaded bridge
lxdisolated: Creating
qkbr0: loaded bridge
qkbr0: Creating
qkbrlan: loaded bridge
qkbrlan: Creating
No virtualization found in DMI
No virtualization found in CPUID
Virtualization XEN not found, /proc/xen does not exist
This platform does not support /proc/device-tree
UML virtualization not found in /proc/cpuinfo.
This platform does not support /proc/sysinfo
Found VM virtualization none
/usr/lib/systemd/network/80-container-host0.network: Conditions in the file do not match the system environment, skipping.
qkbrlan: New device has no master, continuing without
qkbrlan: Flags change: +MULTICAST +BROADCAST
qkbrlan: Link 30 added
qkbrlan: udev initialized link
qkbrlan: State changed: pending -> initialized
qkbrlan: netdev has index 30
qkbrlan: netdev ready
qkbrlan: Saved original MTU: 1500
qkbr0: New device has no master, continuing without
qkbr0: Flags change: +UP +RUNNING +MULTICAST +BROADCAST
qkbr0: Link 29 added
qkbr0: udev initialized link
qkbr0: State changed: pending -> initialized
qkbr0: netdev has index 29
qkbr0: netdev ready
qkbr0: Saved original MTU: 1500
lxdisolated: New device has no master, continuing without
lxdisolated: Flags change: +MULTICAST +BROADCAST
lxdisolated: Link 28 added
lxdisolated: udev initialized link
lxdisolated: State changed: pending -> initialized
lxdisolated: netdev has index 28
lxdisolated: netdev ready
lxdisolated: Saved original MTU: 1500
lxdbr0: New device has no master, continuing without
lxdbr0: Flags change: +UP +MULTICAST +BROADCAST
lxdbr0: Link 27 added
lxdbr0: udev initialized link
lxdbr0: State changed: pending -> initialized
lxdbr0: netdev has index 27
lxdbr0: netdev ready
lxdbr0: Saved original MTU: 1500
vethE84ULH: Flags change: +UP +LOWER_UP +RUNNING +MULTICAST +BROADCAST
vethE84ULH: Link 11 added
vethE84ULH: udev initialized link
vethE84ULH: State changed: pending -> initialized
vethE84ULH: Saved original MTU: 1500
vethDIJSS8: Flags change: +UP +LOWER_UP +RUNNING +MULTICAST +BROADCAST
vethDIJSS8: Link 9 added
vethDIJSS8: udev initialized link
vethDIJSS8: State changed: pending -> initialized
vethDIJSS8: Saved original MTU: 1500
brlan: New device has no master, continuing without
brlan: Flags change: +UP +LOWER_UP +RUNNING +MULTICAST +BROADCAST
brlan: Link 3 added
brlan: udev initialized link
brlan: State changed: pending -> initialized
brlan: netdev has index 3
brlan: netdev ready
brlan: Saved original MTU: 1500
enlan: Flags change: +UP +LOWER_UP +RUNNING +MULTICAST +BROADCAST
enlan: Link 2 added
enlan: udev initialized link
enlan: State changed: pending -> initialized
enlan: Saved original MTU: 1500
lo: New device has no master, continuing without
lo: Flags change: +LOOPBACK +UP +LOWER_UP +RUNNING
lo: Link 1 added
lo: udev initialized link
lo: State changed: pending -> initialized
lo: Saved original MTU: 65536
brlan: Adding address: 10.0.0.6/24 (valid forever)
lo: Adding address: 127.0.0.1/8 (valid forever)
lo: Adding route: dst: 127.255.255.255/32, src: n/a, gw: n/a, prefsrc: 127.0.0.1
lo: Adding route: dst: 127.0.0.1/32, src: n/a, gw: n/a, prefsrc: 127.0.0.1
lo: Adding route: dst: 127.0.0.0/8, src: n/a, gw: n/a, prefsrc: 127.0.0.1
lo: Adding route: dst: 127.0.0.0/32, src: n/a, gw: n/a, prefsrc: 127.0.0.1
brlan: Adding route: dst: 10.0.0.255/32, src: n/a, gw: n/a, prefsrc: 10.0.0.6
brlan: Adding route: dst: 10.0.0.6/32, src: n/a, gw: n/a, prefsrc: 10.0.0.6
brlan: Adding route: dst: 10.0.0.0/32, src: n/a, gw: n/a, prefsrc: 10.0.0.6
brlan: Adding route: dst: 10.0.0.0/24, src: n/a, gw: n/a, prefsrc: 10.0.0.6
brlan: Adding route: dst: n/a, src: n/a, gw: 10.0.0.1, prefsrc: 10.0.0.6
rtnl: received address with invalid family 128, ignoring
Enumeration completed
Bus bus-api-network: changing state AUTHENTICATING → HELLO
Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=RequestName cookie=2 reply_cookie=0 signature=su error-name=n/a error-message=n/a
Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=AddMatch cookie=3 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_330 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=4 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_329 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=5 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_329 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=6 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_328 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=7 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_327 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=8 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_327 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=9 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_311 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=10 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_311 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=11 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_39 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=12 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_39 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=13 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_33 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=14 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_33 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=15 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_32 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=16 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_32 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=17 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_31 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=18 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_31 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=19 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_33 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=20 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=21 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Got message type=method_return sender=org.freedesktop.DBus destination=:1.67 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Bus bus-api-network: changing state HELLO → RUNNING
Got message type=signal sender=org.freedesktop.DBus.Local destination=n/a path=/org/freedesktop/DBus/Local interface=org.freedesktop.DBus.Local member=Connected cookie=4294967295 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Got message type=signal sender=org.freedesktop.DBus destination=:1.67 path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=2 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Got message type=method_return sender=org.freedesktop.DBus destination=:1.67 path=n/a interface=n/a member=n/a cookie=3 reply_cookie=2 signature=u error-name=n/a error-message=n/a
Requested service name already owned, failing connection.
Bus bus-api-network: changing state RUNNING → CLOSING
Unable to add match type='signal',sender='org.freedesktop.login1',path='/org/freedesktop/login1',interface='org.freedesktop.login1.Manager',member='PrepareForSleep', failing connection: Connection terminated
Bus bus-api-network: changing state CLOSING → CLOSED
brlan: netdev exists, using existing without changing its parameters
brlan: Created
lxdbr0: Flags change: -UP
lxdbr0: Created
lxdisolated: Created
qkbr0: Flags change: -UP -RUNNING
qkbr0: Created
qkbrlan: Created
qkbr0: Flags change: +UP +RUNNING
lxdbr0: Flags change: +UP
qkbrlan: Link state is up-to-date
qkbrlan: found matching network '/etc/systemd/network/10-qkbrlan.network'
qkbrlan: State changed: initialized -> configuring
qkbrlan: Bringing link up
qkbrlan: Bridge parameters set success
qkbr0: Link state is up-to-date
qkbr0: State changed: initialized -> configuring
qkbr0: Bridge parameters set success
lxdisolated: Link state is up-to-date
lxdisolated: Unmanaged
lxdisolated: State changed: initialized -> unmanaged
lxdisolated: Bridge parameters set success
lxdbr0: Link state is up-to-date
lxdbr0: State changed: initialized -> configuring
lxdbr0: Bridge parameters set success
vethE84ULH: Link state is up-to-date
vethE84ULH: Unmanaged
vethE84ULH: State changed: initialized -> unmanaged
vethDIJSS8: Link state is up-to-date
vethDIJSS8: Unmanaged
vethDIJSS8: State changed: initialized -> unmanaged
brlan: Link state is up-to-date
brlan: found matching network '/etc/systemd/network/10-brlan.network'
brlan: State changed: initialized -> configuring
brlan: Setting addresses
brlan: Bridge parameters set success
enlan: Link state is up-to-date
enlan: found matching network '/etc/systemd/network/10-enp5s0.network'
LLDP: Started LLDP client
enlan: Started LLDP.
enlan: State changed: initialized -> configuring
enlan: Enslaving by 'brlan'
brlan: Enslaving link 'enlan'
lo: Link state is up-to-date
lo: Unmanaged
lo: State changed: initialized -> unmanaged
qkbrlan: Flags change: +UP +RUNNING
brlan: Updating address: 10.0.0.6/24 (valid forever)
brlan: Addresses set
brlan: Configuring route: dst: n/a, src: 10.0.0.6, gw: 10.0.0.1, prefsrc: 10.0.0.6
brlan: Setting routes
enlan: Joined netdev
enlan: Configured
enlan: State changed: configuring -> configured
brlan: Routes set
brlan: Configured
brlan: State changed: configuring -> configured
enlan: Set link
qkbr0: Flags change: -RUNNING
qkbrlan: Flags change: -RUNNING
$ sudo networkctl -a 
IDX LINK             TYPE               OPERATIONAL      SETUP
  1 lo               loopback           carrier          unmanaged
  2 enlan            ether              carrier          configured
  3 brlan            bridge             routable         configured
  9 vethDIJSS8       ether              carrier          unmanaged
 11 vethE84ULH       ether              carrier          unmanaged
 27 lxdbr0           bridge             no-carrier       configuring
 28 lxdisolated      bridge             off              unmanaged
 29 qkbr0            bridge             no-carrier       configuring
 30 qkbrlan          bridge             no-carrier       configuring

● 27: lxdbr0
       Link File: /usr/lib/systemd/network/99-default.link
    Network File: /etc/systemd/network/10-lxdbr0.network
            Type: bridge
           State: no-carrier (configuring)
          Driver: bridge
      HW Address: 1a:98:9d:73:2d:4a

● 29: qkbr0
       Link File: /usr/lib/systemd/network/99-default.link
    Network File: /etc/systemd/network/10-qkbr0.network
            Type: bridge
           State: no-carrier (configuring)
          Driver: bridge
      HW Address: 06:7e:13:a7:89:8c

● 30: qkbrlan
       Link File: /usr/lib/systemd/network/99-default.link
    Network File: /etc/systemd/network/10-qkbrlan.network
            Type: bridge
           State: no-carrier (configuring)
          Driver: bridge
      HW Address: 02:d7:4a:0d:c0:79

Anyone can help me out? I do not have any clue how to continue debugging the issue.

Last edited by nomeed (2019-08-03 16:37:52)

Offline

#2 2019-08-03 16:25:02

chr0mag
Member
From: Canada
Registered: 2017-02-02
Posts: 87

Re: [SOLVED] systemd-networkd bridges stuck at configuring

By default networkd only configures bridge devices if there is at least one bridge-port/slave connected. If you want your bridges to have IPs without any connected slaves try setting ConfigureWithoutCarrier. You might also want to check out the networkctl man page to get a better idea of what each of the operational states means - I found that helpful.

Offline

#3 2019-08-03 16:37:23

nomeed
Member
Registered: 2015-05-08
Posts: 10

Re: [SOLVED] systemd-networkd bridges stuck at configuring

chr0mag wrote:

By default networkd only configures bridge devices if there is at least one bridge-port/slave connected. If you want your bridges to have IPs without any connected slaves try setting ConfigureWithoutCarrier. You might also want to check out the networkctl man page to get a better idea of what each of the operational states means - I found that helpful.

Damn thanks. Still did not expect it to not configure it without a carrier but makes totally sense why it was not configured from my issue description. Looking it up it is only mentioned in the ConfigureWithoutCarrier= option in the manpage of systemd.network. Would expect something like this described in the description. If that makes any sense.

Last edited by nomeed (2019-08-03 16:38:45)

Offline

Board footer

Powered by FluxBB