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