Jun
20

Setting Static IP di Ubuntu Server

Author admin    Category Technology     Tags

Cara mengubah IP dinamis menjadi IP statik di ubuntu server
Edit Interface List dengan text editor

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

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

Semoga bermanfaat

Post comment