H3C Technologies H3C S5830V2 Series Switches User Manual
Page 36
25
# Create a QoS policy named DCBX, associate class DCBX with traffic behavior DCBX in the QoS
policy, and specify that the association apply to DCBX.
[Sysname] qos policy DCBX
[Sysname-qospolicy-DCBX] classifier DCBX behavior DCBX mode dcbx
[Sysname-qospolicy-DCBX] quit
# Enable LLDP and DCBX TLV advertising on interface Ten-GigabitEthernet 1/0/1.
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp enable
[Sysname-Ten-GigabitEthernet1/0/1] lldp tlv-enable dot1-tlv dcbx
# Apply QoS policy DCBX to the outgoing traffic of Ten-GigabitEthernet 1/0/1.
[Sysname-Ten-GigabitEthernet1/0/1] qos apply policy DCBX outbound
4.
Configure PFC:
# Enable PFC in auto mode on interface Ten-GigabitEthernet 1/0/1.
[Sysname-Ten-GigabitEthernet1/0/1] priority-flow-control auto
# Enable PFC for 802.1p priority 3 on the interface.
[Sysname-Ten-GigabitEthernet1/0/1] priority-flow-control no-drop dot1p 3
# Configure the interface to trust the 802.1p priority carried in incoming packets.
[Sysname-Ten-GigabitEthernet1/0/1] qos trust dot1p
[Sysname-Ten-GigabitEthernet1/0/1] quit
5.
Configure ETS:
# Configure the 802.1p-local priority mapping table to map 802.1p priority values 3 to local
precedence 1 and map the other 802.1p priorities to local precedence 0.
[Sysname] qos map-table dot1p-lp
[Sysname-maptbl-dot1p-lp] import 3 export 1
[Sysname-maptbl-dot1p-lp] import 0 export 0
[Sysname-maptbl-dot1p-lp] import 1 export 0
[Sysname-maptbl-dot1p-lp] import 2 export 0
[Sysname-maptbl-dot1p-lp] import 4 export 0
[Sysname-maptbl-dot1p-lp] import 5 export 0
[Sysname-maptbl-dot1p-lp] import 6 export 0
[Sysname-maptbl-dot1p-lp] import 7 export 0
[Sysname-maptbl-dot1p-lp] quit
# Enable byte-count WRR on interface Ten-GigabitEthernet 1/0/1.
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] qos wrr byte-count
# Configure WRR on interface Ten-GigabitEthernet 1/0/1:
{
Assign 50% of the interface bandwidth to the FCoE traffic (traffic assigned to queue 1).
{
Assign 50% of the interface bandwidth to Ethernet data traffic (traffic assigned to queue 0).
[Sysname-Ten-GigabitEthernet1/0/1] qos wrr af1 group 1 byte-count 1
[Sysname-Ten-GigabitEthernet1/0/1] qos wrr be group 1 byte-count 1
# Assign the other queues to the SP group on interface Ten-GigabitEthernet 1/0/1.
[Sysname-Ten-GigabitEthernet1/0/1] qos wrr af2 group sp
[Sysname-Ten-GigabitEthernet1/0/1] qos wrr af3 group sp
[Sysname-Ten-GigabitEthernet1/0/1] qos wrr af4 group sp
[Sysname-Ten-GigabitEthernet1/0/1] qos wrr ef group sp
[Sysname-Ten-GigabitEthernet1/0/1] qos wrr cs6 group sp