我刚刚从 Ubuntu 16.04 升级到 16.10,然后又升级到 17.04,在此过程中有线网络丢失。升级前 4 小时一切都很好。我可以连接到 WiFi,但网络管理菜单中的以太网网络呈灰色。以下是 ifconfig -a 的输出
ifconfig -a
eth0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether e8:40:f2:81:23:fa txqueuelen 1000 (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 479 bytes 114309 (114.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 479 bytes 114309 (114.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.7 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::367c:5f4:624a:57f5 prefixlen 64 scopeid 0x20<link>
ether 9c:b7:0d:e0:54:b6 txqueuelen 1000 (Ethernet)
RX packets 18802 bytes 13005919 (13.0 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 19310 bytes 4364068 (4.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
如果像这个网站一样 https://help.ubuntu.com/stable/ubuntu-help/net-wired-connect.html 描述,我需要手动设置我的 IPV4,在哪里可以找到要使用的值?
答案1
编辑文件/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf
并更改其内容:
[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:wwan
到 :
[keyfile]
unmanaged-devices=*,except:type:ethernet,except:type:wifi,except:type:wwan
然后运行:
sudo service network-manager restart
答案2
这里的问题完全一样。通过创建一个空文件解决了:
sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo service network-manager restart
生长素