
200.1.1.111/32 OSPF 10 2 D 192.168.2.1 GigabitEthernet1/0/0
Step 3
Configure the Layer 2 forwarding function.
# Configure SwitchB.
<Huawei>
system-view
[Huawei]
sysname SwitchB
[SwitchB]
vlan 10
[SwitchB-vlan10]
port gigabitethernet 1/0/0
[SwitchB-vlan10]
quit
[SwitchB]
interface gigabitethernet 1/0/1
[SwitchB-GigabitEthernet1/0/1]
port trunk allow-pass vlan 10
[SwitchB-GigabitEthernet1/0/1]
quit
# Configure SwitchC.
<Huawei>
system-view
[Huawei]
sysname SwitchC
[SwitchC]
vlan 20
[SwitchC-vlan20]
port gigabitethernet 1/0/0
[SwitchC-vlan20]
quit
[SwitchC]
interface gigabitethernet 1/0/1
[SwitchC-GigabitEthernet1/0/1]
port trunk allow-pass vlan 20
[SwitchC-GigabitEthernet1/0/1]
quit
Step 4
Configure the QinQ function on SwitchA to ensure that packets sent from SwitchA to RouterA
and RouterB carry two tags.
Step 5
Verify the configuration.
# The VRRP backup group can function as the gateway.
Run the
display vrrp
command on RouterA and RouterB to verify that RouterA functions as
the master and RouterB functions as the backup.
[RouterA]
display vrrp
GigabitEthernet2/0/0.1 | Virtual Router 1
State :
Master
Virtual IP : 100.1.1.111
Master IP : 100.1.1.1
PriorityRun : 120
PriorityConfig : 120
MasterPriority : 120
Preempt : YES Delay time : 20
TimerRun : 1
TimerConfig : 1
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
GigabitEthernet2/0/0.2 | Virtual Router 2
State :
Master
Virtual IP : 200.1.1.111
Master IP : 200.1.1.1
PriorityRun : 120
PriorityConfig : 120
MasterPriority : 120
Preempt : YES Delay time : 20
TimerRun : 1
TimerConfig : 1
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
[RouterB]
display vrrp
GigabitEthernet2/0/0.1 | Virtual Router 1
State :
Backup
Huawei AR2200-S Series Enterprise Routers
Configuration Guide - Reliability
2 VRRP Configuration
Issue 01 (2012-01-06)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
130