First Thanks!
I have a RPi0W 100% uodated, and it works ok, now Iwant to moe it to different locations and I want tha it will auto connect to my diferrent networks.
This is my wpa_supplicant file:
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="home"
psk="X"
key_mgmt=WPA-PSK
id_str="rotorhome"
priority=3
}
network={
ssid="Orange-22BA"
psk="X"
key_mgmt=WPA-PSK
id_str="rotorhome2"
}
network={
ssid="WIFI_N"
psk="X"
key_mgmt=WPA-PSK
id_str="NHOME"
priority=2
}
network={
ssid="phone1"
psk="X"
key_mgmt=WPA-PSK
id_str="phone"
priority=1
}this is my interfaces file:
Code: Select all
# 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
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface rotorhome inet static
address 192.168.1.123
gateway 255.255.255.0
netmask 192.168.1.1
iface NHOME inet static
address 192.168.1.123
gateway 255.255.255.0
netmask 192.168.1.1
iface rotorhome2 inet dhcp
iface phone inet dhcp
Thanks