You are not logged in.

#1 2016-11-14 20:47:25

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 159
Website

Interface Bonding - Could not join netdev: No such device

For some reason, interface bonding doesn't appear to work without further interaction:

Nov 14 20:27:05 arcade systemd[1]: Starting Network Service...
Nov 14 20:27:05 arcade systemd-networkd[419]: bond0: netdev ready
Nov 14 20:27:05 arcade systemd-networkd[419]: Enumeration completed
Nov 14 20:27:05 arcade systemd[1]: Started Network Service.
Nov 14 20:27:05 arcade systemd-networkd[419]: bond0: netdev could not be created: Cannot assign requested address
Nov 14 20:27:05 arcade systemd-networkd[419]: bond0: Cannot disable IPv6 for interface bond0: No such file or directory
Nov 14 20:27:05 arcade systemd-networkd[419]: eth0: Could not join netdev: No such device
Nov 14 20:27:05 arcade systemd-networkd[419]: eth0: Failed
Nov 14 20:27:05 arcade systemd-networkd[419]: wlan0: found matching network '/etc/systemd/network/wireless.network', based on potentially unpredictable ifname
Nov 14 20:27:05 arcade systemd-networkd[419]: wlan0: Could not join netdev: No such device
Nov 14 20:27:05 arcade systemd-networkd[419]: wlan0: Failed
Nov 14 20:27:06 arcade systemd-networkd[419]: wlan0: found matching network '/etc/systemd/network/wireless.network', based on potentially unpredictable ifname
Nov 14 20:27:06 arcade systemd-networkd[419]: wlan0: Could not join netdev: No such device
Nov 14 20:27:06 arcade systemd-networkd[419]: wlan0: Failed
Nov 14 20:27:06 arcade systemd-networkd[419]: wlan0: found matching network '/etc/systemd/network/wireless.network', based on potentially unpredictable ifname
Nov 14 20:27:06 arcade systemd-networkd[419]: wlan0: Could not join netdev: No such device
Nov 14 20:27:06 arcade systemd-networkd[419]: wlan0: Failed
Nov 14 20:27:09 arcade systemd-networkd[419]: wlan0: found matching network '/etc/systemd/network/wireless.network', based on potentially unpredictable ifname
Nov 14 20:27:09 arcade systemd-networkd[419]: wlan0: Could not join netdev: No such device
Nov 14 20:27:09 arcade systemd-networkd[419]: wlan0: Failed
Nov 14 20:27:09 arcade systemd-networkd[419]: wlan0: Lost carrier
Nov 14 20:27:09 arcade systemd-networkd[419]: wlan0: Gained carrier
Nov 14 20:27:09 arcade systemd-networkd[419]: wlan0: found matching network '/etc/systemd/network/wireless.network', based on potentially unpredictable ifname
Nov 14 20:27:09 arcade systemd-networkd[419]: wlan0: Could not join netdev: No such device
Nov 14 20:27:09 arcade systemd-networkd[419]: wlan0: Failed
Nov 14 20:38:00 arcade systemd-networkd[419]: wlan0: Gained carrier
Nov 14 20:38:00 arcade systemd-networkd[419]: wlan0: Lost carrier
Nov 14 20:38:00 arcade systemd-networkd[419]: bond0: Gained carrier
Nov 14 20:38:00 arcade systemd-networkd[419]: wlan0: found matching network '/etc/systemd/network/wireless.network', based on potentially unpredictable ifname
Nov 14 20:38:00 arcade systemd-networkd[419]: wlan0: Could not join netdev: No such device
Nov 14 20:38:00 arcade systemd-networkd[419]: wlan0: Failed
Nov 14 20:38:00 arcade systemd-networkd[419]: eth0: Could not join netdev: No such device
Nov 14 20:38:00 arcade systemd-networkd[419]: eth0: Failed
Nov 14 20:38:03 arcade systemd-networkd[419]: wlan0: found matching network '/etc/systemd/network/wireless.network', based on potentially unpredictable ifname
Nov 14 20:38:03 arcade systemd-networkd[419]: wlan0: Could not join netdev: No such device
Nov 14 20:38:03 arcade systemd-networkd[419]: wlan0: Failed
Nov 14 20:38:03 arcade systemd-networkd[419]: wlan0: Lost carrier
Nov 14 20:38:03 arcade systemd-networkd[419]: wlan0: Gained carrier
Nov 14 20:38:03 arcade systemd-networkd[419]: wlan0: found matching network '/etc/systemd/network/wireless.network', based on potentially unpredictable ifname
Nov 14 20:38:03 arcade systemd-networkd[419]: wlan0: Could not join netdev: No such device

Both wlan0 and eth0 exist, it's detected them itself here (as networkd is set to look for e* and w*). I can't find anything relevant from Googling that bit specifically.

Weirdly enough, if I then run "ifenslave bond0 wlan0 eth0" then it seems to start working properly, checking the networkd log again shows:

Nov 14 20:38:03 arcade systemd-networkd[419]: bond0: DHCPv4 address 10.0.0.61/24 via 10.0.0.6
Nov 14 20:38:03 arcade systemd-networkd[419]: bond0: Configured

... immediately after. The crux of the issue being the "Could not join netdev: No such device" messages, despite the fact those interfaces exist.

For reference, my network files are:

bond0.netdev
[NetDev]
Name=bond0
Kind=bond
MACAddress=bd:50:99:94:04:ce

[Bond]
Mode=balance-alb
MIIMonitorSec=1s
UpDelaySec=2s
DownDelaySec=8s

bond0.network
[Match]
Name=bond0

[Network]
DHCP=ipv4

wired.network
[Match]
Name=e*

[Network]
Bond=bond0

wireless.network
[Match]
Name=w*

[Network]
Bond=bond0

So what's going on here? What am I missing for it to work on its own without additional interaction?

Offline

Board footer

Powered by FluxBB