1:在root用户下修改
2:进入root用户下 vim/etc/sysconfig/network-scripts/ifcfg-eth0
2、修改完保存退出
3、重启网络服务:service network restart