摘要:由于GitHub开源项目的RTL8125/RTL8125B(S)网卡驱动版本为:r8125-9.003.05,更新时间为:2020年4月;截止目前Unix (Linux)最新的RTL8125/RTL8125B(S)网卡跟作者的软件驱动有一点的差异,因此整理出来了最新版的驱动安装方法。...
2021年7月8日 更新:《Proxmox VE(PVE)系统7.0正式版发布,基于Debian 11“Bullseye”》发布后自带 网卡驱动,可直接系统安装并使用,在开始阅读本教程前,请先确认自己 PVE系统版本。

Proxmox VE(PVE)系统 RTL8125B USB 2.5G网卡驱动安装成功界面
GitHub项目名称:RTL8125-Driver-for-Proxmox-VE5-6-and-debian
GitHub项目地址:https://github.com/tubaxiaosiji/RTL8125-Driver-for-Proxmox-VE5-6-and-debian
GitHub下载地址:https://github.com/tubaxiaosiji/RTL8125-Driver-for-Proxmox-VE5-6-and-debian/archive/refs/heads/master.zip
本地下载:RTL8125-Driver-for-Proxmox-VE5-6-and-debian-master.zip【点击下载】GitHub项目,驱动版本为:r8125-9.003.05
方法一、手动安装【推荐】
由于GitHub开源项目的RTL8125/RTL8125B(S)网卡驱动版本为:r8125-9.003.05,更新时间为:2020年4月;
截止2021年05月01日,Unix (Linux)最新的RTL8125/RTL8125B(S)网卡是:9.005.01,更新时间为:2021/02/01。
截止2021年06月06日,Unix (Linux)最新的RTL8125/RTL8125B(S)网卡是:9.005.06,更新时间为:2021/05/28。
跟作者的软件驱动有一点的差异,因此整理出来了最新版的驱动安装方法。
扩展阅读:最新网卡驱动可点击《RTL8125/RTL8125B(S)螃蟹网卡驱动官方平台下载》链接查看获取
安装方法:
执行下方一键安装命令即可,在驱动安装之前建议先《将Proxmox VE(PVE)系统修改设置为国内源》,这样会为您节省不少的时间。
驱动版本:9.005.01
,驱动更新时间为:2021/02/01,文章更新时间:2021/03/24
安装命令:wget https://www.nasge.com/d/file/2021/04/01/r8125_9.005.01.tar.bz2 && tar vjxf $PWD/r8125_*.tar.bz2 && cd ./r8125_9.*.01 && chmod a+x rtl8125-9.*.01_install.sh && bash rtl8125-9.*.01_install.sh
驱动版本:9.005.06
,驱动更新时间为:2021/05/28,文章更新时间:2021/06/06
安装命令:wget https://www.nasge.com/d/file/driver/lan/r8125/r8125_9.005.06.tar.bz2 && tar vjxf $PWD/r8125_*.tar.bz2 && cd ./r8125-9.*.06 && chmod a+x rtl8125-9.*.06_install.sh && bash rtl8125-9.*.06_install.sh
演示如下:
root@pve:~# wget https://www.nasge.com/d/file/driver/lan/r8125/r8125_9.005.06.tar.bz2 && tar vjxf $PWD/r8125_*.tar.bz2 && cd ./r8125-9.*.06 && chmod a+x rtl8125-9.*.06_install.sh && bash rtl8125-9.*.06_install.sh
在安装过程弹出 Do you want to continue? [Y/n]
时,输入 y
回车即可。
之后等待安装完成即可。 完成后 lsmod | grep r8152
将可以发现设备。
root@pve:~# lsmod | grep r8125
r8125 141456 0
方法二、GitHub 在线安装方法
如果觉得方法一中的上传操作步骤过多,可以按照 GitHub 项目下的方法进行设置
项目成立缘由:为Proxmox VE 5/6 快速添加RTL 8125 2.5G网卡驱动,少走点弯路。。。一块由89 RMB TP-link 2.5G 网卡引发的血案。。。
基于debian的发行版本可以尝试运行一下,因为不同发行版本的软件源仓库可能不太一样,不一定有匹配的内核image和内核Headers,这个得靠各位去尝试了。 如果你的系统是PVE系统的话,直接无脑下一步就行了。
注意事项[Notice]:
安装之前请留意注意事项
- Get superuser permission 【最好请使用root用户编译】
- Add no subcript source 【添加非订阅用户源】
- NOT recommended for production use 【不建议生产环境中使用】
- PVE pve-no-subscription repository provided by proxmox.com 【非订阅用户软件仓库由proxmox.com提供】
- Support Proxmox VE 5.0-6.0 (include 6.2.x) 【支持PVE 5.0-6.0 系统,包括6.2.x 】
- r8125-9.003.05.tar.bz2 provided by Realtek.com 【r8125-9.003.05.tar.bz2由Realtek官网提供】
- Support Linux kernel version 2.4 to 5.6 【支持的Linux内核版本,从2.4到5.6】
root@hostname# 这个是命令提示符, "#" #号后面的才是SHELL命令
使用方法如下 [Usage]:
1.安装git和它的依赖组件 [Install git and dependent packages]
root@hostname# apt-get update
root@hostname# apt-get -y install git
2.克隆我的仓库 [Clone my .git]
root@hostname# git clone https://github.com/tubaxiaosiji/RTL8125-Driver-for-Proxmox-VE.git
4.切换到目录 [Change dir]
root@hostname# cd ./RTL8125-Driver-for-Proxmox-VE
5.赋予运行权限 [Chmod]
root@hostname# chmod a+x rtl8125_install.sh
6.运行脚本 [Run script in shell]
root@hostname# bash rtl8125_install.sh
7.等待一会 [Wait for a minutes]...
8.检查模块是否已安装加载 [Check kernel module is exist it]
root@hostname# lsmod | grep 'r8125'
出现 r8125字样即安装成功 [If show 'r8125' that is OK!]
例如:
root@pve:~/RTL8125# lsmod | grep 'r8125'
r8125 141456 0
9.如果出现 modprobe: ERROR: could not insert r8125: Invalid argument,请重启系统再运行一遍脚本即可。
[If show modprobe: ERROR: could not insert r8125: Invalid argument appears, please restart the system and run the script again.]
---------------------------------- THE END ----------------------------------