案例故障
测试昨日配置好的虚拟机,今天打开发现在X-Shell上时连接不上了,进到虚拟机界面 ip addr查看信息,结果如下图
报错内容
ens33mtu 1500 qdisc noop state DOWN group default qlen 1000

排查思路
在开机之后,发现网卡没有启动起来,进行了如下操作,还是不行
1、重启网卡
[root@node2 ~]# ifup ens33
错误:激活连接失败:No suitable device found for this connection.
2、开启网络服务
[root@node2 ~]# systemctl start network
Job for network.service failed because the control process exited with error code. See “systemctl status network.service” and “journalctl -xe” for details
解决方法
先停止网卡,设置disable,然后启动,发现网卡启动了
[root@node2 ~]# systemctl stop NetworkManager
[root@node2 ~]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
[root@node2 ~]# service network restart
至此,问题解决

7260

被折叠的 条评论
为什么被折叠?



