Set Static Local IP Address for Raspberry Pi

By default raspberrry use dhcp to get local ip address, to set manually local ip address open LX Terminal and run command below:

sudo nano /etc/network/interfaces

Find eth0 block

auto eth0
iface eth0 inet dhcp

and change to :

auto eth0
iface eth0 inet static
address 192.168.1.44         # <– your static local ip address
netmask 255.255.255.0
network 192.168.1.0          # <– network
broadcast 192.168.1.255
gateway 192.168.1.1           # <– router local ip address

Yohan Naftali

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.