Raspberry Pi setting fixed ip on Raspbian (Raspberry Pi OS)

Setting wifi and ethernet fixed IP address. Wifi as main internet connection and ethernet cable for stand-alone device.

sudo nano /etc/dhcpcd.conf

Add the following code.

interface wlan0
static ip_address=
static routers=
static domain_name_servers=

interface eth0
static ip_address=

Leave a Reply

Your email address will not be published. Required fields are marked *