去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
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
# 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 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)