Dimbow

i'm just ordinary man

Konfigurasi ip address static pada Ubuntu Server

Posted by dimbow on May 30, 2012

Image

Berikut Cara mengubah ip address dinamic menjadi static pada Ubintu server dengan editor nano, penjelasannya sebagai berikut:

sudo nano /etc/network/interfaces

Ubah baris yang berisi:

auto eth0
ifaces eth0 inet dynamic

Menjadi:

auto eth0
ifaces eth0 inet static
address 192.168.111.4
netmask 255.255.255.0
network 192.168.111.0
broadcast 192.168.111.255
gateway 192.168.111.100

dimana  192.168.111.4 = IP Server dan 192.168.111.100=IP Gateway. Untuk mengubah DNS (Name server) edit file resolv.conf

sudo nano /etc/resolv.conf

Simpan, kemudian restart networking dengan :

sudo /etc/init.d/networking restartaddress

bila cara di atas belum berhasil,. mungkin kita perlu meng uninstall DHCP client kita

sudo apt-get remove dhcp-client

Selamat mencoba 🙂

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

 
%d bloggers like this: