beautypg.com

H3C Technologies H3C S5830V2 Series Switches User Manual

Page 186

background image

175

[SwitchC] traffic classifier DCBX operator or

[SwitchC-classifier-DCBX] if-match acl 4000

[SwitchC-classifier-DCBX] quit

# Create a behavior named DCBX, and configure the behavior to mark packets with 802.1p
priority value 3.

[SwitchC] traffic behavior DCBX

[SwitchC-behavior-DCBX] remark dot1p 3

[SwitchC-behavior-DCBX] quit

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

[SwitchC] qos policy DCBX

[SwitchC-qospolicy-DCBX] classifier DCBX behavior DCBX mode dcbx

[SwitchC-qospolicy-DCBX] quit

# Enable LLDP and DCBX TLV advertising on interface Ten-GigabitEthernet 1/0/1.

[SwitchC] interface ten-gigabitethernet 1/0/1

[SwitchC-Ten-GigabitEthernet1/0/1] lldp enable

[SwitchC-Ten-GigabitEthernet1/0/1] lldp tlv-enable dot1-tlv dcbx

# Apply QoS policy DCBX to the outgoing traffic of Ten-GigabitEthernet 1/0/1.

[SwitchC-Ten-GigabitEthernet1/0/1] qos apply policy DCBX outbound

4.

Configure PFC:
# Enable PFC in auto mode on interface Ten-GigabitEthernet 1/0/1.

[SwitchC-Ten-GigabitEthernet1/0/1] priority-flow-control auto

# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/1.

[SwitchC-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.

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

[SwitchC-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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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