Set the static IP address to the server on Centos 6

[root@dlp ~]#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:50:43:00:3B:AE
TYPE=Ethernet
UUID=c1539085-73d7-4455-ac82-88f26464458a
# change

ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none

IPADDR=10.0.0.30
NETMASK=255.255.255.0
GATEWAY=10.0.0.1
DNS1=10.0.0.10
IPV6INIT=no
USERCTL=no
[root@dlp ~]#/etc/rc.d/init.d/network restart
[root@dlp ~]#chkconfig network on