
[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 and set priorities of 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 maximum bandwidth of the primary interface on RouterA.
# Set the maximum bandwidth of the primary interface to 10000 kbit/s.
<RouterA>
system-view
[RouterA]
interface gigabitethernet 2/0/0
[RouterA-GigabitEthernet2/0/0]
standby bandwidth 10000
[RouterA-GigabitEthernet2/0/0]
quit
4.
Set higher and lower thresholds on RouterA.
# Set the higher threshold to 80% and lower threshold to 20%.
<RouterA>
system-view
[RouterA]
interface gigabitethernet 2/0/0
[RouterA-GigabitEthernet2/0/0]
standby threshold 80 20
[RouterA-GigabitEthernet2/0/0]
quit
5.
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 MUD
TO-HYPNOTIZE
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
standby interface GigabitEthernet 1/0/0 30
standby interface GigabitEthernet 3/0/0 20
standby bandwidth 10000
standby threshold 80 20
#
interface GigabitEthernet3/0/0
ip address 3.3.3.1 255.255.255.0
#
ip route-static 192.168.2.0 24 2.2.2.2
ip route-static 192.168.2.0 24 1.1.1.2
ip route-static 192.168.2.0 24 3.3.3.2
#
return
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.
22