Setting a static IP address
Edit the dhcpcd.conf file.
Scroll to the end of the config file and add one of the two following code snippets. eth0 = wired, wlan0 = wireless:
interface eth0
static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
interface wlan0
static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
|