How to configure two single-port cards and one dual-port card as a local network?

hello, i have one dual-port connectx-3 card and two single-port connectx-3 cards, i want to build a local network with the three cards, but i can not finish it. is there some advices?

i want to connect them just like this:

Hi,

Please make sure:

  1. The hosts are equipped with Mellanox ConnectX-3 adapters

  2. The hosts are installed with the latest MLNX-OFED release and firmware version

Driver:

https://www.mellanox.com/products/infiniband-drivers/linux/mlnx_ofed

Firmware:

https://www.mellanox.com/support/firmware/firmware-downloads

  1. The cables are supported

https://www.mellanox.com/products/interconnect/ethernet-overview#:~:text=Because%20Mellanox%20offers%20one%20of,To%20maximize%20system%20performance.

  1. Mellanox ConnectX-3 adapter card may be equipped with one or two ports that may be configured to run InfiniBand or Ethernet.

In order to change the port type (eth, ib), please follow the documentation below

https://community.mellanox.com/s/article/howto-change-port-type-in-mellanox-connectx-3-adapter

Regards,

Chen