Add Link Mapping

About this task

Note

Note

All network and server connection settings and mappings can be saved to csv files for bulk configuration using the startup file option in the ml2_conf_extreme.ini file.

Procedure

  1. Log in to the network node using SSH and go to the EFA folder.
    # cd efa
  2. Add link mapping.
    • If bonding is enabled on Compute node.
      # Sudo efa-link-mapping add -H compute-hostname/ip-address -n NIC -s switch-ip -p port-name -P portchannel-name
    • If bonding is not enabled on Compute node.
      # Sudo efa-link-mapping  add -H compute-hostname/ip-address -n NIC -s switch-ip -p port-name

Example

The following example shows the CSV file format for including all the host NIC and switch port mapping information.
Link.csv 

CCEP: 
<compute-host>,<compute-nic>,<switch-ip>, <switch-port>, <lag name> 
Compute1,ens2f0,<MCT Leaf1>,<0/10:1>,lag_Compute1 
Compute1,ens2f1,<MCT Leaf2>,<0/10:1>,lag_Compute1

CEP/Single Homed Leaf: 
Compute2,ens2f0,<MCT Leaf1>,<0/20:1> 
Compute3,ens2f0,<MCT Leaf1>,<0/20:2>
The sudo efa-link-mapping add -f link.csv command reads the CSV file and maps NICs and switch ports.
# sudo efa-pn-mapping add -H 10.24.51.114  -n eth1 -s 10.24.14.134 -p 0/1 5

# sudo efa-pn-mapping add -H 10.24.51.115  -n eth1 -s 10.24.14.134 -p 0/2 -P lag_115

# sudo efa-pn-mapping add -H 10.24.51.115  -n eth2 -s 10.24.14.133 -p 0/2 -P lag_115