Saturday, March 21, 2015

[RPI] Static Address Raspberry Pi

21 Maret 2015
static eth0

Intro::

Disaat mau ngoprek Rpi via ssh gak nyaut, disitu IP Rpi berubah. Jadi untuk mengatasi perubahan IP digunakan metode static ip.

Gather Information::

ifconfig eth0 *cek IP pada metwork module eth0
catat addr, bcast, mask
address 192.168.1.136
broadcast 192.168.1.255
netmask 255.255.255.0
netstat -nr *cek akan route kemana
catat gateway, destination untuk network eth0
Gateway 192.168.1.1
Destination 192.168.1.0
sudo nano /etc/network/interface *rubah default setting
ganti
iface eth0 inet dhcp -> iface eth0 inet static
tambahkan dibawahnya
address 192.168.1.136
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
sudo reboot *restart

Documentation::

- http://www.modmypi.com/blog/tutorial-how-to-give-your-raspberry-pi-a-static-ip-address (21-Maret-2015)

No comments:

Post a Comment