2.5Gb NIC not detecting in 12.0-U4 RTL8125

acidwap

Cadet
Joined
Jun 2, 2021
Messages
6
Hi all.

New to the community and not very experienced with Truenas but I do have a working system and appreciate any help I can get on the following matter.

So I bought myself one of these Trendnet 2.5g nics which supposedly uses the Realtek RTL8125 chipset according to servethehome.com
NIC -> https://www.trendnet.com/support/support-detail.asp?prod=315_TEG-25GECTX
STH review -> https://www.servethehome.com/trendnet-2-5gbase-t-pcie-adapter-review-teg-25gectx/

And seeing the release notes on 12.0-U4 - I was delighted to find that the Realtek RTL8125 chipset was supported.
https://www.truenas.com/docs/releasenotes/core/12.0u4/

So I was assuming that I install NIC into my build and away it should go... However that's not the case, Truenas isn't detecting the 2.5 NIC as a physical interface when i look in Network - Interfaces, and it isn't listed in the console either when I go to configure Network Interfaces.

Am I missing an extra step here or something that I'm not aware of?

again thanks for any advice given.

Details of my build
  • Asus P8B WS mobo
  • Intel Xeon E3-1245 v2 cpu
  • 24 Gb ECC ram
  • Drives are running through LSI HBA set to IT mode.
  • 2.5g NIC is installed in a PCIe 2.0 x16 slot
 

phoretis

Cadet
Joined
Dec 19, 2015
Messages
4
Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 04)
Same problem here. Network card not working Realtek RTL8125 2.5GbE Controller. Detected with lspci -qnn :

Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 04)

But nothing more, missing drivers ? Strange like acidwap said : In the rls 12.0-U4 it should be working
- [NAS-108091] - Realtek RTL8125/RTL 8111 support

Someone could helping us ?

Details of my build
  • MDB-X11SCA-F-O Supermicro
  • Intel Xeon E-2244G cpu
  • 16 Gb ECC ram
  • LSI 9210-8i HBA set to IT mode.
  • SAS Expender HP
  • Realtek 2.5g NIC
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
I would point you to the notes in that jira ticket, very specifically the last line:


Permalink

amezin Aleksandr Mezin added a comment - 19/Apr/21 2:21 AM - edited

It is supported by current realtek-re-kmod https://www.freshports.org/net/realtek-re-kmod/
pfSense now includes it (since 2.5.0): https://redmine.pfsense.org/issues/11079
I've manually installed it on TrueNAS CORE 12.0-U3, RTL8125 works at full speed, haven't noticed any issues, at least for home nas use case (works even in a bridge, with VMs attached to it).
The package is small, and only is used when explicitly enabled through tunables (`if_re_load`, `if_re_name`). So it would be nice if the package was included in TrueNAS.
 

Constantin

Vampire Pig
Joined
May 19, 2017
Messages
1,828
That’s just plain weird. Sorry; I don’t think it’s reasonable to announce Realtek driver support only to premise actual drivers being loaded if the user uses the equivalent of a secret handshake.

none of us, to my knowledge, have had to enable our Intel or chelsio NICs using tunables.
 

acidwap

Cadet
Joined
Jun 2, 2021
Messages
6
HI, thanks for taking the time to reply everyone... unfortunately i'm really new to this and the Jira ticket as pointed out by @sretalla doesn't mean much to me.
 

phoretis

Cadet
Joined
Dec 19, 2015
Messages
4
@sretalla

I'm new with TrueNas. I know i must use "Tunable" There are some field and "`if_re_load`, `if_re_name`. What should I put in each field please ?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
That’s just plain weird
Agreed... but so is including a realtek driver...

I have to say I was suprised to see it, but it seems that pfSense has done the work to prove it reliable enough, so fair play.

I was also expecting to see the driver loaded automatically if a card were present to use it, but the jira ticket seems to clearly show that's not how it works.
 

Constantin

Vampire Pig
Joined
May 19, 2017
Messages
1,828
I had such a good experience with a Realtek usb-fiber converter that it’s now on the electronic trash pile. Maybe it’s metal case can be recycled into something useful, the PCB is just a waste of resources, even with windows 10 drivers.
 

acidwap

Cadet
Joined
Jun 2, 2021
Messages
6
so how does one get it to work? - I gather from the conversations above it is possible but something needs to be done?
 

Constantin

Vampire Pig
Joined
May 19, 2017
Messages
1,828
Per the Jira tickets and user amezin:

@amezin amezin commented on Apr 20
See net/realtek-re-kmod/pkg-message:
Add the following lines to your /boot/loader.conf
to override the built-in FreeBSD re(4) driver.

if_re_load="YES"
if_re_name="/boot/modules/if_re.ko"

If these aren't set, my RTL8125 card doesn't work. I do not have any hardware supported by the builtin driver, so, unfortunately, I can't confirm whether the builtin driver actually works with these tunables disabled/removed (but I will be surprised if it doesn't).

so modify the rc.conf settings in tunables by adding the two variables and settings to it, save it, then reboot to make it happen. Good luck!
 

iocenter

Cadet
Joined
Jan 18, 2021
Messages
4
Step-by-step instructions

  1. Sign in to TrueNAS
  2. Click on Shell in the menu on the left
  3. Change directory to boot
  4. Code:
    cd ..
    cd boot
  5. Edit loader.conf with your favourite editor
    1. e.g. vim loader.conf
    2. Copy-paste following two lines at the bottom and leave a descriptive comment for "future you"
      Code:
      if_re_load="YES"
      [*]if_re_name="/boot/modules/if_re.ko"
    3. Save and exit
  6. Restart TrueNAS
  7. After restarting and logging in, click on Network in the menu on the left, then Interfaces and add your Realtek NIC
  8. Done!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702

iocenter

Cadet
Joined
Jan 18, 2021
Messages
4
@sretalla I see.

For everyone else who hasn't heard of Tunables before you can add them in Menu - System - Tunables

Here's a screenshot of the first variable:

Tunables.png
 

Constantin

Vampire Pig
Joined
May 19, 2017
Messages
1,828
Great job, @iocenter! Good idea to show where to find the tunables in the Ui, and to make the instructions visual.

I’m still flummoxed by the odd need to set tunables to use this new driver.
 
Top