After CPU upgrade, TrueNAS (often) doesn't find the network interface any more

Steasenburger

Explorer
Joined
Feb 12, 2020
Messages
52
Hi everyone,
A few days ago I've upgraded my TrueNAS System with a new AMD Ryzen 5600 CPU (before I was using an AMD 2200G).
To do this, i had to also perform a BIOS upgrade for my ASUS B350M-A motherboard.
Everything was working well and the CPU was correctly detected.

However, when I started the system after the upgrade, TrueNAS did not came online on the network.
I attached a GPU to the system (since there is no IGPU anymore) and was surprised to see, that it booted up correctly but shows:

"The web interface could not be accessed.
Please check your network configuration."

And when choose to configure network configuration, there was simply no network interface at all that could be configured.

I googled a bit and found that you should add "if_re_load"="YES" and "if_re_name"="/boot/modules/if_re.ko" to /boot/loader.conf, which is what I did.
This seemed to do the trick even before the Upgrade to TrueNAS 13, where this is necessary to use 2.5 Gbit/s NICs (which I don't have).

I rebooted the system and the network interface came back and I could successfully connect to TrueNAS.
However, it was no permanent success. After I stopped the system again and tried to start it, it was offline again.
So right now i always have to perform a few reboots, before I can finally connect to TrueNAS.

Here is a bit debug output (with a working NIC), maybe it helps:
Code:
truenas# ifconfig
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: lan
        options=2019<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,WOL_MAGIC>
        ether 40:b0:76:09:07:4b
        inet 192.168.0.97 netmask 0xffffff00 broadcast 192.168.0.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=9<PERFORMNUD,IFDISABLED>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=0<> metric 0 mtu 33160
        groups: pflog
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 58:9c:fc:10:ff:b8
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: vnet0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 5 priority 128 path cost 2000000
        member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 1 priority 128 path cost 20000
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>
vnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80000<LINKSTATE>
        ether fe:a0:98:00:9e:68
        hwaddr 58:9c:fc:10:72:69
        groups: tap
        media: Ethernet autoselect
        status: active
        nd6 options=9<PERFORMNUD,IFDISABLED>
        Opened by PID 1982


Code:
pciconf -lv
...

re0@pci0:6:0:0: class=0x020000 rev=0x15 hdr=0x00 vendor=0x10ec device=0x8168 subvendor=0x1043 subdevice=0x8677
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet


Anything else needed?

I am using TrueNAS-13.0-U2
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Unfortunately, Realtek NICs have a poor experience reputation here - I suggest you search for RTL8111 and read up on them.
 

Steasenburger

Explorer
Joined
Feb 12, 2020
Messages
52
Hmm yeah i already read that they often lead to problems.
The thing is, that I haven't had any issues at all with the NIC until I upgraded my UEFI and CPU...

Do you recommend a separate network card? If yes, which one would be suitable (and preferable cheap).
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
From the Resource section at https://www.truenas.com/community/resources/hardware-recommendations-guide.12/

Gigabit Ethernet For Gigabit Ethernet, the recommendation is simple: Intel.

Any Intel 1GbE controller will work fine.

Intel I217/I218/I219-series The I217/218/219 series of NICs is actually just a PHY for the gigabit Ethernet hardware present in the PCH. These are basic adapters that will be fine for most users but lack certain features that may be useful in more complex environments. Note that -V models are not officially supported under FreeBSD (and thus TrueNAS), whereas the -LM models are officially supported.

Intel I210 The I210 NIC is a very popular model, close to a standalone I217 with some additional features (notably the ability to be multiplexed between host and BMC).

Intel I350 The I350 NIC is Intel’s high-end GbE model and supports high-end features such as Virtual Machine Device Queues (VMDq) and Single-Root I/O Virtualization (SR-IOV). It is available in both two- and four-port model
 

Steasenburger

Explorer
Joined
Feb 12, 2020
Messages
52
Thanks, i didn't know about this hardware guide yet.
Right now i am just looking for the cheapest possible network card, that should work fine, since I don't really want to replace my mainboard (and i guess that would be more expensive anyway).
Would something like this work for me: https://smile.amazon.de/dp/B09Z6P6L5X ?

Or what about this network card, which is event cheaper? https://geizhals.de/level-one-gnc-0105t-a69895.html?hloc=at&hloc=de&hloc=eu&hloc=pl&hloc=uk
Its chipset is not listed in the hardware guide, but it's also from Intel, so it could work...?
Here is the English datasheet, if you are non-German: https://gzhls.at/blob/ldb/2/0/1/2/1ad9bb8467e564db4c8d533f134cfc810067.pdf
 
Top