VyOS doesn't support other modes rather than default Nx40G out-of-box with 40G Intel NICs due to licensing limitations. You can download an additional package from the official Intel website and change NIC operating mode manually. Here is an example on how to do that:
- Download the required package for Linux on your VyOS device
wget https://downloadmirror.intel.com/25851/eng/Linux_x64.zip
- Unpack the downloaded archive, enter the unpacked directory and make qcu64e file executable
unzip Linux_x64.zip cd Linux_x64 chmod +x qcu64e
- Check available devices
sudo ./qcu64e /DEVICES
- Check available modes
sudo ./qcu64e /NIC=1 /INFO
- Set NIC mode to 4x10G (device reboot required to finish NIC mode update)
sudo ./qcu64e /NIC=1 /SET=4x10
- Check NIC info and mode after reboot
sudo ./qcu64e /NIC=1 /INFO