configure Raspbian Jessie Raspberry PI 2 eth0 / LAN IP address and DNS
Setting IP address
sudo su
nano /etc/network/interfaces
modify eth0 field like below :
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.5.127
netmask 255.255.255.0
network 192.168.5.0
broadcast 192.168.5.255
gateway 192.168.5.1
Ctrl+O
Ctrl+X
ifconfig eth0 down
ifconfig eth0 up
ifconfig
Setting DNS
nano /etc/resolv.conf
nameserver 192.168.0.2
nameserver 192.168.5.1
nameserver 8.8.8.8
nameserver 8.8.4.4
Ctrl+O
Ctrl+X
No comments:
Post a Comment