Install driver network RTL8125 2.5GbE in Centos 7
a. check network card
# lspci | egrep -i –color ‘network|ethernet’
00:14.3 Network controller: Intel Corporation Device 43f0 (rev 11)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8161 (rev 15)

b. download driver from github and install
# cd /opt
# git clone https://github.com/tmacro/r8125.git
Cloning into ‘r8125’…
remote: Enumerating objects: 36, done.
remote: Counting objects: 100% (36/36), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 36 (delta 15), reused 26 (delta 9), pack-reused 0
Unpacking objects: 100% (36/36), done.
[root@host01 opt]# cd r8125/

# ./autorun.sh
Check old driver and unload it.
Build the module and install
At main.c:160:
– SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
– SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:182
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 4.14.35-1902.300.11.el7uek.x86_64
load module r8125
Completed.

c. check module
# lsmod | grep r8125
r8125 151552 0

d. setup ip address
# ifconfig -a
enp3s0: flags=4099<up,broadcast,multicast> mtu 1500
ether d8:bb:c1:63:14:e9 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 162</up,broadcast,multicast>

# ifconfig enp3s0 192.168.0.61 up
# ifconfig -a
enp3s0: flags=4163<up,broadcast,running,multicast> mtu 1500
inet 192.168.0.61 netmask 255.255.255.0 broadcast 192.168.0.255
ether d8:bb:c1:63:14:e9 txqueuelen 1000 (Ethernet)
RX packets 314 bytes 65099 (63.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 1176 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 162</up,broadcast,running,multicast>

Leave a comment

Trending