Showing posts with label ip address. Show all posts
Showing posts with label ip address. Show all posts

Friday, January 20, 2012

Setup IP Address Linux CentOS 5/6 via Console

Berikut adalah cara setting IP Address Linux CentOS 5/6 menggunakan console:
  • Login dengan user root
  • Ubah Script eth0 di folder /etc/sysconfig/network-scripts/
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]#
[root@localhost network-scripts]# vi ifcfg-eth0

Kemudian isikan dengan skrip berikut ini :
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.50
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
TYPE=Ethernet
Simpan dan keluar dengan menggunakan :wq