H3C Technologies H3C S10500 Series Switches User Manual
Page 167
![background image](https://www.manualsdir.com/files/812733/content/doc167.png)
156
# Enable LLDP globally.
[SwitchC] lldp global enable
# Create Ethernet frame header ACL 4000.
[SwitchC] acl number 4000 name DCBX
# Configure the ACL to permit FCoE packets (whose protocol number is 0x8906) to pass through.
[SwitchC-acl-ethernetframe-4000] rule 0 permit type 8906 ffff
# Configure the ACL to permit FIP protocol packets (whose protocol number is 0x8914) to pass
through.
[SwitchC-acl-ethernetframe-4000] rule 5 permit type 8914 ffff
[SwitchC-acl-ethernetframe-4000] quit
# Create a class named DCBX, configure the operator of the class as OR, and use ACL 4000 as
the match criterion of the class.
[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
# Enable PFC by force on Ten-GigabitEthernet 1/0/5.
[SwitchC] interface ten-gigabitethernet 1/0/5
[SwitchC-Ten-GigabitEthernet1/0/5] priority-flow-control enable
# Enable PFC for 802.1p priority 3 on Ten-GigabitEthernet 1/0/5.
[SwitchC-Ten-GigabitEthernet1/0/5] priority-flow-control no-drop dot1p 3
# Configure Ten-GigabitEthernet 1/0/5 to trust the 802.1p priority carried in incoming packets.