The central configuration file is the /etc/infiniband/mlx4_vnic.conf file and consists of multiple single-line entries, each describing a VNIC. Each VNIC entry has the following format and parameters:
name=name mac=mac ib_port=device:port [vid=vlan_id] vnic_id=number bx=string eport=connector
name is the VNIC device name or eth number.
mac is the MAC assigned to the VNIC.
device is the device name retrieved from the hca_id field in the output of the ibv_devinfo command.
port is the port number, either 1 or 2.
vlan_id is the VLAN identifier to assign to the VNIC. The value is 0–4095.
Note - The vid parameter is optional.
number is a unique number to assign to the VNIC. The value is 1–32767.
string is either the HCA port GUID or the system name.
connector is the gateway connector assigned to the VNIC (0A-ETH-1 to 0A-ETH-4 and 1A-ETH-1 to 1A-ETH-4).