centOS 7下无法启动网络(service network start)错误解决办法
问题描述:打开虚拟机,启动CentOS7,检查网络不通,重启service network restart,不行,报错;报错信息:Restarting network (via systemctl):Job for network.service failed because the control process exited with error code.See ...
·
问题描述:
打开虚拟机,启动CentOS7,检查网络不通,重启service network restart,不行,报错;
报错信息:
Restarting network (via systemctl): Job for network.service failed because the control process exited with error code.
See "systemctl status network.service" and "journalctl -xe" for details. [Failed]
根据提示输入systemctl status network.service命令后出现错误信息:Failed to start LSB: Bring up/down networking.
解决方法:
1. 网上最常见的几种做法:
(1) NetworkManager 服务有冲突,
直接关闭 NetworkManger 服务就好了, service NetworkManager stop,并且禁止开机启动 chkconfig NetworkManager off 。之后重启网络service network restart。
对我无效,因为没安装etworkManager 服务
(2)和配置文件的MAC地址不匹配
使用ip addr(或ifconfig)查看mac地址:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:b8:e7:21 brd ff:ff:ff:ff:ff:ff
inet 192.168.65.141/24 brd 192.168.65.255 scope global dynamic ens33
valid_lft 1193sec preferred_lft 1193sec
inet6 fe80::cca2:d835:f93:e637/64 scope link
valid_lft forever preferred_lft forever
00:0c:29:b8:e7:21这个就是MAC地址了,将/etc/sysconfig/network-scripts/ifcfg-xxx中的HWADDR(如果没有就添加上)改成这个MAC地址;
对我无效,因为MAC地址一致,无需修改;
2.我的解决方法
由于Windows的VMWare相关服务没启动,启动这些服务,再重启网络即可。
更多推荐
已为社区贡献3条内容
所有评论(0)