今天在重新安装CentOS7之后,重启网络后报错
[root@wyu ~]# systemctl status network
● network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2018-10-04 17:10:47 CST; 3min 8s ago
Docs: man:systemd-sysv-generator(8)
Process: 913 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
Oct 04 15:10:40 wyu systemd[1]: Starting LSB: Bring up/down networking...
Oct 04 17:10:39 wyu network[913]: Bringing up loopback interface: [ OK ]
Oct 04 17:10:39 wyu network[913]: Bringing up interface Profile_1: ERROR ...n.
Oct 04 17:10:39 wyu network[913]: [FAILED]
Oct 04 17:10:47 wyu network[913]: Bringing up interface ens33: [ OK ]
Oct 04 17:10:47 wyu systemd[1]: network.service: control process exited, co...=1
Oct 04 17:10:47 wyu systemd[1]: Failed to start LSB: Bring up/down networking.
Oct 04 17:10:47 wyu systemd[1]: Unit network.service entered failed state.
Oct 04 17:10:47 wyu systemd[1]: network.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
以下是解决办法:
1、关于百度上MAC地址方面试过无效,不多加赘述。
2、关于停止服务NetworkManager,也无效。
3、试过很多种方法后查到是因为本地禁用了VMware NAT service的原因,因为我安装OS的时候选择的是NAT模式。
将其启用:
然后重启网络
成功
就是这么easy,不同的错误有不同的解决方法,也许这种方法无法解决你的问题,但只要认真查阅资料,总会找到解决办法!