Switch wireless access point by CLI
This is a reference site. The section "Switching Connections" indicates how to switch wireless access point.
- generate /etc/network/interfaces like below.
- ifup wlan0=$DEFINED_ESSID
This is a sample of /etc/network/interfaces.
root@debian:~# cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback #auto wlan0 iface home3 inet dhcp wpa-ssid home-access-3 wpa-psk 7ea88602092fa83029c9a4e6d888a6bf3a4bd12eb341efb24294c32588d04616 iface home1 inet dhcp wpa-ssid home-access-1 wpa-psk 0732375e4d2d65951298238ffd8989c3ebe21ec2134fca240d2ddec96fedd320 root@debian:~#
The line "auto wlan0" should be commented out.
This is a procedure how to switch the wireless access point.