1:在root用戶下修改vim
2:進入root用戶下 vim/etc/sysconfig/network-scripts/ifcfg-eth0網絡
二、修改完保存退出rest
三、重啓網絡服務:service network restartblog