1、修改主机名称
vi /etc/sysconfig/network
2、修改IP地址
vi /etc/sysconfig/network-script/ifcfg-eth0
service network restart
3、如果重启网卡出现错误Device eth0 does not seem to be present
rm -rf /etc/udev/rules.d/70-persistent-net.rules
init 6
删除配置文件/etc/udev/rules.d/70-persistent-net.rules 然后重启即可
网友评论