我刚刚在笔记本电脑上安装了 ubuntu 18.04 lts,但没有局域网,但我有无线网络,对此有什么想法吗?sudo lshw -c 网络结果
network
description: Wireless interface
product: WiFi Link 5100
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:0e:00.0
logical name: wlp14s0
version: 00
serial: 00:16:ea:75:d3:8e
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.15.0-74-generic firmware=8.83.5.1 build 33692 ip=192.168.1.22 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:25 memory:f2100000-f2101fff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:14:00.0
logical name: enp20s0
version: 02
serial: 00:1e:ec:5b:ee:30
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:19 ioport:4000(size=256) memory:f2010000-f2010fff memory:f2000000-f200ffff memory:80600000-8060ffff
答案1
运行以太网接口的 r8169 驱动程序已知存在缺陷,而且最近它确实存在缺陷。
在terminal
...
sudo apt-get update
# 更新软件数据库
sudo apt-get install r8168-dkms
# 用 r8168 驱动程序替换 r8169 驱动程序
reboot
# 重启系统
更新#1:
最初无线接入工作正常,这意味着路由器已正确连接到电缆调制解调器。在排除此问题时,他们重新连接了以太网线,但在将电缆重置为原始配置后,后来发现以太网线错误地插入了路由器背面的 WAN 端口。将其重新插入正确的 LAN 端口,将 WAN 端口重新连接到电缆调制解调器,现在一切正常。r8168 驱动程序修复了原来的问题。