embeddedart / embeddedart.github.io

Embedded Art website https://www.embeddedart.in
0 stars 0 forks source link

set static ip to raspberry pi #5

Open embeddedart opened 2 years ago

embeddedart commented 2 years ago

Start by editing the dhcpcd.conf file

sudo nano /etc/dhcpcd.conf

embeddedart commented 2 years ago

You’ll need to edit the numbers in the snippet so they match your network configuration.

CODE

interface eth0

static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

# I am not using below configuration
interface wlan0

static ip_address=192.168.0.200/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1 
embeddedart commented 2 years ago

static ip_address=192.168.0.10/24
the suffix ‘/24’ (an abbreviation of the subnet mak 255.255.255.0)