Local Remote PeerIpAddr State Type InterfaceName
----------------------------------------------------------------------------------
---------
1 - 2.2.2.2 Up S_IP_IF GigabitEthernet1/0/0
----------------------------------------------------------------------------------
---------
Total UP/DOWN Session Number : 1/0
Step 4
Verify the configuration.
# Run the
shutdown
command on GE 1/0/0 of Router B to simulate a fault on the primary link.
NOTE
Fault simulation is for configuration verification. In actual application, it is not required.
[RouterB]
interface gigabitEthernet1/0/0
[RouterB-GigabitEthernet1/0/0]
shutdown
# Check the routing table of Router A.
[RouterA]
display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 6 Routes : 6
Destination/Mask Proto Pre Cost Flags NextHop Interface
3.3.3.0/24 Direct 0 0 D 3.3.3.1
GigabitEthernet2/0/0
3.3.3.1/32 Direct 0 0 D 127.0.0.1
GigabitEthernet2/0/0
4.0.0.0/8 RIP 100 1 D 3.3.3.2
GigabitEthernet2/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
172.16.0.0/16
RIP 100 2 D
3.3.3.2
GigabitEthernet2/0/0
The routing table shows that the secondary link Router A
→
Router C
→
Router B starts to be
used after the primary link fails. The next-hop IP address of the route destined for 172.16.0.0/16
is 3.3.3.2 and the outbound interface is GE 2/0/0.
----End
Configuration files
l
Configuration file of Router A
#
sysname RouterA
#
bfd
#
interface gigabitethernet1/0/0
undo shutdown
ip address 2.2.2.1 255.255.255.0
rip bfd static
#
interface gigabitethernet2/0/0
undo shutdown
ip address 3.3.3.1 255.255.255.0
#
rip 1
version 2
network 2.0.0.0
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
3 RIP Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
217