beautypg.com

H3C Technologies H3C S5830V2 Series Switches User Manual

Page 207

background image

196

[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

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

mode.

[SwitchA] interface bridge-aggregation 2

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

# Disable STP on Layer 2 aggregate interface 2.

[SwitchA-Bridge-Aggregation2] undo stp enable

[SwitchA-Bridge-Aggregation2] quit

# Assign ports GigabitEthernet 2/0/5 through GigabitEthernet 2/0/8 to Layer 2 aggregation
group 2.

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

[SwitchA-Ten-GigabitEthernet2/0/5] port link-aggregation group 2

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

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

[SwitchA-Ten-GigabitEthernet2/0/6] port link-aggregation group 2

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

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

[SwitchA-Ten-GigabitEthernet2/0/7] port link-aggregation group 2

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

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

[SwitchA-Ten-GigabitEthernet2/0/8] port link-aggregation group 2

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

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

[SwitchA] interface bridge-aggregation 2

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

[SwitchA-Bridge-Aggregation2] port trunk permit vlan 4002

[SwitchA-Bridge-Aggregation2] quit

# 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