近段时间研究Linux ,选择的版本是CentOS7,室友配置了一个精简版的镜像,所以直接拿过来用。但是复制过来的镜像启动后使用ifconfig,系统提示没有找到网卡。
sudo rm /etc/udev/rules.d/70-persistent-net.rules
# mv /etc/sysconfig/network-scripts/ifcfg-eth0
sysconfig/network-scripts/ifcfg-eth1
vi
sysconfig/network-scripts/ifcfg-eth1
修改DEVICE="eth0"
为DEVICE="eth1"ifconfig eth1 192.168.1.110
Cannot activate network device eth1!
Device eth0 has different MAC address than expected, ignoring
service network restart
ifconfig
原文:http://blog.csdn.net/a3665407/article/details/51246573