vi /etc/sysconfig/network-script/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=linux 下的ip
NETMASK=255.255.255.0
GATEWAY=网关
ONBOOT=yes
service network restart