Raspberry Network Setup¶
Static IP¶
Which network interface do you use? Check it with ip r
, then edit sudo nano /etc/dhcp/dhclient.conf
.
Example in my network:
interface wlan0
static ip_address=192.168.21.12/24
static routers=192.168.21.1
static domain_name_servers=192.168.21.1
WLAN¶
See WLAN setup
sudo raspi-config
Change WLAN country option
If you have two networks in range, you can add the priority option to choose between them. The network in range, with the highest priority, will be the one that is connected.
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="HomeOneSSID"
psk="passwordOne"
priority=1
id_str="homeOne"
}
network={
ssid="HomeTwoSSID"
psk="passwordTwo"
priority=2
id_str="homeTwo"
}