Setting IP Address Pada Linux Ubuntu (text based)


Setting IP Address pada Linux Ubuntu

1. Disable Network Manager

#sudo update-rc.d -f NetworkManager remove
#sudo apt-get remove network-manager network-manager-gnome

2. Edit File /etc/network/interfaces

#sudo vi /etc/network/interfaces

Masukkan perintah dibawah ini  :

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

3. Edit File /etc/resolv.conf >>

#sudo vi /etc/resolv.conf

(note : koneksi menggunakan speedy)
nameserver 192.168.1.1
nameserver 202.134.1.10
nameserver 203.134.196.155

4. Hapus DHCP client

#sudo apt-get remove dhcp-client

5. Restart Network

#sudo /etc/init.d/networking restart

6. Test

#ping http://www.wordpress.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s