My virtual machine networking in the center os 7 has always been a quantum state, no rules to follow, do not know which came back off can not access, ifconfig can not see the real card information, the card body boot prompt:
Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn'
Check out the online results, there are many cases in N, where the only way to solve my record, thank https://blog.csdn.net/weixin_39663255/article/details/80892774
1. Stop Service
systemctl stop NetworkManager
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.
2. Restart come back from service
systemctl start network.service
[root@123 bin]# ifconfig ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.128 netmask 255.255.0.0 broadcast 172.17.255.255 inet6 fe80::20c:29ff:fe84:b4 prefixlen 64 scopeid 0x20<link> ether 00:0c:29:84:00:b4 txqueuelen 1000 (Ethernet) RX packets 3629648 bytes 315562709 (300.9 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2974 bytes 295864 (288.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1 (Local Loopback) RX packets 90 bytes 6748 (6.5 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 90 bytes 6748 (6.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
3. Test ifconfig
The real card information out
Details Reprinted from: https://blog.csdn.net/weixin_39663255/article/details/80892774