Saturday 2 November 2013

Change IP address on Raspberry Pi



check current settings:


$cat /etc/network/interfaces





change:


$sudo nano  /etc/network/interfaces


under interface eth0 inet   (change to static if no dhcp is required)

address 192.168.100.10
netmask 255.255.255.0
network 192.168.100.0
broadcast  192.168.100.255
gateway 192.168.100.254


$sudo reboot




To add DNS server:


sudo nano /etc/resolv.conf     and add the IP addresses of the DNS servers

No comments:

Post a Comment