Mellanox ConnectX-2 and up

Started by chrisrc, January 20, 2021, 07:08:40 PM

Previous topic - Next topic
Hey,

I'm new to OPNSense as I just set it up to replace PFS last night. So far so good.

However, I used a 3rd party doc to enable a card I already had in the machine. It's wrong, and I figured out why. https://www.routerperformance.net/opnsense/mellanox-connecx-management-in-opnsense/

It tells you to load the driver by editing /boot/loader.conf via CLI. As those with experience know, this works for one reboot and then gets wiped. The best way to do it to ensure it stays is use the GUI. It also says the earliest card that can be used is a ConnectX-3. That's not true. The earliest is a ConnectX-2 as per my testing and current usage. To install....

  -System>Settings>Tunables and click "+ADD" on top right.
  -In the "Tunable" field enter mlx4en_load, in "Description" write whatever you want, and in Value put in YES
  -Save, go to top and click "Apply Changes", bounce, and you should now see your Mellanox ConnectX-2 and up card

Thanks!

I just wanted to say thank you for posting this information.  I just installed one of these cards in my OPNsense device and it saved me a lot of headaches!
Just a hobbyist trying to figure all this out.