1,lshw -C network
WARNING: you should run this program as super-user.
*-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:08:00.0
logical name: enp8s0
version: 15
serial: 04:d9:f5:35:3c:e6
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.052.01-NAPI duplex=full ip=192.168.60.66 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:24 ioport:f000(size=256) memory:f6404000-f6404fff memory:f6400000-f6403fff
RTL8111/8168/8411为网卡,driver=r8168 driverversion=8.052.01-NAPI 网卡驱动为r8168,网卡驱动版本:8.052.01-NAPI
2,我之前的网卡驱动是r8169,所以驱动没有对应。
3,安装r8168驱动流程
官网:Realtek PCIe FE / GBE / 2.5G / 5G Ethernet Family Controller Software - 瑞昱半导体
下载文件GBE Ethernet LINUX driver r8168 for kernel up to 5.19
解压
tar -jxvf r8168-8.052.01.tar.bz2
编译
cd 到解压的驱动文件中的src文件夹
sudo make all
安装驱动:可能没有执行脚本权限,先赋权限,执行完毕后重启
chmod +x autorun.sh
sudo ./autorun.sh
重启
reboot