我在双启动中使用 Ubuntu 20.04 和 Windows 10。
最近我开始遇到网络问题。
我搜索了很多答案,但没有找到任何适合我的解决方案。简而言之,当我进入 Windows 并有互联网时,如果我返回 Ubuntu,它会显示“有线连接”,但我无法访问任何网站,并且 ping 会导致大量数据包丢失(超过 80%)。经过几次重启后,我的互联网在 Ubuntu 上工作正常,但现在我在 Windows 上没有互联网,而且它一直在变化。
在我们将家里的路由器从通过 DSL 线路的路由器更改为通过电缆的路由器后,这种情况开始发生。在 Windows 上,我尝试重置网络适配器,它工作了一段时间,但经过几次重启(包括进入 Ubuntu),我在 Windows 上再次无法上网。在 Ubuntu 上,我尝试了几件事:关闭 avahi 守护进程的本地检测、重新启动 NetworkManager 并将 /etc/resolv.conf 更改为默认值(让系统重新生成文件)。我不确定问题是否与 IP 地址有关,所以我没有尝试从 DHCP 切换到静态 IP。
我的理论是,一旦一个操作系统使用了网卡,它就会在一定时期内被该操作系统锁定。
当我在不同的操作系统之间重新启动时,是否有可能让 Ubuntu 或 Windows 解锁卡?我认为这是一个驱动程序问题,但我不确定。
以下是必要的网络信息:
是否配置
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2a00:a040:19a:3163:bcab:118e:a9b8:bfca prefixlen 64 scopeid 0x0<global>
inet6 fe80::c2aa:642b:986:9e4 prefixlen 64 scopeid 0x20<link>
inet6 2a00:a040:19a:3163:7fbc:912b:4eb9:c1e1 prefixlen 64 scopeid 0x0<global>
ether 0c:9d:92:80:7a:0d txqueuelen 1000 (Ethernet)
RX packets 5679 bytes 3537539 (3.5 MB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 4933 bytes 1283158 (1.2 MB)
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 902 bytes 80789 (80.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 902 bytes 80789 (80.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lspci-knn 的
00:00.0 Host bridge [0600]: Intel Corporation 8th Gen Core 4-core Desktop Processor Host Bridge/DRAM Registers [Coffee Lake S] [8086:3e1f] (rev 08)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. 8th Gen Core 4-core Desktop Processor Host Bridge/DRAM Registers [Coffee Lake S] [1043:8694]
Kernel driver in use: skl_uncore
Kernel modules: ie31200_edac
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 08)
Kernel driver in use: pcieport
00:14.0 USB controller [0c03]: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller [8086:a36d] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Cannon Lake PCH USB 3.1 xHCI Host Controller [1043:8694]
Kernel driver in use: xhci_hcd
00:14.2 RAM memory [0500]: Intel Corporation Cannon Lake PCH Shared SRAM [8086:a36f] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Cannon Lake PCH Shared SRAM [1043:8694]
00:16.0 Communication controller [0780]: Intel Corporation Cannon Lake PCH HECI Controller [8086:a360] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Cannon Lake PCH HECI Controller [1043:8694]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:17.0 SATA controller [0106]: Intel Corporation Cannon Lake PCH SATA AHCI Controller [8086:a352] (rev 10)
DeviceName: Onboard - SATA
Subsystem: ASUSTeK Computer Inc. Cannon Lake PCH SATA AHCI Controller [1043:8694]
Kernel driver in use: ahci
Kernel modules: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Cannon Lake PCH PCI Express Root Port #5 [8086:a33c] (rev f0)
Kernel driver in use: pcieport
00:1c.7 PCI bridge [0604]: Intel Corporation Cannon Lake PCH PCI Express Root Port #8 [8086:a33f] (rev f0)
Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:a303] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Device [1043:8694]
00:1f.3 Audio device [0403]: Intel Corporation Cannon Lake PCH cAVS [8086:a348] (rev 10)
DeviceName: Onboard - Sound
Subsystem: ASUSTeK Computer Inc. Cannon Lake PCH cAVS [1043:86c7]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_sof_pci
00:1f.4 SMBus [0c05]: Intel Corporation Cannon Lake PCH SMBus Controller [8086:a323] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Cannon Lake PCH SMBus Controller [1043:8694]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller [8086:a324] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASUSTeK Computer Inc. Cannon Lake PCH SPI Controller [1043:8694]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G94 [GeForce 9600 GT] [10de:0622] (rev a1)
Subsystem: ZOTAC International (MCO) Ltd. G94 [GeForce 9600 GT] [19da:1043]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:8677]
Kernel driver in use: r8169
Kernel modules: r8169
ethtool enp3s0
Settings for enp3s0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
如您所见,目前我处于 Ubuntu 连接良好的状态。目前我在 Win 10 中没有连接(尽管那里也显示有线连接已连接)。
我将非常感激任何能帮助我解决问题的方法。