HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
The preceding command output shows that after permanent advertisement of static routes is
configured, ping packets are still forwarded along Link A but not Link B when Link A becomes
faulty, and the connectivity of Link A can be detected through a ping operation.
----End
Configuration Files
l
l
Issue 02 (2014-09-30)
Configuration file of Router A
#
sysname RouterA
#
interface Pos1/0/0
link-protocol ppp
shutdown
ip address 40.1.1.1 255.255.255.0
#
interface Pos2/0/0
link-protocol ppp
ip address 20.1.1.1 255.255.255.0
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
bgp 100
peer 40.1.1.2 as-number 200
peer 20.1.1.2 as-number 200
#
ipv4-family unicast
undo synchronization
peer 40.1.1.2 enable
peer 20.1.1.2 enable
#
ip route-static 2.2.2.2 255.255.255.255 Pos1/0/0 40.1.1.2 permanent
#
return
Configuration file of Router B
#
sysname RouterB
#
interface Pos1/0/0
link-protocol ppp
ip address 40.1.1.2 255.255.255.0
#
interface Pos2/0/0
link-protocol ppp
ip address 30.1.1.1 255.255.255.0
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
bgp 200
peer 40.1.1.1 as-number 100
#
ipv4-family unicast
undo synchronization
peer 40.1.1.1 enable
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 30.1.1.0 0.0.0.255
#
return
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
2 IP Static Route Configuration
153