centos7无法service network restart解决方法

错误代码:

Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.


vi /etc/sysconfig/network-scripts/ifcfg-eth0

这个文件中的DEVICE一行删除掉

DEVICE="eth0"(删除了)

HWADDR=“00:0C:29:5A:CB:D4”

BOOTPROTO="static"

ONBOOT="yes"

IPADDR=192.168.1.120

NETMASK=255.255.255.0

GATEWAY=192.168.1.1

DNS1=8.8.8.8

然后 service network restart一下就OK



猜你喜欢

转载自blog.csdn.net/u013631121/article/details/80157073
今日推荐