2.5Gb NIC not detecting in 12.0-U4 RTL8125

Constantin

Vampire Pig
Joined
May 19, 2017
Messages
1,829
Pay it forward when you can.

I have stood (and continue to stand!) on the shoulders of giants here.
 

QonoS

Explorer
Joined
Apr 1, 2021
Messages
87

kn51

Dabbler
Joined
Apr 29, 2017
Messages
14
I've been running variations of the if_re.ko module for several months now that was grabbed from various sources. The one included with Truenas recently had a tad different size than the one I was using and I am using that one now.

Performance wise it has no problem with line speed in my system. Note that I don't have any other 2.5GB devices on my network. But thanks to comcast and 1.2Gbit with 20% overprovisioning it will do 168MB/sec.

Now where I'm finding issues is (and this is using various modules and not just the Truenas one) is the entire system will become unresponsive during heavy sustained use. There was even a note somewhere I found about this to make a tunable for this issue but it hasn't resolved the issue.
 

leonardorame

Contributor
Joined
Jun 30, 2018
Messages
106
Can you confirm the file /boot/modules/if_re.ko won't be overwritten or deleted after an upgrade?. I'm sending a TrueNAS with this NIC to a remote site and wouldn't like to lose networking ;-).
 
Last edited:

kn51

Dabbler
Joined
Apr 29, 2017
Messages
14
It will get overwritten. All the tunable entries stays as it was. I've just upgraded from 4 to 4u1 and it came back fine.
 

Etorix

Wizard
Joined
Dec 30, 2020
Messages
2,134
Use the tunable.
TrueNAS is an appliance based on FreeBSD; it is not FreeBSD and the user is not supposed to tamper with the system and install or replace modules.
 

tk60

Cadet
Joined
Apr 13, 2021
Messages
1
Hi @iocenter,

Thanks to introduce "tunable", it is easier. I guess the "Type" should be "loader", right?

TK
trueNAS_RTL8125_tunables.jpg
 

Attachments

  • trueNAS_RTL8125_tunables.jpg
    trueNAS_RTL8125_tunables.jpg
    10.1 KB · Views: 912

CrazyRam

Cadet
Joined
Sep 15, 2021
Messages
6
Thank for this, I was having to run manually load the module after reboots with kldload if_re.ko. Works great using Tunables
 

jubjubs

Cadet
Joined
Oct 12, 2021
Messages
2
i did this and my NIC still doesn't work. see screenshot. am i missing a step here? added tuneables and rebooted and nothin.
 

Attachments

  • reload.png
    reload.png
    27.9 KB · Views: 896

jubjubs

Cadet
Joined
Oct 12, 2021
Messages
2
i did this and my NIC still doesn't work. see screenshot. am i missing a step here? added tuneables and rebooted and nothin.
Nope im good now. Was on truenas 12.0-U1.1 but updating to 12.0-U6 made it work.

So to summarize, for Realtek rtl8125 support:
1. system>tuneables - add these 2 tings:
if_re_load | YES | LOADER
if_re_name | /boot/modules/if_re.ko | LOADER
2. And then ensure Truenas is at least 12.0-U4 which is when they added support for the rtl8125

also my card's a fake from scamazon, a dual 2.5g one, but it still works so no worries if ur card is fake.
And get intel based chips if u wanna avoid problems like this.
 

Hyacin

Cadet
Joined
Oct 21, 2021
Messages
6
Hello all,

Apologies, I know this has been asked and covered to death, and I've read everything twice, here and on the PFsense forum, and tried everything three times, to no avail.

I'm running 12.0-U6. I've tried adding the above as described, I've tried adding it as LOADER and as rc.conf ... I've tried adding it to those files directly ... I've tried adding it to loader.conf.local and rc.conf.freenas ... I've tried the built in if_re.ko as well as the one available for download from the PFsense forum link (and then updated all the above references to point to it).

I briefly considered "maybe everyone in the world is talking about PCIe NICs while I'm talking about a USB one", but then I found countless threads and reddit posts where people have had success getting USB NICs to work :-/ ... I'm at my wits end.

It is a Realtek 2.5 Gbe adapter, no questions there -

Code:
freenas% sudo usbconfig -d ugen0.6 dump_device_desc
ugen0.6: <Realtek USB 10/100/1G/2.5G LAN> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (64mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0320
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0009
  idVendor = 0x0bda
  idProduct = 0x8156
  bcdDevice = 0x3100
  iManufacturer = 0x0001  <Realtek>
  iProduct = 0x0002  <USB 10/100/1G/2.5G LAN>
  iSerialNumber = 0x0006  <001000001>
  bNumConfigurations = 0x0003

freenas%


and the module is being loaded (this here is the one I downloaded from the PFsense forum) -

Code:
freenas% sudo kldstat | grep if_r
 2    1 0xffffffff827b1000    d0b38 if_re_dl.ko
freenas%


Yet all I get are my PR4100's built-in re interfaces -

Code:
freenas% ifconfig -l
re0 re1 lo0 pflog0 lagg0 bridge0 vnet0.2
freenas%


I have less than one week experience with TrueNAS, but I've been using FreeBSD for almost 20 years (though I've been away from it for ~5 years or so), so I'm not afraid to get my hands dirty, even if that means spinning up a TrueNAS (or FreeBSD 12.2 proper) VM, downloading some source and building a custom kernel or module... I just need to know *what* to do, and all the instructions I'm finding everywhere are telling me what I've already done should be sufficient :'(

Any help would be GREATLY appreciated!
 

Hyacin

Cadet
Joined
Oct 21, 2021
Messages
6
If it is of any consequence, I have another Realtek 2.5 Gbe adapter with a different bcdDevice code doing the exact same thing -

Code:
freenas% sudo usbconfig -d ugen0.6 dump_device_desc
ugen0.6: <Realtek USB 10/100/1G/2.5G LAN> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (128mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0320
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0009
  idVendor = 0x0bda
  idProduct = 0x8156
  bcdDevice = 0x3000
  iManufacturer = 0x0001  <Realtek>
  iProduct = 0x0002  <USB 10/100/1G/2.5G LAN>
  iSerialNumber = 0x0006  <000F0488C>
  bNumConfigurations = 0x0003

freenas% ifconfig -l
re0 re1 lo0 pflog0 lagg0 bridge0 vnet0.2
freenas%
 

CrazyRam

Cadet
Joined
Sep 15, 2021
Messages
6

CrazyRam

Cadet
Joined
Sep 15, 2021
Messages
6
Top