7–RoCE Configuration
Configuring RoCE on the Adapter for VMware ESX
155
AH0054602-00 J
6.
To associate the QLogic NIC port to the vSwitch, issue the following
command:
#
esxcli network vswitch standard uplink add -u <uplink
device> -v <roce vswitch>
For example:
#
esxcli network vswitch standard uplink add -u vmnic0 -v
roce_vs
7.
To create a new port group on this vSwitch, issue the following command:
#
esxcli network vswitch standard portgroup add -p roce_pg -v
roce_vs
For example:
#
esxcli network vswitch standard portgroup add -p roce_pg -v
roce_vs
8.
To create a vmknic interface on this port group and configure the IP, issue
the following command:
#
esxcfg-vmknic -a -i <IP address> -n <subnet mask> <roce port
group name>
For example:
#
esxcfg-vmknic -a -i 192.168.10.20 -n 255.255.255.0 roce_pg
9.
To configure the vLAN ID, issue the following command:
#
esxcfg-vswitch -v <VLAN ID> -p roce_pg
To run RoCE traffic with a vLAN ID, configure the vLAN ID on the
corresponding VMkernel port group.
Configuring MTU
To modify the MTU for an RoCE interface, change the MTU of the corresponding
vSwitch. Set the MTU size of the RDMA interface based on the MTU of the
vSwitch by issuing the following command:
#
esxcfg-vswitch -m <new MTU> <RoCE vswitch name>
For example:
#
esxcfg-vswitch -m 4000 roce_vs
# esxcli rdma device list
Name Driver State MTU Speed Paired Uplink Description
------- ------- ------ ---- ------- ------------- -------------------------------