Sunday, January 5, 2020

How to ADD static IP Address in Raspberry Pi

In this post I will show you how to ADD static IP Address in Raspberry Pi
Previously I had shown..

use below command to open dhcpcd.conf in nano file editor
before that check whether DHCPCD is activated or not
If it is not activated, follow below commands

sudo service dhcpcd start
sudo systemctl enable dhcpcd
then open file with below command

sudo nano /etc/dhcpcd.conf

eth0 = wired, wlan0 = wireless

append below lines and save.

eth0 is the LAN port


interface eth0
static ip_address=192.168.1.20
static routers=192.168.1.1
static domain_name_servers=192.168.1.1

in the same way for Wifi also
wlan0 is the Wifi

interface wlan0
static ip_address=192.168.1.22
static routers=192.168.1.1
static domain_name_servers=192.168.1.1


ones done, You can use
remote Desktop,
VNC client
etc....

No comments:

Post a Comment