Linux在用命令service network restart的时候报错
![网卡报错截图.jpg wKiom1NYkzfRLwhHAABroKQj1M4373.jpg](https://s3.51cto.com/wyfs02/M02/25/05/wKiom1NYkzfRLwhHAABroKQj1M4373.jpg)
这个时候就要看你想要以哪个网卡为准了,分别为:eth0和eth1
我的做法是以eth0为准的。
接下要的操作就要保证ifconfig-eth0、/etc/udev/rules.d/70-persistent-net.rules和ifconfig命令
这三个地方的MAC地址一致:
![ifconfig-eth0 wKiom1NYlZuiLCZCAAD_vFUuyQo971.jpg](https://s3.51cto.com/wyfs02/M02/25/05/wKiom1NYlZuiLCZCAAD_vFUuyQo971.jpg)
![/etc/udev/rules.70-persis wKiom1NYlaXg84A8AAPAWQTdMI0879.jpg](https://s3.51cto.com/wyfs02/M00/25/05/wKiom1NYlaXg84A8AAPAWQTdMI0879.jpg)
![ifconfig wKioL1NYlX3wcbhrAACNqzW3hdI028.jpg](https://s3.51cto.com/wyfs02/M01/25/06/wKioL1NYlX3wcbhrAACNqzW3hdI028.jpg)
三个地方的MAC地址修改之后再service network restart后就 一切ok了!
转载于:https://blog.51cto.com/laok8/1401657