Linux之Centos7开机之后连不上网

 

  • 问题:ns33mtu 1500 qdisc noop state DOWN group default qlen 1000

Linux之Centos7开机之后连不上网_第1张图片

  • 解决方法:

 1 root@topcheer ~]# systemctl stop NetworkManager
 2 [root@topcheer ~]# systemctl disable NetworkManager
 3 Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
 4 Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
 5 Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
 6 Removed symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.
 7 [root@topcheer ~]# service network restart
 8 Restarting network (via systemctl):                        [  确定  ]
 9 [root@topcheer ~]# ifconfig
10 docker0: flags=4099  mtu 1500
11         inet 172.17.0.1  netmask 255.255.0.0  broadcast 0.0.0.0
12         ether 02:42:3b:db:cd:21  txqueuelen 0  (Ethernet)
13         RX packets 0  bytes 0 (0.0 B)
14         RX errors 0  dropped 0  overruns 0  frame 0
15         TX packets 0  bytes 0 (0.0 B)
16         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
17 18 ens33: flags=4163  mtu 1500
19         inet 192.168.180.113  netmask 255.255.255.0  broadcast 192.168.180.255
20         inet6 fe80::20c:29ff:fe4d:6737  prefixlen 64  scopeid 0x20
21         ether 00:0c:29:4d:67:37  txqueuelen 1000  (Ethernet)
22         RX packets 10  bytes 1168 (1.1 KiB)
23         RX errors 0  dropped 0  overruns 0  frame 0
24         TX packets 28  bytes 4696 (4.5 KiB)
25         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
26 27 lo: flags=73  mtu 65536
28         inet 127.0.0.1  netmask 255.0.0.0
29         inet6 ::1  prefixlen 128  scopeid 0x10
30         loop  txqueuelen 1000  (Local Loopback)
31         RX packets 68  bytes 5604 (5.4 KiB)
32         RX errors 0  dropped 0  overruns 0  frame 0
33         TX packets 68  bytes 5604 (5.4 KiB)
34         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
35 36 virbr0: flags=4099  mtu 1500
37         inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
38         ether 52:54:00:27:04:0d  txqueuelen 1000  (Ethernet)
39         RX packets 0  bytes 0 (0.0 B)
40         RX errors 0  dropped 0  overruns 0  frame 0
41         TX packets 0  bytes 0 (0.0 B)
42         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
43 44 [root@topcheer ~]# 

 


 

你可能感兴趣的:(Linux之Centos7开机之后连不上网)