前言
最近在使用Ubuntu虚拟机时突然发现无法链接互联网,查看之下原来是网卡掉了,因此记录下恢复步骤。
恢复步骤
系统版本 Ubuntu 18.04
恢复前
root@fuzz-iot-ubuntu18-04:/home/fuzz# ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:c9:a9:65:59 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
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 1000 (Local Loopback)
RX packets 165559 bytes 13414800 (13.4 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 165559 bytes 13414800 (13.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
操作
sudo service network-manager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state
sudo service network-manager start
操作后网卡上线
网友评论