How to set IP statik di Ubuntu dari shell
Terbiasa dimanjakan menggunakan GUI? hehe… sebagai admin anda perlu harus tahu melakukan perintah melalui command line. Ini hanya tutorial sederhana bagi admin pemula. Mengenai men-set IP secara statik, tanpa GUI. Berikut ini langkah-langkahnya :
Uninstall Network Manager yang ada miliki. Lalu :
Edit sebagai root:
/etc/network/interfaces
edit sesuai kebutuhan (contoh saya menggunakan IP address 192.168.0.100):
# 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 # This is a list of hotpluggable network interfaces. # They will be activated automatically by the hotplug subsystem. mapping hotplug script grep map eth0 # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 done!