You are not logged in.
Hello all,
I'm trying to get netctl with wired to wireless failover working, but am running into a roadblock..
I've read, re-read and re-re-read the wiki's here:
https://wiki.archlinux.org/index.php/Netctl#Bonding
https://wiki.archlinux.org/index.php/WP … passphrase
and
https://wiki.archlinux.org/index.php/Sy … pendencies
I followed the wired to wireless failover... and created my bond0 interface... wired works
I then created: /etc/wpa_supplicant/wpa_supplicant-wlan0.conf per the wiki and rebooted.
I get this:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc fq_codel master bond0 state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
3: wlo1: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state DORMANT mode DORMANT group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
as you can see, wlo1 is not up or bonded. I pull a journalctl and get this:
bond0: wlo1 is up - this may be due to an out of date ifenslave
so I followed the next step about creating a custom dependency, and...that's where I get lost.
the wiki states to create a custom dependency file: /etc/systemd/system/wpa_supplicant@wlan0.service.d/customdependency.conf
in my case i would change wlan0 to wlo1. however, I don't have that directory structure. do I just create the missing structure?
am I missing a file? a step somewhere?
thanx
--nixIT
ASRock X570 PG VELOCITA AM4 AMD X570 | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV | ASRock Radeon RX 6700 XT Challenger D
Offline
Yes create /etc/systemd/system/wpa_supplicant@wlo1.service.d/customdependency.conf or `systemctl edit wpa_supplicant@wlo1.service` should create a drop in file.
Offline
@loqs,
Thanx for the quick reply, I made the file, rebooted, and I get this:
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc fq_codel master bond0 state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
3: wlo1: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state DORMANT mode DORMANT group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc fq_codel master bond0 state UP group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
3: wlo1: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state DORMANT group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
inet6 fe80::e611:5bff:fe57:9aaf/64 scope link
valid_lft forever preferred_lft forever
4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
inet 10.16.0.136/24 brd 10.16.0.255 scope global noprefixroute bond0
valid_lft forever preferred_lft forever
inet6 fe80::e611:5bff:fe57:9aaf/64 scope link
valid_lft forever preferred_lft forever
and if I check journalctl
bond0: wlo1 is up - this may be due to an out of date ifenslave
not sure what I'm missing. All I'm looking to do is use wired, and then when I unplug my wifi takes over.
cheers,
--nixIT.
ASRock X570 PG VELOCITA AM4 AMD X570 | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV | ASRock Radeon RX 6700 XT Challenger D
Offline
What is the updated service file now?
systemctl cat wpa_supplicant@wlo1.service
Offline
[Unit]
Description=WPA supplicant daemon (interface-specific version)
Requires=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
Before=network.target
Wants=network.target
# NetworkManager users will probably want the dbus version instead.
[Service]
Type=simple
ExecStart=/usr/bin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf >
[Install]
Alias=multi-user.target.wants/wpa_supplicant@%i.service
# /etc/systemd/system/wpa_supplicant@wlo1.service.d/customdependency.conf
[Unit]
After=netctl@failover.service
ASRock X570 PG VELOCITA AM4 AMD X570 | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV | ASRock Radeon RX 6700 XT Challenger D
Offline
so I deleted all my network profiles, and started over by following the wiki https://wiki.archlinux.org/index.php/Ne … s_failover
steps in a nutsell
--created failover netctl profile
--created wpa_supplicant@wlo1 config
--enabled failover profile via netctl
--enabled wpa_supplicant@wlo1 config via systemctl
--created customdependency file
when I reboot, this is what I get:
$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc fq_codel master bond0 state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DORMANT group default qlen 1000
link/ether 64:27:37:76:1f:b8 brd ff:ff:ff:ff:ff:ff
4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:57:9a:af brd ff:ff:ff:ff:ff:ff
it appears that wlo1 is not being grouped/controlled with bond0.
enp1s0 works, and when I remove the network cable the wifi does not kick in.
not sure what I'm missing, I've seen other posts where people have it working..
any ideas?
thanx
--nixIT
ASRock X570 PG VELOCITA AM4 AMD X570 | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV | ASRock Radeon RX 6700 XT Challenger D
Offline