H3C Technologies H3C S10500 Series Switches User Manual

Page 160

Advertising
background image

149

# Create Layer 2 aggregate interface 3, and configure it to operate in dynamic aggregation

mode.

[SwitchA] interface bridge-aggregation 3

[SwitchA-Bridge-Aggregation3] link-aggregation mode dynamic

# Enable STP on Layer 2 aggregate interface 3.

[SwitchA-Bridge-Aggregation3] stp enable

# Enable LACP MAD for Layer 2 aggregate interface 3.

[SwitchA-Bridge-Aggregation3] mad enable

You need to assign a domain ID (range: 0-4294967295)

[Current domain is: 1]:

The assigned domain ID is: 1

Info: MAD LACP only enable on dynamic aggregation interface.

[SwitchA-Bridge-Aggregation3] quit

# Assign ports Ten-GigabitEthernet 1/0/10 and Ten-GigabitEthernet 2/0/10 to Layer 2

aggregation group 3.

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

[SwitchA-Ten-GigabitEthernet1/0/10] port link-aggregation group 3

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

[SwitchA] interface ten-gigabitethernet 2/0/10

[SwitchA-Ten-GigabitEthernet2/0/10] port link-aggregation group 3

[SwitchA-Ten-GigabitEthernet2/0/10] quit

# Configure Layer 2 aggregate interface 3 as a trunk port, and assign the aggregate interface to
VLAN 1001.

[SwitchA] interface bridge-aggregation 3

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

[SwitchA-Bridge-Aggregation3] port trunk permit vlan 1001

[SwitchA-Bridge-Aggregation3] 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

Advertising