H3C Technologies H3C S12500 Series Switches User Manual

Page 124

Advertising
background image

113

# Shut down GigabitEthernet 4/0/1 and GigabitEthernet 4/0/2, disable the spanning tree

feature on GigabitEthernet 4/0/1 and GigabitEthernet 4/0/2 separately, and configure them as
trunk ports that permit VLANs 1 through 30.

[SwitchD] interface gigabitethernet 4/0/1

[SwitchD-GigabitEthernet4/0/1] shutdown

[SwitchD-GigabitEthernet4/0/1] undo stp enable

[SwitchD-GigabitEthernet4/0/1] port link-type trunk

[SwitchD-GigabitEthernet4/0/1] port trunk permit vlan 1 to 30

[SwitchD-GigabitEthernet4/0/1] quit

[SwitchD] interface gigabitethernet 4/0/2

[SwitchD-GigabitEthernet4/0/2] shutdown

[SwitchD-GigabitEthernet4/0/2] undo stp enable

[SwitchD-GigabitEthernet4/0/2] port link-type trunk

[SwitchD-GigabitEthernet4/0/2] port trunk permit vlan 1 to 30

[SwitchD-GigabitEthernet4/0/2] quit

# Create smart link group 1, and configure all VLANs mapped to MSTI 1 as the protected VLANs.

[SwitchD] smart-link group 1

[SwitchD-smlk-group1] protected-vlan reference-instance 1

# Configure GigabitEthernet 4/0/1 as the master port and GigabitEthernet 4/0/2 as the slave

port for smart link group 1.

[SwitchD-smlk-group1] port gigabitethernet4/0/1 master

[SwitchD-smlk-group1] port gigabitethernet4/0/2 slave

# Enable flush message sending in smart link group 1, and configure VLAN 20 as the transmit

control VLAN.

[SwitchD-smlk-group1] flush enable control-vlan 20

[SwitchD-smlk-group1] quit

# Bring up GigabitEthernet 4/0/1 and GigabitEthernet 4/0/2 again.

[SwitchD] interface gigabitethernet 4/0/1

[SwitchD-GigabitEthernet4/0/1] undo shutdown

[SwitchD-GigabitEthernet4/0/1] quit

[SwitchD] interface gigabitethernet 4/0/2

[SwitchD-GigabitEthernet4/0/2] undo shutdown

[SwitchD-GigabitEthernet4/0/2] quit

3.

Configure Switch B:
# Create VLANs 1 through 30.

<SwitchB> system-view

[SwitchB] vlan 1 to 30

# Configure GigabitEthernet 4/0/1 as a trunk port, and assign it to VLANs 1 through 30. Enable

flush message receiving on it, and configure VLAN 10 and VLAN 20 as the receive control VLANs.

[SwitchB] interface gigabitethernet 4/0/1

[SwitchB-GigabitEthernet4/0/1] port link-type trunk

[SwitchB-GigabitEthernet4/0/1] port trunk permit vlan 1 to 30

[SwitchB-GigabitEthernet4/0/1] smart-link flush enable control-vlan 10 20

[SwitchB-GigabitEthernet4/0/1] quit

# Configure GigabitEthernet 4/0/2 as a trunk port, and assign it to VLANs 1 through 30. Disable

the spanning tree feature and enable flush message receiving on it, and configure VLAN 20 as the

receive control VLAN.

Advertising
This manual is related to the following products: