去github https://github.com/awesometic/realtek-r8125-dkms/releases
然后
This is the Linux device driver released for RealTek RTL8125 2.5Gigabit Ethernet controllers with PCI-Express interface.
- Kernel source tree (supported Linux kernel 2.6.x and 2.4.x)
- For linux kernel 2.4.x, this driver supports 2.4.20 and latter.
- Compiler/binutils for kernel compilation
Unpack the tarball : # tar vjxf r8125-9.aaa.bb.tar.bz2
Change to the directory:cd r8125-9.aaa.bb
If you are running the target kernel, then you should be able to do :
# ./autorun.sh (as root or with sudo)
You can check whether the driver is loaded by using following commands.
# lsmod | grep r8125
# ifconfig -a
Transmitting Jumbo Frames, whose packet size is bigger than 1500 bytes, please change mtu by the following command.
#
{spa.wfdignzhi.com]
{spa.teaopu.com]
{spa.heiwado-event.com]
{spa.zhujiuyuan.com]
{spa.gym-odessa.com]
{spa.ynthwj.com] ifconfig ethX mtu MTU
, where X=0,1,2,..., and MTU is configured by user.
RTL8125 supports Jumbo Frame size up to 9 kBytes.
Get/Set device EEE status
Get EEE device status (查看你的网卡,enp1s0根据你实际的来 通过 ifconfig 查看,比如我的是p1p1)
# ethtool --show-eee enp1s0
Set EEE device status *(强行设置链接速率)
# ethtool --set-eee enp1s0 eee on tx-lpi on tx-timer 1546 advertise 0x0008 (100M full)
# ethtool --set-eee enp1s0 eee on tx-lpi on tx-timer 1546 advertise 0x0020 (1G)
# ethtool --set-eee enp1s0 eee on tx-lpi on tx-timer 1546 advertise 0x8000 (2.5G)