问题显示如下:
[root@centos64bit network-scripts]# systemctl restart network.service
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
显示有标题的错误信息。《Failed to start LSB: Bring up/down networking.》 原因是mac地址的问题
解决方案如下:
1、查看服务对应网卡最新的mac地址 命令:ip addr 下图 圈出来就是最新的mac地址
2、修改ifcfg-XXX文件
切换到cd /etc/sysconfig/network-scripts/,修改ifcfg-XXX文件,只修改HWADDR就可以了。接下来执行service network restart 就正常了。
3 还是提示一样的问题,解决方式:禁用NetworkManager,再依次执行以下命令
systemctl stop NetworkManager
systemctl disable NetworkManager
service network restart
可以正常启用网络