Config Network Adapter for CentOS Linux
vi /etc/sysconfig/network-scripts/ifcfg-eth0
#####################################
# for static ip
#DEVICE="eth0"
#BOOTPROTO="static"
#HWADDR="00:30:48:56:A6:2E"
#IPADDR="10.1.1.5"
#NETMASK="255.255.255.192"
#ONBOOT="yes"
#####################################
# for dhcp ip
DEVICE="eth0"
BOOTPROTO="dhcp"
ONBOOT="yes"
vi /etc/sysconfig/network
NETWORKING=yes
# for static ip
#HOSTNAME=host1.mysite.com
#GATEWAY=10.1.1.1
ifdown eth0
ifup eth0
or /etc/init.d/network restart