0 Mitglieder und 1 Gast betrachten dieses Thema.
<Linux device driver for Realtek Ethernet controllers> This is the Linux device driver released for RealTek RTL8125 2.5Gigabit Ethernet controllers with PCI-Express interface.<Requirements> - 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<Quick install with proper kernel settings> Unpack the tarball : # tar vjxf r8125-8.aaa.bb.tar.bz2 Change to the directory: # cd r8125-8.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 If there is a device name, ethX, shown on the monitor, the linux driver is loaded. Then, you can use the following command to activate the ethX. # ifconfig ethX up ,where X=0,1,2,...<Set the network related information> 1. Set manually a. Set the IP address of your machine. # ifconfig ethX "the IP address of your machine" b. Set the IP address of DNS. Insert the following configuration in /etc/resolv.conf. nameserver "the IP address of DNS" c. Set the IP address of gateway. # route add default gw "the IP address of gateway" 2. Set by doing configurations in /etc/sysconfig/network-scripts /ifcfg-ethX for Redhat and Fedora, or /etc/sysconfig/network /ifcfg-ethX for SuSE. There are two examples to set network configurations. a. Fixed IP address: DEVICE=eth0 BOOTPROTO=static ONBOOT=yes TYPE=ethernet NETMASK=255.255.255.0 IPADDR=192.168.1.1 GATEWAY=192.168.1.254 BROADCAST=192.168.1.255 b. DHCP: DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes<Modify the MAC address> There are two ways to modify the MAC address of the NIC. 1. Use ifconfig: # ifconfig ethX hw ether YY:YY:YY:YY:YY:YY ,where X is the device number assigned by Linux kernel, and YY:YY:YY:YY:YY:YY is the MAC address assigned by the user. 2. Use ip: # ip link set ethX address YY:YY:YY:YY:YY:YY ,where X is the device number assigned by Linux kernel, and YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.<Force Link Status> 1. Force the link status when insert the driver. If the user is in the path ~/r8125, the link status can be forced to one of the 5 modes as following command. # insmod ./src/r8125.ko speed=SPEED_MODE duplex=DUPLEX_MODE autoneg=NWAY_OPTION ,where SPEED_MODE = 1000 for 1000Mbps = 100 for 100Mbps = 10 for 10Mbps DUPLEX_MODE = 0 for half-duplex = 1 for full-duplex NWAY_OPTION = 0 for auto-negotiation off (true force) = 1 for auto-negotiation on (nway force) For example: # insmod ./src/r8125.ko speed=100 duplex=0 autoneg=1 will force PHY to operate in 100Mpbs Half-duplex(nway force). 2. Force the link status by using ethtool. a. Insert the driver first. b. Make sure that ethtool exists in /sbin. c. Force the link status as the following command. # ethtool -s ethX speed SPEED_MODE duplex DUPLEX_MODE autoneg NWAY_OPTION ,where SPEED_MODE = 1000 for 1000Mbps = 100 for 100Mbps = 10 for 10Mbps DUPLEX_MODE = half for half-duplex = full for full-duplex NWAY_OPTION = off for auto-negotiation off (true force) = on for auto-negotiation on (nway force) For example: # ethtool -s eth0 speed 100 duplex full autoneg on will force PHY to operate in 100Mpbs Full-duplex(nway force).<Jumbo Frame> Transmitting Jumbo Frames, whose packet size is bigger than 1500 bytes, please change mtu by the following command. # ifconfig ethX mtu MTU , where X=0,1,2,..., and MTU is configured by user. RTL8125 supports Jumbo Frame size up to 9 kBytes.
Läuft bis Kernel 5.6
nicht vergessen, dass fälschlicherweise zugeordnete/fehlerhaft arbeitende Modul r8169 zu sperren! Sonst funktionier das nicht.
Zitat von: Michelle_Br am 25.02.2021, 21:59:03Läuft bis Kernel 5.6Ich benutze aktuell den 5.8er Kernel. Dann kann das wohl nicht gehen.
uname -a
echo "blacklist r8169" | sudo tee /etc/modprobe.d/blacklist_r8169.confmkdir r8125 && cd r8125sudo apt install dkms build-essentialwget https://media-cdn.ubuntu-de.org/forum/attachments/27/49/9210307-r8125-dkms_9.004.01.tar.gzsudo tar xvf 9210307-r8125-dkms_9.004.01.tar.gz -C /usr/srcsudo dkms install r8125/9.004.01 sudo depmod -asudo update-initramfs -u
dkms statuslsmod | grep r81ip a
uname -aLinux manfred-Linux 5.8.0-43-generic #49~20.04.1-Ubuntu SMP Fri Feb 5 09:57:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
dkms statusnvidia, 460.39, 5.8.0-43-generic, x86_64: installedr8125, 9.001.00: addedr8125, 9.004.01, 5.8.0-43-generic, x86_64: installed (WARNING! Diff between built and installed module!)manfred@manfred-Linux:~$ lsmod | grep r81r8125 155648 0manfred@manfred-Linux:~$ ip a1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever2: enp39s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 2c:f0:5d:25:b4:29 brd ff:ff:ff:ff:ff:ff3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether ac:67:5d:47:eb:a9 brd ff:ff:ff:ff:ff:ff altname wlp40s0 inet 10.220.0.6/16 brd 10.220.255.255 scope global dynamic noprefixroute wlo1 valid_lft 1378sec preferred_lft 1378sec inet6 fe80::ed1d:45d0:ba32:28ba/64 scope link noprefixroute valid_lft forever preferred_lft forever
inxi -NNetwork: Device-1: Realtek RTL8125 2.5GbE driver: r8125 Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi
r8125, 9.004.01, 5.8.0-43-generic, x86_64: installed (WARNING! Diff between built and installed module!)
r8125, 9.001.00: added
sudo dkms remove r8125/9.001.00 --alldkms status
ls -l /usr/src/* | grep r81
sudo dkms remove r8125/9.001.00 --all[sudo] Passwort für manfred: Das hat nicht funktioniert, bitte nochmal probieren.[sudo] Passwort für manfred: ------------------------------Deleting module version: 9.001.00completely from the DKMS tree.------------------------------Done.
ls -l /usr/src/* | grep r81/usr/src/r8125-9.001.00:/usr/src/r8125-9.004.01:/usr/src/r8125-9.005.01:
sudo rm -r /usr/src/r8125-9.001.00sudo rm -r /usr/src/r8125-9.005.01
dkms statusnvidia, 460.39, 5.8.0-43-generic, x86_64: installedr8125, 9.004.01, 5.8.0-43-generic, x86_64: installed (WARNING! Diff between built and installed module!)manfred@manfred-Linux:~$ lsmod | grep r81r8125 155648 0manfred@manfred-Linux:~$ ip a1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever2: enp39s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 2c:f0:5d:25:b4:29 brd ff:ff:ff:ff:ff:ff inet6 fe80::230b:4532:d511:6129/64 scope link noprefixroute valid_lft forever preferred_lft forever3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether ac:67:5d:47:eb:a9 brd ff:ff:ff:ff:ff:ff altname wlp40s0 inet 10.220.0.6/16 brd 10.220.255.255 scope global dynamic noprefixroute wlo1 valid_lft 1542sec preferred_lft 1542sec inet6 fe80::ed1d:45d0:ba32:28ba/64 scope link noprefixroute valid_lft forever preferred_lft forever
sudo dkms remove r8125/9.001.00 --allsudo rm -r /usr/src/r8125-9.004.01cd r8125sudo tar xvf 9210307-r8125-dkms_9.004.01.tar.gz -C /usr/srcsudo dkms install r8125/9.004.01 sudo depmod -asudo update-initramfs -udkms status
sudo ethtool enp39s0
Ist das verwendete Kabel und der Anschluss ganz sicher in Ordnung?
sudo ethtool enp39s0[sudo] Passwort für manfred: Settings for enp39s0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full 2500baseX/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes Supported FEC modes: Not reported Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full 2500baseX/Full Advertised pause frame use: Symmetric Receive-only Advertised auto-negotiation: Yes Advertised FEC modes: Not reported Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on MDI-X: Unknown Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000033 (51) drv probe ifdown ifup Link detected: yes