
l
IP addresses and subnet masks of interfaces
l
Priorities of backup interfaces
Procedure
1.
Configure static routes.
# On RouterA, configure a static route to the network segment where HostB is located.
<Huawei>
system-view
[Huawei]
sysname RouterA
[RouterA]
ip route-static 192.168.2.0 24 2.2.2.2
[RouterA]
ip route-static 192.168.2.0 24 1.1.1.2
[RouterA]
ip route-static 192.168.2.0 24 3.3.3.2
# On RouterB, configure a static route to the network segment where HostA is located.
<Huawei>
system-view
[Huawei]
sysname RouterB
[RouterB]
ip route-static 192.168.1.0 24 2.2.2.1
[RouterB]
ip route-static 192.168.1.0 24 1.1.1.1
[RouterB]
ip route-static 192.168.1.0 24 3.3.3.1
2.
Configure backup interfaces on RouterA.
# Configure GE2/0/0 as the primary interface and GE1/0/0 and GigabitEthernet3/0/0 as
backup interfaces, and set the priority of GE1/0/0 and GigabitEthernet3/0/0 to 30 and 20.
<RouterA>
system-view
[RouterA]
interface gigabitethernet 2/0/0
[RouterA-GigabitEthernet2/0/0]
standby interface gigabitethernet 1/0/0 30
[RouterA-GigabitEthernet2/0/0]
standby interface gigabitethernet 3/0/0 20
[RouterA-GigabitEthernet2/0/0]
quit
3.
Set the switchover delay on RouterA.
# Set the switchover delay to 10s.
<RouterA>
system-view
[RouterA]
interface gigabitethernet 2/0/0
[RouterA-GigabitEthernet2/0/0]
standby timer delay 10 10
[RouterA-GigabitEthernet2/0/0]
quit
4.
Verify the configuration.
# View the status information about primary and backup interfaces on RouterA. You can
see that GE2/0/0 is in Up state, and GE1/0/0 and GigabitEthernet3/0/0 are in standby state.
<RouterA>
display standby state
Interface Interfacestate Backupstate Backupflag Pri
Loadstate
GigabitEthernet2/0/0 UP MUP MU
GigabitEthernet1/0/0 STANDBY STANDBY BU
30
GigabitEthernet3/0/0 STANDBY STANDBY BU
20
Backup-flag meaning:
M---MAIN B---BACKUP V---MOVED U---USED
D---LOAD P---PULLED
Configuration Files
l
Configuration file of RouterA
#
sysname RouterA
#
interface GigabitEthernet1/0/0
ip address 2.2.2.1 255.255.255.0
#
interface GigabitEthernet2/0/0
ip address 1.1.1.1 255.255.255.0
Huawei AR2200-S Series Enterprise Routers
Configuration Guide - Reliability
1 Interface Backup Configuration
Issue 01 (2012-01-06)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
19