7–RoCE Configuration
Configuring RoCE on the Adapter for VMware ESX
157
BC0154501-00 P
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
5.
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
.
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.