Friday, February 21, 2014

Langkah-langkah Konfigurasi IP Address di linux



Langkah-langkah Konfigurasi IP Address di linux :

1.    Tuliskan Perintah “nano /etc/nerwork/interfaces” untuk konfigurasi IP :

root@server:~# nano /etc/network/interfaces
auto lo eth0
auto eth0

iface eth0 inet static
address 192.168.1.7
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254-

auto eth1

iface eth1 inet static
address 192.168.2.7
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.25

2.      Lalu tuliskan “ifconfig atau ifconfig –a” untuk melihat hasil konfigurasi tadi

root@server:~# ifconfig –a  atau  ifconfig
th0      Link encap:Ethernet  HWaddr 00:e0:4c:74:04:cb
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4cff:fe74:4cb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27919 errors:0 dropped:20 overruns:0 frame:0
          TX packets:22827 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:31833491 (31.8 MB)  TX bytes:5996975 (5.9 MB)

eth1      Link encap:Ethernet  HWaddr 00:21:91:e2:15:5d
          inet addr:192.168.2.7  Bcast:192.168.2.25  Mask:255.255.255.0
          inet6 addr: fe80::221:91ff:fee2:155d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17433 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22713 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1370740 (1.3 MB)  TX bytes:31264291 (31.2 MB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK
RUNNING  MTU:65536  Metric:1
          RX packets:877 errors:0 dropped:0 overruns:0 frame:0
          TX packets:877 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:78435 (78.4 KB)  TX bytes:78435 (78.4 KB)

3.      Lihat koneksi dengan melakukan “ping 8.8.8.8”
root@server:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=44 time=54.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=44 time=215 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=44 time=52.2 ms

Apabila sudah replay berarti Konfigurasi kita sudah benar dan Ubuntu Server siap digunakan.

0 komentar:

Post a Comment