I have a ASRock Rack B650D4U3-2L2Q/BCM with Broadcom BCM57502. It has a dualrate 25/10G fs.com generic SFP+. I have a Mikrotik CSS318-16G-2S+ with a 10G SFP+ fs.com generic.
Running TrueNAS 25.04.2. The Tik swOS is 2.18, most recent firmware.
To bring up the link, I have to hard set the port on TrueNAS. I think this is fine. Except in the TrueNAS network settings, there is no setting for this in the UI. Is this correct?
Second question:
Upon doing ethtool -s enp2s0f0np0 autoneg off speed 10000, the link comes up. However, since enp2s0f0np0 is in a bridge, my bridge remains down for some reason. In the CLI (via IPMI), if I press (1) “Configure Network Interfaces” then open the br0 interface, change nothing, save and apply the network settings, my br0 interfaces comes right up.
Is there a way to configure this in a startup script? I cannot identify something for the 2nd question, scripting the ethtool command is easy enough though. Thx.
In general, hard setting network speed or duplex is not supported at 10Gbits/ps or higher. It may work, and you may need to perform such a task in your use case. Just saying that auto-negotiating is a mandatory feature for 10Gbit/ps or higher.
For your second question. Yes, I see no reason why you can’t automate the tasks on reboot.
Basically you create a script that does the work, (as “root” of course), and install it in a place that survives updates. (Or perhaps not, maybe an update will “fix” the problem…) In the GUI their is a place for enabling Init scripts, (or shutdown scripts).
If you need to feed parameters to am interactive sub-command, like the TrueNAS CLI interface, something like this may work:
ethtool -s enp2s0f0np0 autoneg off speed 10000
cli <<HEREIS
menu
1
br0
q
7
exit
HEREIS
Obviously test thoroughly, both from the command line right after reboot. Then again, when installed as an Init script.
Ideally, auto-neg would work. However, it is not always the case with various NIC’s, drivers, and modules. I think it is fairly reasonable to allow a user to change their port settings in the UI. I was thinking about a feature request.
With morning coffee after reading your post, I made a Startup Script with command that does ethtool -s enp2s0f0np0 autoneg off speed 10000 and selected Pre Init. This worked through 2 reboots, so I feel alright about that. Thanks.