
<Huawei>
system-view
[Huawei]
sysname RouterA
[RouterA]
interface gigabitethernet 2/0/0
[RouterA-GigabitEthernet2/0/0]
ip address 10.1.1.1 24
[RouterA-GigabitEthernet2/0/0]
vrrp vrid 1 virtual-ip 10.1.1.111
[RouterA-GigabitEthernet2/0/0]
vrrp vrid 1 priority 120
[RouterA-GigabitEthernet2/0/0]
vrrp vrid 1 preempt-mode timer delay 20
[RouterA-GigabitEthernet2/0/0]
quit
[RouterA]
quit
# On Router B, configure the IP address of the interface, create backup group 1 and configure
the priority of Router B in this group with the default value 100 (as the backup router).
<Huawei>
system-view
[Huawei]
sysname RouterB
[RouterB]
interface gigabitethernet 2/0/0
[RouterB-GigabitEthernet2/0/0]
ip address 10.1.1.2 24
[RouterB-GigabitEthernet2/0/0]
vrrp vrid 1 virtual-ip 10.1.1.111
[RouterB-GigabitEthernet2/0/0]
quit
[RouterB]
quit
Step 2
Configure network interconnection between devices.
# Configure the default gateway of Host A with 10.1.1.111 and the default gateway of Host B
with 20.1.1.1. The details are not mentioned here.
# Configure Router A, Router B and Router C to use OSPF for interconnection. For the details
about the configuration, see the configuration file.
Step 3
Verify the configuration.
l
Check that the VRRP backup group can serve as a gateway.
After the previous configuration, Host A can ping through Host B.
Running the
display vrrp
command on Router A, you can view that the status of Router A
is Master.
<RouterA>
display vrrp
GigabitEthernet2/0/0 | Virtual Router 1
State v : Master
Virtual IP : 10.1.1.111
Master IP : 10.1.1.1
PriorityRun : 120
PriorityConfig : 120
MasterPriority : 120
Preempt : YES Delay Time : 20
TimerRun : 1 s
TimerConfig : 1 s
Auth Type : NONE
Virtual Mac : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
Create time : 2010-06-22 17:33:00
Last change time : 2010-06-22 17:33:06
Running the
display vrrp
command on Router B, you can view that the status of Router B
is Backup.
<RouterB>
display vrrp
GigabitEthernet2/0/0 | Virtual Router 1
State : Backup
Virtual IP : 10.1.1.111
Master IP : 10.1.1.2
PriorityRun : 100
PriorityConfig : 100
MasterPriority : 120
Preempt : YES Delay Time : 0
TimerRun : 1 s
TimerConfig : 1 s
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.
94