在我的 Fedora 21 64 位 Gnome 3.14.3 安装中,我注意到 NeworkManager 始终连接到有线连接,即使未连接电缆:
但是,驱动程序(或其他东西)确实知道它是否已连接 - 我可以通过以下方式看到这一点watch "dmesg | tail -10"
:
[ 7349.552202] atl1c 0000:07:00.0: atl1c: enp7s0 NIC Link is Down
[ 7373.496359] IPv6: ADDRCONF(NETDEV_UP): enp7s0: link is not ready
[ 7376.271449] atl1c 0000:07:00.0: atl1c: enp7s0 NIC Link is Up<100 Mbps Full Duplex>
[ 7376.271482] IPv6: ADDRCONF(NETDEV_CHANGE): enp7s0: link becomes ready
[ 7553.088393] atl1c 0000:07:00.0: atl1c: enp7s0 NIC Link is Down
[ 7597.096174] atl1c 0000:07:00.0: atl1c: enp7s0 NIC Link is Up<100 Mbps Full Duplex>
[ 7620.983378] atl1c 0000:07:00.0: atl1c: enp7s0 NIC Link is Down
[ 7622.556874] atl1c 0000:07:00.0: atl1c: enp7s0 NIC Link is Up<100 Mbps Full Duplex>
当电缆已拔出但它仍然认为已连接到互联网并尝试同步或连接但失败时,这会导致问题。
lspci -v
07:00.0 Ethernet controller: Qualcomm Atheros AR8152 v2.0 Fast Ethernet (rev c1) Subsystem: Lenovo Device 3979 Flags: bus master, fast devsel, latency 0, IRQ 29 Memory at e0500000 (64-bit, non-prefetchable) [size=256K] I/O ports at 2000 [size=128] Capabilities: <access denied> Kernel driver in use: atl1c Kernel modules: atl1c
ifconfig
:enp7s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.22 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::de0e:a1ff:fed1:d12b prefixlen 64 scopeid 0x20<link> ether dc:0e:a1:d1:d1:2b txqueuelen 1000 (Ethernet) RX packets 111875 bytes 67103677 (63.9 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 87152 bytes 7793021 (7.4 MiB) TX errors 0 dropped 0 overruns 0 carrier 13 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 0 (Local Loopback) RX packets 3669 bytes 880913 (860.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 3669 bytes 880913 (860.2 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo yum list installed NetworkManager*
Installed Packages NetworkManager.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates NetworkManager-adsl.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates NetworkManager-bluetooth.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates NetworkManager-config-connectivity-fedora.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates NetworkManager-config-server.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates NetworkManager-devel.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates NetworkManager-glib.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates NetworkManager-glib-devel.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates NetworkManager-iodine.x86_64 0.0.4-4.fc21 @fedora NetworkManager-iodine-gnome.x86_64 0.0.4-4.fc21 @fedora NetworkManager-l2tp.x86_64 0.9.8.7-3.fc21 @fedora NetworkManager-openconnect.x86_64 0.9.8.6-2.fc21 @updates NetworkManager-openswan.x86_64 0.9.8.4-4.fc21 @fedora NetworkManager-openswan-gnome.x86_64 0.9.8.4-4.fc21 @fedora NetworkManager-openvpn.x86_64 1:0.9.9.0-3.git20140128.fc21 @koji-override-0/$releasever NetworkManager-openvpn-gnome.x86_64 1:0.9.9.0-3.git20140128.fc21 @koji-override-0/$releasever NetworkManager-pptp.x86_64 1:0.9.8.2-6.fc21 @koji-override-0/$releasever NetworkManager-pptp-gnome.x86_64 1:0.9.8.2-6.fc21 @koji-override-0/$releasever NetworkManager-ssh.x86_64 0.9.3-0.3.20140601git9d834f2.fc21 @fedora NetworkManager-ssh-gnome.x86_64 0.9.3-0.3.20140601git9d834f2.fc21 @fedora NetworkManager-tui.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates NetworkManager-vpnc.x86_64 1:0.9.9.0-6.git20140428.fc21 @koji-override-0/$releasever NetworkManager-vpnc-gnome.x86_64 1:0.9.9.0-6.git20140428.fc21 @koji-override-0/$releasever NetworkManager-wifi.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates NetworkManager-wwan.x86_64 1:0.9.10.1-1.4.20150115git.fc21 @updates
modinfo atl1c
filename: /lib/modules/3.17.8-300.fc21.x86_64/kernel/drivers/net/ethernet/atheros/atl1c/atl1c.ko.xz version: 1.0.1.1-NAPI license: GPL description: Qualcom Atheros 100/1000M Ethernet Network Driver author: Qualcomm Atheros Inc., <[email protected]> author: Jie Yang srcversion: 4333D8ADEE755DD5ABDF0B8 alias: pci:v00001969d00001083sv*sd*bc*sc*i* alias: pci:v00001969d00001073sv*sd*bc*sc*i* alias: pci:v00001969d00002062sv*sd*bc*sc*i* alias: pci:v00001969d00002060sv*sd*bc*sc*i* alias: pci:v00001969d00001062sv*sd*bc*sc*i* alias: pci:v00001969d00001063sv*sd*bc*sc*i* depends: intree: Y vermagic: 3.17.8-300.fc21.x86_64 SMP mod_unload signer: Fedora kernel signing key sig_key: F4:8F:FC:A3:C9:62:D6:47:0F:1A:63:E0:32:D1:F5:F1:93:2A:03:6A sig_hashalgo: sha256
如果这是一个错误,是 NetworkManager 还是其他问题?我在具有相同驱动程序的 Fedora 19 下没有遇到任何问题(这似乎是其备份中最新内核的相同版本)。
答案1
我最终开始整理错误报告,并被告知删除NetworkManager-config-server
包可以解决这个问题 - 所以我这样做了:
sudo yum autoremove NetworkManager-config-server
然后我重新启动,它就工作了:)
答案2
在 Fedora32 上我做了
sudo dnf remove NetworkManager-config-connectivity-fedora
重新启动,问题就消失了