Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
systemd-networkd wireless bridging - need to wait for carrier #936
I have configured wlan0 interface to be added to a bridge br0.
However, when systemd-networkd is started it tries to add the wireless interface to the bridge and fails to configure wlan0 with:
Wireless interfaces need to have gained a carrier (by connecting to an existing wireless network or by starting hostapd) before they can be added to a bridge.
Tested using systemd 224.
referenced this issue
Aug 16, 2015
A WIFI interface needs to be set in 4addr mode before it's added to a bridge.
I currently set the 4addr mode with an udev rule:
I can confirm this as well. The workaround by @gdamjan works, too. In my case, wlp1s0 is a pci device, so the udev rule is:
I ran into this issue and couldn't get the suggested udev rule working. I was able to work around it with a simple oneshot service instead:
I also have the same isuue(archlinux systemd231).
when I restart systemd-networkd.service, the log is:
I also have the same issue on Arch and systemd 233.75, my router (sky sr102) seems to support wds/4addr and my wireless card (atheros AR9485 AW-NE186H) too.
I have similar configuration as above apart from the name of wireless interface (wlp2s0). I have set an udev rule, and use systemd-networkd resolvd and wpa_supplicant@wlp2s0.
on fresh boot networkctl gives :
brctl show br0 displays the bridge but no interface attached.
Any help appreciated as it seems to work for some ! Thanks.
referenced this issue
Sep 19, 2017
$ sudo iw dev wlx7cdd90a888e1 set 4addr on command failed: Operation not supported (-95)
Here is my solution
[Unit] Description=Bridge wlx7cdd90a888e1 to br-gfw Wants=network.target BindsTo=sys-subsystem-net-devices-wlx7cdd90a888e1.device After=sys-subsystem-net-devices-wlx7cdd90a888e1.device sys-subsystem-net-devices-br\\x2dgfw.device network.target [Service] #It seem that system's very busy when it just boot-up, brctl addif command will fail. Type=idle ExecStart=/sbin/brctl addif br-gfw wlx7cdd90a888e1 RemainAfterExit=yes [Install] WantedBy=multi-user.target