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=192.168.1.11/24
static routers=192.168.1.1
static domain_name_servers=8.8.8.8

interface eth0
static ip_address=192.168.2.10

Leave a Reply

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