修改配置文件vim /etc/sysconfig/network-scripts/ifcfg-eth0
注释dhcp#BOOTPROTO="dhcp"
注释ipv6#IPV6INIT="yes"
加上静态IPIPADDR=192.168.0.63GATEWAY=192.168.0.1NETMASK=255.255.255.0DNS1=192.168.0.1
重启网络服务service network restart