我失去了有线连接,但 wifi 工作正常。有线连接工作正常,但无法访问互联网。Ubuntu 16.04:
uname -v
#40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016
配置文件
enp4s0 Link encap:Ethernet HWaddr e4:11:5b:2c:b8:a8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48 errors:0 dropped:1 overruns:0 frame:0
TX packets:448 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6367 (6.3 KB) TX bytes:39283 (39.2 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1381 errors:0 dropped:0 overruns:0 frame:0
TX packets:1381 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:92875 (92.8 KB) TX bytes:92875 (92.8 KB)
wlo1 Link encap:Ethernet HWaddr 20:10:7a:f9:83:ac
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2ad8:a66c:5b3e:7794/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12534 errors:0 dropped:0 overruns:0 frame:0
TX packets:9145 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16778686 (16.7 MB) TX bytes:1145205 (1.1 MB)
答案1
这里发生了两件事之一。要么您的以太网驱动程序已过时/丢失,导致它无法完全连接,要么您连接的电缆或路由器端口有故障。
首先,您应该通过将另一台计算机连接到同一根电缆并查看其执行的操作来仔细检查是否是后者。
如果不是这个问题,您可以尝试运行以下命令:
sudo apt-get update
sudo apt-get install linux-backports-modules-wireless-lucid-generic