Hi all,
i created a jail to install ethtool, but my system say:
pkg install ethtool
"No packages available to install matched … "
The background is that I have to set / limit the speed to 10Gbit on a Boradcom 25Gbit networkcard (P225)
Hi all,
i created a jail to install ethtool, but my system say:
pkg install ethtool
"No packages available to install matched … "
The background is that I have to set / limit the speed to 10Gbit on a Boradcom 25Gbit networkcard (P225)
13.0 is EOL, if you want to install new jails, you have to use the manual update file to update core to 13.3 and deploy an new jail with 13.4 as version
ethtool
is a Linux utility. TrueNAS CORE is based on FreeBSD.
Read the manpage for ifconfig
. All you need can be done with that command in sane operating systems. No jail or extra packages necessary.
Hi Lars, Thank you for your feedback. Can I upgrade the existing system without losing the current configuration? If so, how?
Hi pmh, can you show me the correct command to set the speed? “man ifconfig” doesn’t help me right now.
many thanks in advance …
ifconfig [interface] media [mediatype]
where mediatype is one of the following;
1000baseT
for 1Gbps10GbaseLR
for 10Gbps over long-range fiber10GbaseSR
for 10Gbps over short-range fiber25GbaseSR
for 25Gbps over short-range fiber
To make it persist across reboots (after you have tried the above and made sure it worked as expected) use something like;
echo ‘ifconfig_bnxe0=“media 10GbaseSR”’ >> /etc/rc.conf
for a 10Gb short range fiber on the interface bnxe0.
Hi Emigrating,
i got an error:
“unknown media systype: 10GbaseLR”
when i enter the command
ifconfig bnxt0 media 10GbaseLR
The recommendation would be to check the manpage for bnxt:
man bnxt
Most drivers have all supported media types listed there. Unfortunately that’s not the case for bnxt(4)
So we refer to the source code:
https://cgit.freebsd.org/src/tree/sys/net/if_media.h?h=stable/13#n433
These are all media types of all adapters supported by ifconfig
- you will have to try them until you find the one that works.
Possibly “10Gbase-LR”? But do you really have a long range fibre connection?
Noooo!
Use the UI - Network > Interfaces > bnxt0, edit, add media <mediatype>
in the “options” field, save and apply.
HTH,
Patrick
Hi Patrick, thx for your replay and help.
yes this is a LR Gbic and i to set the following command:
“echo ‘ifconfig_bnxt0=“media 10GbaseSR”’ >> /etc/rc.conf” but without success.
ifonfig bnxt0 say: “media: Ethernet autoselect (unknown )”
I also set the UI - Network > Interfaces > bnxt0, edit, add media <mediatype>
in the “options” field, save and apply without success.
Any ideas?
I clearly wrote not to do this! And of course it won’t have any effect because the file is rewritten on every reboot. That advice is wrong!
Second, even if it would work it only takes effect after a reboot.
Things that take immediate effect:
Third, if that is a long range module why are you trying “10GbaseSR” - “SR” is for short range. Your module is of a different type so that’s clearly not supported.
And fourth, as I also already wrote it is not “10GbaseLR” but “10Gbase-LR” with a dash between “10Gbase” and “LR”.
So please follow the advice to the letter and first try on the command line as root:
ifconfig bnxt0 media 10Gbase-LR
and only if that succeeds enter “media 10Gbase-LR” into the options field in the UI. And don’t touch anything else, specifically never change configuration files on the command line. TrueNAS CORE is not FreeBSD. It’s based on FreeBSD but modifying rc.conf like on a plain FreeBSD will either have no effect or just break your system.
Hi Patrick, of course you are right, I had copied the command (ifconfig bnxt0 media 10Gbase-SR) and then forgot to change SR to LR, at least here in the forum.
If I enter the command ifconfig bnxt0 media 10Gbase-LR
as root in a shell-window, I get “SIOCSIFMEDIA (media): Device not configured” in the GUI under Network / Interfaces, but now it says Interface Subtype: 10Gbase-SR.
That is of course wrong, because it should say 10Gbase-LR.
I have now reset the network settings and after restarting the server there are no more entries (that I made by mistake) in /etc/rc.conf (only the original entries)
Likewise, there are no more entries in the GUI under Network / Interfaces / Edit in the options.
How can I change the incorrect entry in the GUI under Dashboard / Interface bnxt0 to the correct entry 10Gbase-LR? It currently says 10Gbase-SR.
Thank you for your help
Gunnar
Since I do not have this hardware, it’s a bit difficult to help, now. If the system says 10Gbase-SR is the only supported type maybe the optical module is detected as SR? No idea. I don not even know what type of modules 25G interfaces use, never seen anything faster than 10G
Can you try to boot a current (14.2) FreeBSD ISO and check in a live shell if that works?
Depending on the outcome you might want to take this to the freebsd-net mailinglist, although I doubt people will be very helpful for FreeBSD 13.3 which TrueNAS is based on. That is EOL already.
You need to first get things running with ifconfig
on the shell, then you can care about the UI.