Dimbow

i'm just ordinary man

Konfigurasi ip address static pada centOS

Posted by dimbow on May 30, 2012

ImageSebelum masuk ke editor nano, kita harus masuk ke root terlebih dahulu.

# nano /etc/sysconfig/network-scripts/ifcfg-eth0

*Tampilan akan berubah seperti yg dibawah ini :

DEVICE=eth0
HWADDR=””
NM_CONTROLLED=”yes”
ONBOOT=yes
IPADDR=202.78.200.206
NETMASK=255.255.25.128
NETWORK=no
TYPE=Ethernet

*Untuk setup server DNS, edit / etc / resolv.conf, kita bisa memasukkan  :

#nano /etc/resolv.conf

*dan untuk name server kita bisa memasukannya seperti dibawah ini :

nameserver 202.43.162.154.

nameserver 202.43.162.155

*dan kemudian di save

*lalu kita restart network seperti dibawah ini :

# /etc/init.d/network restart

*atau

# service networking restart

Semoga bermanfaat 🙂

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: