Connectivity Guide

To enable RRoCE, congure the QoS service policy on the switch in ingress and egress directions on all the interfaces. For more information
about this conguration, see Congure RoCE on the switch.
Congure RoCE on the switch
The following example describes the steps to congure RoCE on the switch. This conguration example uses priority 3 for RoCE.
1 Enter CONFIGURATION mode.
OS10# configure terminal
OS10 (config)#
2 Enable the Data Center Bridging Exchange protocol (DCBX).
OS10 (config)# dcbx enable
3 Create a VLAN. In this example, VLAN 55 switchs the RoCE trac. You can congure any value from 1 to 4093.
OS10 (config)# interface vlan 55
4 Create a network-qos type class-map for priority ow control (PFC).
OS10 (config)# class-map type network-qos pfcdot1p3
OS10 OS10(config-cmap-nqos)# match qos-group 3
5 Create queuing-type class-maps for enhanced transmission selection (ETS).
OS10 (config)# class-map type queuing Q0
OS10 (config)# match queue 0
OS10 (config)# class-map type queuing Q3
OS10 (config)# match queue 3
6 Create a QoS map for ETS.
OS10 (config)# qos-map traffic-class 2Q
OS10(config-qos-map)# queue 0 qos-group 0-2, 4-7
OS10(config-qos-map)# queue 3 qos-group 3
7 Create a policy-map for PFC.
OS10 (config)# policy-map type network-qos pfcdot1p3
OS10(config-pmap-network-qos)# class pfcdot1p3
OS10(config-pmap-c-nqos)# pause
8 Create an egress policy-map.
OS10 (config)# policy-map type queuing 2Q
OS10 (config-pmap-queuing)# class Q0
OS10 (config-pmap-c-que)# bandwidth percent 30
OS10 (config-pmap-c-que)# exit
OS10 (config-pmap-queuing)# class Q3
OS10 (config-pmap-c-que)# bandwidth percent 70
OS10 (config-pmap-c-que)#
9 Apply the dot1p trust globally or at the interface level. In this example, the dot1p trust is applied globally.
OS10 (config)# system qos
OS10 (config)# trust-map dot1p default
10 Perform the following congurations on all switch interfaces where you want to support RoCE:
a Enter INTERFACE mode and enter the no shutdown command.
OS10# configure terminal
OS10 (config)# interface ethernet 1/1/1
OS10 (conf-if-eth1/1/1)# no shutdown
b Change the switch port mode to Trunk mode.
OS10 (conf-if-eth1/1/1)# switchport mode trunk
c Specify the allowed VLANs on the trunk port.
OS10 (conf-if-eth1/1/1)# switchport trunk allowed vlan 55
d Apply the network-qos type policy-map to the interface.
OS10 (conf-if-eth1/1/1)# service-policy input type network-qos pfcdot1p3
e Apply the queuing policy to egress trac on the interface.
OS10 (conf-if-eth1/1/1)# service-policy output type queuing 2Q
984
Quality of service