Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1366  / 1 Year ago, mon, february 13, 2023, 5:56:06

I'm trying to force a wifi connection thru a specific 5GHz network using the bssid on netplan configuration but it always report an error when I ran netplan apply command.


Here is my current configuration that fails:


wlan0:
dhcp4: true
dhcp6: false
link-local: []
access-points:
"wifissid":
password: "wifipassword"
bssid: "3c:28:6d:95:76:00"

The error is the following:


sudo netplan apply
/etc/netplan/30-wlan0.yaml:10:16: Error in network definition: expected mapping (check indentation)
bssid: "3c:28:6d:95:76:00"
^

Tried many different combinations but it always fail.
Could you help me providing an example that works?


Thank you in advance.
Ederson Santos


More From » wireless

 Answers
5

In your question, you have the bssid indented such that it is listed directly under the access-points mapping as if it were an SSID. It must be indented so that it's under the SSID it's associated with (in the above example, indented so that it's under wifissid).


[#1906] Tuesday, February 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rhaeams

Total Points: 115
Total Questions: 111
Total Answers: 103

Location: Burundi
Member since Wed, Nov 25, 2020
3 Years ago
;