H3C Technologies H3C S10500 Series Switches User Manual
Page 34
![background image](https://www.manualsdir.com/files/812733/content/doc034.png)
23
[SwitchA] qos policy DCBX
[SwitchA-qospolicy-DCBX] classifier DCBX behavior DCBX mode dcbx
[SwitchA-qospolicy-DCBX] quit
# Enable LLDP and DCBX TLV advertising on interface Ten-GigabitEthernet 1/0/1.
[SwitchA] interface ten-gigabitethernet 1/0/1
[SwitchA-Ten-GigabitEthernet1/0/1] lldp enable
[SwitchA-Ten-GigabitEthernet1/0/1] lldp tlv-enable dot1-tlv dcbx
# Apply QoS policy DCBX to the outgoing traffic of Ten-GigabitEthernet 1/0/1.
[SwitchA-Ten-GigabitEthernet1/0/1] qos apply policy DCBX outbound
d.
Configure PFC:
# Enable PFC in auto mode on interface Ten-GigabitEthernet 1/0/1.
[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control auto
# Enable PFC for 802.1p priority 3 on the interface.
[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control no-drop dot1p 3
# Configure the interface to trust the 802.1p priority carried in incoming packets.
[SwitchA-Ten-GigabitEthernet1/0/1] qos trust dot1p
[SwitchA-Ten-GigabitEthernet1/0/1] quit
# Forcibly enable PFC on interface Ten-GigabitEthernet 1/0/2.
[SwitchA] interface ten-gigabitethernet 1/0/2
[SwitchA-Ten-GigabitEthernet1/0/2] priority-flow-control enable
# Enable PFC for 802.1p priority 3 on the interface.
[SwitchA-Ten-GigabitEthernet1/0/2] priority-flow-control no-drop dot1p 3
# Configure the interface to trust the 802.1p priority carried in incoming packets.
[SwitchA-Ten-GigabitEthernet1/0/2] qos trust dot1p
[SwitchA-Ten-GigabitEthernet1/0/2] quit
e.
Configure ETS:
# Configure the 802.1p-local priority mapping table as follows:
−
Map 802.1p priority value 3 to local precedence 1.
−
Map the other 802.1p priorities to local precedence 0.
[SwitchA] qos map-table dot1p-lp
[SwitchA-maptbl-dot1p-lp] import 3 export 1
[SwitchA-maptbl-dot1p-lp] import 0 1 2 4 5 6 7 export 0
[SwitchA-maptbl-dot1p-lp] quit
# Configure WRR on interface Ten-GigabitEthernet 1/0/1 as follows:
−
Assign 50% of the interface bandwidth to the FCoE traffic (traffic assigned to queue 1).
−
Assign 50% of the interface bandwidth to the LAN traffic (traffic assigned to queue 0).
[SwitchA] interface ten-gigabitethernet 1/0/1
[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr byte-count
[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr 1 group 1 byte-count 1
[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr 0 group 1 byte-count 1
# Assign the other queues to the SP group on interface Ten-GigabitEthernet 1/0/1.
[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr 2 group sp
[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr 3 group sp
[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr 4 group sp
[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr 5 group sp