Irawan

sedikit catatanku…

Cara setting IP Address melalui terminal di CentOs

Ada 2 cara setting IP address CentOs melalui terminal, yaitu sbb:
1. Menggunakan editor (vi, vim, gedit ataupun nano)

edit file /etc/sysconfig/network-scripts/ifcfg-eth0 (sesuaikan dengan ethernet-nya)
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=XX:XX:XX:XX:XX:XX
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.2
GATEWAY=192.168.1.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=no

2. Menggunakan command system-config-network-tui
# system-config-network-tui

Setelah men-setting ip address, restart networknya dengan command:
# /etc/init.d/network restart

sumber:
Setting IP Address di CentOs

26/05/2012 Posted by | Tips Linux | Leave a comment