sudo vim /etc/dhcpcd.conf
interface eth0 static ip_address=192.168.1.101/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1 interface wlan0 static ip_address=192.168.0.201/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1
sudo vim /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="NAZWA_SIECI"
psk="HASŁO"
}
źródło: https://botland.com.pl/content/71-jak-ustawic-statyczne-ip-w-raspberry-pi
albo (kiedyś działał sposób powyższy. w nowszej wersji systemu już nie)
sudo vim /etc/network/interfaces
auto eth0 iface eth0 inet static address 192.168.0.2 netmask 255.255.0.0 gateway 192.168.0.1 dns-nameservers 8.8.8.8
reboot