My home Wifi access point can see both 5GHz and 2.4GHz. I want to connect to 5GHz as much as possible.
The access points are described as XXXXXXXXXXXX-a and XXXXXXXXXXXX-g, so please read as appropriate. The former is 5GHz and the latter is 2.4GHz.
You have set the connection priority. First, check the priority.
$ nmcli -f NAME,TYPE,DEVICE,AUTOCONNECT,AUTOCONNECT-PRIORITY c
NAME TYPE DEVICE AUTOCONNECT AUTOCONNECT-PRIORITY
XXXXXXXXXXXX-a wifi wlp0s20f3 yes 0
XXXXXXXXXXXX-g wifi --Yes 0
Increase the connection priority of XXXXXXXXXXXX-a. Larger values have higher priority.
$ nmcli connection modify XXXXXXXXXXXX-a connection.autoconnect-priority 10
Check if it has been changed properly.
$ nmcli -f NAME,TYPE,DEVICE,AUTOCONNECT,AUTOCONNECT-PRIORITY c
NAME TYPE DEVICE AUTOCONNECT AUTOCONNECT-PRIORITY
XXXXXXXXXXXX-a wifi wlp0s20f3 yes 10
XXXXXXXXXXXX-g wifi --Yes 0
Priority changed from 0 to 10. I'm sure that this should give priority to the 5GHz connection.
If you have any comments, please. Please give us a better method, the disadvantages of the above method, and a correction request.
--Environment - Debian bullseye - network-manager 1.26.0-1 amd64 --References -<qastack.jp> How to manage the priority of available wireless networks
end
Recommended Posts