Linux Reltex Network card

solve realtek can not connect network

  1. Phonomenon:

cmd:ip link show

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp100s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:00:1a:20:74:82 brd ff:ff:ff:ff:ff:ff

cmd: lspci | grep -i ethernet

64:00.0 Ethernet controller: Aquantia Corp. AQtion AQC113 NBase-T/IEEE 802.3an Ethernet Controller [Antigua 10G] (rev 03)
65:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 0c)

cmd: evelyn@evelyn-Taego:~$ sudo dmesg | grep -iE 'atlantic|r8125|error'

[ 0.376464] BERT: Error records from previous boot:
[ 0.376465] [Hardware Error]: event severity: fatal
[ 0.376466] [Hardware Error]: Error 0, type: fatal
[ 0.376466] [Hardware Error]: fru_text: DIMM# Sourced
[ 0.376467] [Hardware Error]: section_type: memory error
[ 0.376467] [Hardware Error]: error_status: Storage error in DRAM memory (0x0000000000040400)
[ 0.376469] [Hardware Error]: node:0 card:2 module:0
[ 0.376469] [Hardware Error]: error_type: 15, physical memory map-out event
[ 0.378468] RAS: Correctable Errors collector initialized.
[ 0.468249] r8169 0000:65:00.0: error -ENODEV: unknown chip XID 688, contact r8169 maintainers (see MAINTAINERS file)
[ 0.550790] atlantic: Detect ATL2FW 1050026
[ 1.702020] atlantic 0000:64:00.0 enp100s0: renamed from eth0
[ 2028.542389] atlantic 0000:64:00.0 enp100s0: atlantic: link change old 0 new 1000
[13601.221084] atlantic 0000:64:00.0 enp100s0: atlantic: link change old 1000 new 0
[15654.240367] atlantic 0000:64:00.0 enp100s0: atlantic: link change old 0 new 1000
[15657.311959] atlantic 0000:64:00.0 enp100s0: atlantic: link change old 1000 new 0
[15667.551740] atlantic 0000:64:00.0 enp100s0: atlantic: link change old 0 new 1000```

why

the network card is newer and the linux kernel default is the older drvier : r8169

how

change r8169 driver to r8125

  1. ban permanantely the r8125
  2. install r8125
  3. reboot

final

lspci -k -s 65:00.0
65:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 0c)
	Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller
	Kernel driver in use: r8125
	Kernel modules: r8125
posted @ 2025-04-08 16:01  nipper  阅读(71)  评论(0)    收藏  举报