Masuk dalam mode "Superuser",
xlam@ebook:~$ sudo su
Password: [Deffault Password: root]
1. Setting IP
root@ebook:/#nano /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0 //Berfungsi agar alamat ip di simpan secara permanen meskipun linux di restart
iface eth0 inet static //Interface eth0 ip di setting secara static atau manual
address 202.159.3.67
netmask 255.255.255.224
gateway 202.159.3.90
Simpan!
2. Setting DNS
root@ebook:/#nano /etc/resolv.conf
nameserver 202.159.32.2 //Default DNS 8.8.8.8
nameserver 202.159.33.2 //Alamat DNS di sesuaikan dengan ISP yang anda gunakan
3. Setelah Setting IP dan DNS Restart Network
root@ebook:#/etc/init.d/networking restart
* Kita cek konfigurasi anda sudah jalan atau belum?
root@ebook:/#ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:44:91:47:83
inet addr:202.159.3.67 Bcast:202.159.3.95 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:169988 errors:67 dropped:0 overruns:0 frame:0
TX packets:6082 errors:0 dropped:0 overruns:0 carrier:0
collisions:1528 txqueuelen:1000
RX bytes:141935582 (135.3 MiB) TX bytes:812217 (793.1 KiB)
Interrupt:5
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:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3753 (3.6 KiB) TX bytes:3753 (3.6 KiB)
4. Check Koneksi
root@ebook:/# ping google.com
PING google.com (64.233.167.99) 56(84) bytes of data.
64 bytes from py-in-f99.google.com (64.233.167.99): icmp_seq=1 ttl=237 time=420 ms
64 bytes from py-in-f99.google.com (64.233.167.99): icmp_seq=2 ttl=237 time=330 ms
64 bytes from py-in-f99.google.com (64.233.167.99): icmp_seq=3 ttl=237 time=545 ms
64 bytes from py-in-f99.google.com (64.233.167.99): icmp_seq=4 ttl=237 time=429 ms
64 bytes from py-in-f99.google.com (64.233.167.99): icmp_seq=5 ttl=237 time=329 ms
— google.com ping statistics —
5 packets transmitted, 5 received, 0% packet loss, time 4010ms
rtt min/avg/max/mdev = 329.664/411.183/545.187/79.429 ms
* Jika keluar seperti diatas berarti sudah Connect
* Jika keluar seperti ini, berarti belum tersambung dengan internet
Request Time Outroot@ebook:/#
Request Time Out
Request Time Out
NB: Jika ada kesalahan, sharing yuk.. ^^
Sekian…:)
Semoga Bermanfaat!! ^^
0 komentar:
Posting Komentar