Ubuntu install RTL8125 2.5G Ethernet driver

Original Paper Share link

https://pineboards.io/blogs/tutorials/how-to-install-the-realtek-rtl8125-2-5g-ethernet-driver-on-ubuntu

If you need to install the Realtek RTL8125 2.5Gb Ethernet driver on Ubuntu, using the driver from the GitHub repository provides a method to ensure you're using the most up-to-date version. This tutorial will guide you through the process of installing the driver via a script included in the repository.

Prerequisites
  • An Ubuntu system with internet access.
  • Terminal access with sudo privileges.
Step 1: Install Required Packages

Before you can install the driver, you'll need to ensure your system has the necessary tools and headers to compile and manage kernel modules.

  1. Open a terminal.
  2. Install the Linux headers for your current kernel, along with essential packages for building and managing kernel modules:

    sudo apt-get install linux-headers-$(uname -r) sudo apt install devscripts debmake debhelper build-essential dkms

Step 2: Clone the Driver Repository

Download the driver source code directly from GitHub to get the latest version.

  1. Clone the Realtek RTL8125 driver repository:

    git clone https://github.com/awesometic/realtek-r8125-dkms.git

  2. Navigate to the directory of the cloned repository:

    cd realtek-r8125-dkms

Step 3: Run the Installation Script

The repository includes a script that automates the installation of the driver using DKMS. This ensures that the driver remains operational across kernel updates.

  1. Execute the installation script:

    sudo ./dkms-install.sh

This script will compile the driver, add it to the DKMS framework, and ensure it is loaded into the kernel. After installing the Realtek RTL8125 driver on your Ubuntu system, a system reboot is necessary to ensure that all changes take effect and the new driver is properly loaded.

Step 4: Reboot Your System
  1. Reboot your system to load the new kernel module:

    sudo reboot

Step 5: Verify the Driver Functionality

Once your system has restarted, confirm that the driver is correctly installed and functioning:

  1. Open a terminal.
  2. Use lspci to check the status of the Ethernet controller:

    lspci -vv

  3. Look for the RTL8125 entry under Ethernet controllers. You should see details similar to the following:

    0000:01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05) 
    Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller 
    Flags: fast devsel, IRQ 169 Memory at 1b00000000 (64-bit, non-prefetchable) [size=64K] 
    Memory at 1b00010000 (64-bit, non-prefetchable) [size=16K] 
    Capabilities: <access denied> 
    Kernel driver in use: r8125 
    Kernel modules: r8125

    This output confirms that the RTL8125 driver is active and the device is properly managed by the system.

Conclusion

Your Realtek RTL8125 2.5Gb Ethernet controller is now fully installed and operational on your Ubuntu system. You can expect improved network performance and stability with the newly installed driver. This installation process ensures that the driver remains integrated and functional across future system updates due to the use of DKMS.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值