I use NetworkManager with a WLAN that has two access points (same SSID).

Is there a quick way to switch between

  • auto selection
  • force to connect to one specific access point
  • force usage of the other access point

Command line solution is also fine (as long as NetworkManager can keep managing the device).

Edit: some people think I can easily configure different entries and select between those. This is not true: even with two entries (with fixed BSSID each) with different names (but same SSID), the menu only presents one entry (with the name of the SSID) without indicating BSSID or name of the corresponding trusted entry.

  • 1
    Does this help? askubuntu.com/questions/425583/… – chili555 Sep 9 '14 at 20:34
  • @chili555, no it doesn’t help at all. – I know how to create two trusted entries for the network, but I can not select which one to use (the menu gives only one entry). – Robert Siemer Sep 9 '14 at 20:47
  • If it helps, the nmcli command has an option to specify the BSSID: nmcli con help lists: up id <id> | uuid <id> [iface <iface>] [ap <BSSID>] [--nowait] [--timeout <timeout>] – muru Sep 9 '14 at 20:59

I don't know of anyway to make the GUI show different connections for different BSSIDs, but the CLI tool, nmcli offers this option:

con    Connections
       Get information about NetworkManager's connections.
    COMMAND := { list | status | up | down | delete }
    up id <id> | uuid <id> [iface <iface>] [ap <BSSID>] [nsp <name>]
       [--nowait] [--timeout <timeout>]

This offers two ways to script a switch in access points:

  1. Two connections, with different UUIDs, each with a BSSID specified in the connection settings.
  2. One connection, with the script using the ap parameter to tell NM to connect to an AP.

I have never tried either, but both should be equivalent.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.