Configuration Roadmap
The configuration roadmap is as follows:
1. Enable STP globally. Then SwitchA, which is connected to a Layer 3 device, becomes the
root bridge. The link between SwitchD and SwitchE is blocked by STP.
2. Configure interfaces on SwitchD as trunk interfaces and add the interfaces to VLANs.
3. Enable HVRP globally and on the interfaces of SwitchD.
Data Preparation
To complete the configuration, you need the following data:
l Type of GE 1/0/0, GE 2/0/0, and GE 3/0/0 of SwitchD: trunk
l VLANs that GE 1/0/0 and GE 2/0/0 belong to: VLAN 101 to VLAN 500
l VLANs that GE 3/0/0 belongs to: VLAN 101 to VLAN 200
Procedure
Step 1 Configure SwitchD.
# Enable STP globally.
<Quidway> system-view
[Quidway] stp enable
# Create VLANs.
<Quidway> system-view
[Quidway] vlan batch 101 to 500
# Configure the interfaces as trunk interfaces and add the interfaces to VLANs.
[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] port link-type trunk
[Quidway-GigabitEthernet1/0/0] port trunk allow-pass vlan 101 to 500
[Quidway-GigabitEthernet1/0/0] quit
[Quidway] interface gigabitethernet 2/0/0
[Quidway-GigabitEthernet2/0/0] port link-type trunk
[Quidway-GigabitEthernet2/0/0] port trunk allow-pass vlan 101 to 500
[Quidway-GigabitEthernet2/0/0] quit
[Quidway] interface gigabitethernet 3/0/0
[Quidway-GigabitEthernet3/0/0] port link-type trunk
[Quidway-GigabitEthernet3/0/0] port trunk allow-pass vlan 101 to 200
[Quidway-GigabitEthernet3/0/0] quit
# Enable HVRP.
[Quidway] hvrp enable
[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] hvrp enable
[Quidway-GigabitEthernet1/0/0] quit
[Quidway] interface gigabitethernet 2/0/0
[Quidway-GigabitEthernet2/0/0] hvrp enable
[Quidway-GigabitEthernet2/0/0] quit
Configure the other Switches on the STP ring in the same manner.
Step 2 Verify the configuration.
Run the display hvrp verbose command to view detailed information about HVRP.
<Quidway> display hvrp verbose
HVRP is enabled globally.
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 12 HVRP Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
622