raspberry pi : setting ethernet ip static

10 Jul

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sebelumnya :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pi@raspberrypi ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:89:28:ca
inet addr:172.20.114.8  Bcast:172.20.255.255  Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
RX packets:44336 errors:0 dropped:0 overruns:0 frame:0
TX packets:711 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3514634 (3.3 MiB)  TX bytes:89058 (86.9 KiB)

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

pi@raspberrypi ~ $ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         172.20.114.15   0.0.0.0         UG    0      0        0 eth0
172.20.0.0      *               255.255.0.0     U     0      0        0 eth0

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
proses :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pi@raspberrypi ~ $ sudo cp /etc/network/interfaces /etc/network/interfaces.old
pi@raspberrypi ~ $ sudo nano /etc/network/interfaces
iface eth0 inet static
address 172.20.114.8
netmask 255.255.0.0
gateway 172.20.140.13

pi@raspberrypi ~ $ sudo nano /etc/resolv.conf
nameserver 202.73.99.2

pi@raspberrypi ~ $ sudo reboot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sesudahnya :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pi@raspberrypi ~ $ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         172.20.140.13   0.0.0.0         UG    0      0        0 eth0
172.20.0.0      *               255.255.0.0     U     0      0        0 eth0

pi@raspberrypi ~ $ ping 172.20.140.13
PING 172.20.140.13 (172.20.140.13) 56(84) bytes of data.
64 bytes from 172.20.140.13: icmp_req=1 ttl=64 time=0.874 ms
64 bytes from 172.20.140.13: icmp_req=2 ttl=64 time=0.722 ms
64 bytes from 172.20.140.13: icmp_req=3 ttl=64 time=0.806 ms
^C
— 172.20.140.13 ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 1736552951ms
rtt min/avg/max/mdev = 0.722/0.800/0.874/0.070 ms
pi@raspberrypi ~ $ ping google.co.id
PING google.co.id (111.94.248.119) 56(84) bytes of data.
64 bytes from fm-dyn-111-94-248-119.fast.net.id (111.94.248.119): icmp_req=1 ttl=62 time=20.6 ms
64 bytes from fm-dyn-111-94-248-119.fast.net.id (111.94.248.119): icmp_req=2 ttl=62 time=18.0 ms
64 bytes from fm-dyn-111-94-248-119.fast.net.id (111.94.248.119): icmp_req=3 ttl=62 time=20.7 ms
^C
— google.co.id ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 18.086/19.846/20.790/1.251 ms

 

 

Jika anda merasa dipenuhi oleh rasa takut, Tuhan akan menolong anda. Ada dalam Alkitab,“ janganlah takut, sebab Aku menyertai engkau, janganlah bimbang, sebab Aku ini Allahmu; Aku akan meneguhkan, bahkan akan menolong engkau; Aku akan memegang engkau dengan tangan kanan-Ku yang membawa kemenangan” (Yesaya 41:10) “Bukankah telah Kuperintahkan kepadamu: kuatkan dan teguhkanlah hatimu? Janganlah kecut dan tawar hati, sebab TUHAN, Allahmu, menyertai engkau, ke manapun engkau pergi.” (Yosua 1:9)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: