7–RoCE Configuration
Preparing the Ethernet Switch
134
BC0154501-00 P
Arista-7060X-EIT(config)#
dcbx ets qos map cos 2 traffic-class 0
Arista-7060X-EIT(config)#
dcbx ets qos map cos 3 traffic-class 0
Arista-7060X-EIT(config)#
dcbx ets qos map cos 4 traffic-class 0
Arista-7060X-EIT(config)#
dcbx ets qos map cos 5 traffic-class 1
Arista-7060X-EIT(config)#
dcbx ets qos map cos 6 traffic-class 0
Arista-7060X-EIT(config)#
dcbx ets qos map cos 7 traffic-class 0
Setting Up ETS
In the following example,
traffic-class 0
is configured with 5 percent
bandwidth, and
traffic-class 1
is configured with 95 percent bandwidth:
Arista-7060X-EIT(config)
#dcbx ets traffic-class 0 bandwidth 5
Arista-7060X-EIT(config)
#dcbx ets traffic-class 1 bandwidth 95
Assigning TCs to Tx-queues
Assign TC 0 to
tx-queue 0
and TC 1 to
tx-queue 1
:
Arista-7060X-EIT(config)#
qos map traffic-class 0 to tx-queue 0
Arista-7060X-EIT(config)#
qos map traffic-class 1 to tx-queue 1
Assign
tx-queue
bandwidth to all switch ports connected to adapters:
Arista-7060X-EIT(config)#
interface ethernet 26/1
Arista-7060X-EIT(config-if-Et26/1)#
tx-queue 0
Arista-7060X-EIT(config-if-Et26/1-txq-0)#
bandwidth percent 5
Arista-7060X-EIT(config-if-Et26/1-txq-0)#
exit
Arista-7060X-EIT(config-if-Et26/1)#
tx-queue 1
Arista-7060X-EIT(config-if-Et26/1-txq-1)#
bandwidth percent 95
Configuring the Interface
The same VLAN ID must be assigned to the server adapter ports (
5
, in this
example). Perform the following configuration on all of the switch interfaces where
the server adapter ports are connected. For DCBX, the protocol mode is set to
CEE and the PFC is enabled for Priority 5.
Arista-7060X-EIT(config)
#interface ethernet 26/1
Arista-7060X-EIT(config-if-Et26/1)
#dcbx mode cee
Arista-7060X-EIT(config-if-Et26/1)
# priority-flow-control mode on
Arista-7060X-EIT(config-if-Et26/1)
# priority-flow-control priority
5 no-drop
Arista-7060X-EIT(config-if-Et26/1)
# switchport mode trunk
Arista-7060X-EIT(config-if-Et26/1)
# switchport trunk allowed vlan
1,5