Setting IP di Ubuntu 12.04 LTS

By
Advertisement




Bagaimana cara setting IP statik di Ubuntu Server 12.04.2 LTS versi 64 bit lewat command line itu. Berikut ini langkah-langkahnya :
Edit file interfaces di folder /etc/network. Ketik :
vim /etc/network/interfaces
Skenario jaringan :
IP : 192.168.1.1
Subnet : 255.255.255.0
Gateway : 192.168.1.222
DNS : 8.8.8.8

Untuk skenario di atas, isi file interface tersebut seperti di bawah :
1    # This file describes the network interfaces available on your system
2    # and how to activate them. For more information, see interfaces(5).
3
4    # The loopback network interface
5    auto lo
6    face lo inet loopback
7
8    auto eth0
9    iface eth0 inet static
10  address 192.168.1.1
11  netmask 255.255.255.0
12  gateway 192.168.1.222
13
14  dns-nameservers 8.8.8.8


Agar konfigurasi berjalan, restart jaringan. Caranya ketik :
/etc/init.d/networking restart
Selesai, mudah bukan. Selamat mencoba!

- See more at: http://republikdigital.com/cara-setting-ip-di-ubuntu-server-12-04-2-lts.html#sthash.w3gQuHPM.dpuf
copyright 2015 adontramadhon blog. Diberdayakan oleh Blogger.