Give your Raspberry Pi a Static IP Address

Friday, 12 May 2017 - Written by admin

sudo nano /etc/network/interfaces

/etc/network/interfaces

auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.5.164
netmask 255.255.255.0
network 192.168.5.0
broadcast 192.168.5.255
gateway 192.168.5.1

sudo nano /etc/resolv.conf

/etc/resolv.conf

# Generated by resolvconf
nameserver 192.168.5.168
nameserver 192.168.5.1