我看到我安装的 Ubuntu 18.04 上的默认驱动程序是 r8169。
然后我按照这个指南(https://unixblogger.com/how-to-get-your-realtek-rtl8111rtl8168-working-updated-guide/)建议
sudo apt-get install r8168-dkms
这是成功的,但重新启动后,仍然没有以太网连接。
sara@sara-Aspire-V5-591G:/usr/lib$ dkms status
r8168, 8.045.08, 4.15.0-76-generic, x86_64: installed
sara@sara-Aspire-V5-591G:/usr/lib$ modinfo r8168 | grep -i version
version: 8.045.08-NAPI
srcversion: 45361C7A45067DE67257C08
如果我执行 ifconfig,我会看到
enp8s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 54:ab:3a:2c:4b:ad txqueuelen 1000 (Ethernet)
RX packets 76299 bytes 7139057 (7.1 MB)
RX errors 0 dropped 6 overruns 0 frame 0
TX packets 894 bytes 280187 (280.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 126 base 0x5000
如果我做
sara@sara-Aspire-V5-591G:/usr/lib$ ethtool enp8s0
Settings for enp8s0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
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
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
sara@sara-Aspire-V5-591G:/usr/lib$ sudo ethtool -S enp8s0
[sudo] password for sara:
NIC statistics:
tx_packets: 894
rx_packets: 79934
tx_errors: 0
rx_errors: 0
rx_missed: 0
align_errors: 0
tx_single_collisions: 0
tx_multi_collisions: 0
unicast: 0
broadcast: 76397
multicast: 3537
tx_aborted: 0
tx_underrun: 0
有什么帮助吗?