533 B
533 B
Raspberry Pi
Setup static ip
- Edit configuration file
sudoedit /etc/dhcpcd.conf - Fill this in the file:
interface <your-network-interface>
static ip_address=<desired-static-ip>/24
static routers=<your-router-ip>
static domain_name_servers=<your-dns-server-ip>
Example configuration
interface wlan0
static ip_address=192.168.1.100/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
- Reboot
sudo reboot - Should use configured ip address now