14–Windows Server 2016
Configuring RoCE Interfaces with Hyper-V
244
BC0154501-00 P
shows the command output.
Figure 14-3. Windows PowerShell Command: Get-VMNetworkAdapter
2.
To set the vLAN ID to the host virtual NIC, issue the following Windows
PowerShell command:
PS C:\Users\Administrator>
Set-VMNetworkAdaptervlan
-VMNetworkAdapterName "New Virtual Switch" -VlanId 5 -Access
-Management0S
Verifying If RoCE is Enabled
To verify if the RoCE is enabled:
Issue the following Windows PowerShell command:
Get-NetAdapterRdma
Command output lists the RDMA supported adapters as shown in
Figure 14-4. Windows PowerShell Command: Get-NetAdapterRdma
NOTE
Note the following about adding a vLAN ID to a host virtual NIC:
A vLAN ID must be assigned to a host virtual NIC. The same vLAN
ID must be assigned to ports on the switch.
Make sure that the vLAN ID is not assigned to the physical
interface when using a host virtual NIC for RoCE.
If you are creating more than one host virtual NIC, you can assign
a different vLAN to each host virtual NIC.