How to set IP statik di Ubuntu dari shell

{ Posted on Sep 28 2009 by Achmad Fachrie }
Categories : linux-open source, ubuntu

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!

Related posts:

  1. Install Bind9 DNS di Ubuntu 9.10
  2. Install DNS Bind di Centos 5.4
  3. Install Samba-LDAP pada distro basis Ubuntu dan windows client
  4. Tips : 5 Perintah Bash Shell Troubleshooting Sistem
  5. Goosh.org – the unofficial google shell

[ Back to Top ]