use*_*290 4 networking ethernet
我刚刚从 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
Run Code Online (Sandbox Code Playgroud)
如果,如本网站 https://help.ubuntu.com/stable/ubuntu-help/net-wired-connect.html 所述,我需要手动设置我的 IPV4,我在哪里可以找到要使用的值?
小智 9
编辑文件/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf并将其内容更改为:
[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:wwan
Run Code Online (Sandbox Code Playgroud)
到 :
[keyfile]
unmanaged-devices=*,except:type:ethernet,except:type:wifi,except:type:wwan
Run Code Online (Sandbox Code Playgroud)
然后运行:
sudo service network-manager restart
Run Code Online (Sandbox Code Playgroud)