6–RoCE Configuration
Configuring RoCE on the Adapter for ESX
81
AH0054601-00 B
4.
To view a list of the RDMA devices, issue the
esxcli rdma device list
command. For example:
esxcli rdma device list
Name Driver State MTU Speed Paired Uplink Description
------- ------- ------ ---- ------- ------------- -------------------------------
vmrdma0 qedrntv Active 1024 25 Gbps vmnic0 QLogic FastLinQ QL45xxx RDMA Interface
vmrdma1 qedrntv Active 1024 25 Gbps vmnic1 QLogic FastLinQ QL45xxx RDMA Interface
1.
To create a new virtual switch, issue the following command:
esxcli network vswitch standard add -v <new vswitch name>
For example:
#
esxcli network vswitch standard add -v roce_vs
This creates a new virtual switch named
roce_vs
.
2.
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
3.
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
4.
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
5.
To configure the VLAN ID, issue the following command:
#
esxcfg-vswitch -v <VLAN ID> -p roce_pg
To run RoCE traffic with VLAN ID, configure the VLAN ID on the
corresponding VMkernel port group.