beautypg.com

Setting a fabric name, Setting the switch priority – H3C Technologies H3C S12500-X Series Switches User Manual

Page 52

background image

43

# Enable LLDP on interface Ten-GigabitEthernet 1/0/1, and enable the interface to advertise

DCBX TLVs.

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

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

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

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

# Create an Ethernet frame header ACL numbered 4000, and configure two rules in the ACL to
match FCoE frames (protocol type 0x8906) and FIP frames (protocol type 0x8914).

[SwitchB] acl number 4000

[SwitchB-acl-ethernetframe-4000] rule permit type 8906 ffff

[SwitchB-acl-ethernetframe-4000] rule permit type 8914 ffff

[SwitchB-acl-ethernetframe-4000] quit

# Create a class named app_c with the logic OR operator, and specify ACL 4000 as the match

criterion.

[SwitchB] traffic classifier app_c operator or

[SwitchB-classifier-app_c] if-match acl 4000

[SwitchB-classifier-app_c] quit

# Create a behavior named app_b, and configure the action of marking packets with 802.1p
priority 3.

[SwitchB] traffic behavior app_b

[SwitchB-behavior-app_b] remark dot1p 3

[SwitchB-behavior-app_b] quit

# Create a QoS policy named plcy, and associate the class app_c with the behavior app_b in the
QoS policy, specifying that the class-behavior association applies only to DCBX.

[SwitchB] qos policy plcy

[SwitchB-qospolicy-plcy] classifier app_c behavior app_b mode dcbx

[SwitchB-qospolicy-plcy] quit

# Apply the QoS policy plcy to the outbound direction of interface Ten-GigabitEthernet 1/0/1.

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

[SwitchB-Ten-GigabitEthernet1/0/1] qos apply policy plcy outbound

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

# Map 802.1p priority 3 to local precedence 3 in the outbound direction. (This is the default
mapping, and you can modify the mapping as needed.)

[SwitchB] qos map-table dot1p-lp

[SwitchB-maptbl-out-dot1p-lp] import 3 export 3

[SwitchB-maptbl-out-dot1p-lp] quit

# Enable byte-count WRR on interface Ten-GigabitEthernet 1/0/1, and configure queue 3 to use
strict priority (SP) queuing.

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

[SwitchB-Ten-GigabitEthernet1/0/1] qos wrr byte-count

[SwitchB-Ten-GigabitEthernet1/0/1] qos wrr 3 group sp

# Enable interface Ten-GigabitEthernet 1/0/1 to automatically negotiate with its peer to decide
whether to enable PFC, enable PFC for 802.1p priority 3, and configure Ten-GigabitEthernet

1/0/1 to trust the 802.1p priority carried in packets.

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

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

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

This manual is related to the following products: