beautypg.com

H3C Technologies H3C S5830V2 Series Switches User Manual

Page 195

background image

184

# 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.

[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

4.

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 Ten-GigabitEthernet 1/0/1.

[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control no-drop dot1p 3

# Configure Ten-GigabitEthernet 1/0/1 to trust the 802.1p priority carried in incoming packets.

[SwitchA-Ten-GigabitEthernet1/0/1] qos trust dot1p

[SwitchA-Ten-GigabitEthernet1/0/1] quit

# Configure interfaces Ten-GigabitEthernet 1/0/5 through Ten-GigabitEthernet 1/0/8 as follows:

{

Enable PFC by force on the interfaces.

{

Enable PFC for 802.1p priority 3 on the interfaces.

{

Configure the interfaces to trust the 802.1p priority carried in incoming packets.

[SwitchA] interface ten-gigabitethernet 1/0/5

[SwitchA-Ten-GigabitEthernet1/0/5] priority-flow-control enable

[SwitchA-Ten-GigabitEthernet1/0/5] priority-flow-control no-drop dot1p 3

[SwitchA-Ten-GigabitEthernet1/0/5] qos trust dot1p

[SwitchA-Ten-GigabitEthernet1/0/5] quit

[SwitchA] interface ten-gigabitethernet 1/0/6

[SwitchA-Ten-GigabitEthernet1/0/6] priority-flow-control enable

[SwitchA-Ten-GigabitEthernet1/0/6] priority-flow-control no-drop dot1p 3

[SwitchA-Ten-GigabitEthernet1/0/6] qos trust dot1p

[SwitchA-Ten-GigabitEthernet1/0/6] quit

[SwitchA] interface ten-gigabitethernet 1/0/7

[SwitchA-Ten-GigabitEthernet1/0/7] priority-flow-control enable

[SwitchA-Ten-GigabitEthernet1/0/7] priority-flow-control no-drop dot1p 3

[SwitchA-Ten-GigabitEthernet1/0/7] qos trust dot1p

[SwitchA-Ten-GigabitEthernet1/0/7] quit

[SwitchA] interface ten-gigabitethernet 1/0/8

[SwitchA-Ten-GigabitEthernet1/0/8] priority-flow-control enable

[SwitchA-Ten-GigabitEthernet1/0/8] priority-flow-control no-drop dot1p 3

[SwitchA-Ten-GigabitEthernet1/0/8] qos trust dot1p

[SwitchA-Ten-GigabitEthernet1/0/8] quit

5.

Configure ETS:
# Configure the 802.1p-local priority mapping table to map 802.1p priority value 3 to local
precedence 1 and map the other 802.1p priority values to local precedence 0.