How to assign static ip to raspberry pi | Configuring a static ip address | Raspberry Pi
---------------------------------------------------------------------------
Static IP Config in RPI
----------------------------------
1. ifconfig
2. netstat -nr
3. sudo nano /etc/network/interfaces
4. sudo nano /etc/dhcpcd.conf
5. Write following line - In the top of the file
e.g.
interface eth0
static ip_address=192.168.0.201/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
6. ctrl + X -Yes - Enter
7. sudo reboot
![](https://i.ytimg.com/vi/6-sfPpOQdpg/mqdefault.jpg)