H3C Technologies H3C S10500 Series Switches User Manual

Page 145

Advertising
background image

134

[SwitchA-Ten-GigabitEthernet1/0/5] port link-aggregation group 1

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

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

[SwitchA-Ten-GigabitEthernet1/0/6] port link-aggregation group 1

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

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

[SwitchA-Ten-GigabitEthernet1/0/7] port link-aggregation group 1

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

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

[SwitchA-Ten-GigabitEthernet1/0/8] port link-aggregation group 1

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

# Configure Layer 2 aggregate interface 1 as a trunk port, and assign the aggregate interface to

VLAN 4001.

[SwitchA] interface bridge-aggregation 1

[SwitchA-Bridge-Aggregation1] port link-type trunk

[SwitchA-Bridge-Aggregation1] port trunk permit vlan 4001

[SwitchA-Bridge-Aggregation1] quit

3.

Configure DCBX:
# Enable LLDP globally.

[SwitchA] lldp global enable

# Create Ethernet frame header ACL 4000.

[SwitchA] acl number 4000 name DCBX

# Configure the ACL to permit FCoE packets (protocol number is 0x8906) to pass through.

[SwitchA-acl-ethernetframe-4000] rule 0 permit type 8906 ffff

# Configure the ACL to permit FIP protocol packets (protocol number is 0x8914) to pass through.

[SwitchA-acl-ethernetframe-4000] rule 5 permit type 8914 ffff

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

[SwitchA] traffic classifier DCBX operator or

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

[SwitchA-classifier-DCBX] quit

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

priority value 3.

[SwitchA] traffic behavior DCBX

[SwitchA-behavior-DCBX] remark dot1p 3

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

[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

Advertising