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

This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete