两天前我在一台 PC 上下载了 Ubuntu 18.04.3 LTS,但无法让以太网工作。它检测到连接并显示速度为 1000mb/s,但连接不起作用。
我有一块 ASRock B450M Pro4 主板和一个 AMD7 Ryzen CPU,不确定这是否会影响它。
使用 lshw -C 网络
*-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:05:00.0
logical name: enp5s0
version: 15
serial: 70:85:c2:ff:c8:f8
size: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd
100bt 100bt-fd 1000bt-fd autonegation
configuration: autonegation=on broadcast=yes driver=r8169 duplex=full
firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:34 ioport:f000(size=256) memory:fcb04000-fcb04fff memory:fcb00000-fcb03fff
使用 ip -ca
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 70:85:c2:ff:c8:f8 brd ff:ff:ff:ff:ff:ff
任何帮助,将不胜感激!
答案1
跑步:
sudo apt-get install r8168-dkms
然后重新启动您的电脑。