wpa_roam:-
Gives priority to wireless networks.
Click to read more....
/etc/wpa_supplicant/wpa_supplicant.conf:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
#update_config=1
country=GB
network={
ssid="ssid1"
psk="wpa1"
key_mgmt=WPA-PSK
priority=1
id_str="NetBackup"
}
network={
ssid="ssid2"
psk="wpa2"
key_mgmt=WPA-PSK
#priority given to greatest (numerical value) first
priority=2
id_str="NetPrefer"
}
/etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.1
network 192.168.0.0
broadcast 192.168.0.255
netmask 255.255.255.0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface NetPrefer inet dhcp
iface NetBackup inet dhcp
Formerly "Linuxdoc's Lamentations"...
Welcome to what is by far the world's best combination of a great football-related domain name and incredibly nerdy (some may say boring) tech-related content. There's some creation of new technology, mostly through the breaking of current or old technology. There's some history. There's also some little nuggets of information about the place scientists widely regard as the centre of the known universe - Bournemouth.
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete