Re: Wifi then Ethernet -> no route
Reply #31 –
$ sudo iw dev wlp12s0 scan
BSS aa:11:bb:22:cc:33(on wlpxxxxxxx)
...
SSID: my-ap-name
...
* primary channel: 4
BSS aa:11:bb:22:cc:34(on wlpxxxxxxx)
...
SSID: my-ap-name
...
* primary channel: 44
wpa_supplicant.conf
...
#ssid=my-ap-name < this would connect to either aa:11:bb:22:cc:33 or aa:11:bb:22:cc:34
bssid=aa:11:bb:22:cc:33
...
In my case I have a dual band wireless router, by default it has 2 channels with the same ssid. WICD sees them in it's gui but wrote a wpa_supplicant.conf using the ssid. wpa_supplicant makes the wireless connection for any method, gui or cli. Similar problems seemed to happen in Network Manager but it might have more config options to fix it.
I returned to a basic manual config for now without any gui to try this out, and it's working OK with the bssid field, with both dhcpcd and dhclient. The higher channel is slower so you need to specify which one, if that's temporarily stronger at startup then the connection might go to that.
So that's what I meant by using the bssid.