Republikdigital.com – Pada saat anda menginstall Ubuntu Server 12.04.2 LTS versi 64 bit, di sana ada proses setting IP. Jika proses ini terlewatkan atau dilewatkan, anda bisa setting IP lewat command line.
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 :# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.222 dns-nameservers 8.8.8.8
- Agar konfigurasi berjalan, restart jaringan. Caranya ketik :
/etc/init.d/networking restart - Selesai, mudah bukan. Selamat mencoba!
(@rdcnews)
