S6700 Series Ethernet Switches
Configuration Guide - IP Routing
------------------------------------------------------------------------------
Routing Tables: Public
Destination/Mask
# Run the shutdown command on VLANIF 10 of Switch B to simulate a link fault.
[SwitchB] interface vlanif 10
[SwitchB-Vlanif10] shutdown
# Check the routing table on Switch A, and you can find that default route 2.2.2.0/24 does not
exist. The reason is that the default static route is bound to a BFD session, and BFD immediately
notifies that the bound static route is unavailable when a fault is detected.
<SwitchA> display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destination/Mask
# Run the undo shutdown command on VLANIF 10 of Switch B to simulate link recovery.
[SwitchB-Vlanif10]undo shutdown
# Check the routing table on Switch A, and you can find default route 2.2.2.0/24 in the routing
table. After BFD detects link recovery, it immediately notifies that the bound static route is
reachable.
<SwitchA> display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destination/Mask
----End
Configuration Files
l
Issue 01 (2012-03-15)
Destinations : 6
Proto
1.1.1.0/24
Direct
1.1.1.1/32
Direct
1.1.1.255/32
Direct
2.2.2.0/24
Static
127.0.0.0/8
Direct
127.0.0.1/32
Direct
Destinations : 5
Proto
1.1.1.0/24
Direct
1.1.1.1/32
Direct
1.1.1.255/32
Direct
127.0.0.0/8
Direct
127.0.0.1/32
Direct
Destinations : 6
Proto
1.1.1.0/24
Direct
1.1.1.1/32
Direct
1.1.1.255/32
Direct
2.2.2.0/24
Static
127.0.0.0/8
Direct
127.0.0.1/32
Direct
Configuration file of Switch A
#
sysname SwitchA
#
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Routes : 6
Pre
Cost
Flags NextHop
0
0
D
1.1.1.1
0
0
D
127.0.0.1
0
0
D
1.1.1.2
60
0
RD
1.1.1.2
0
0
D
127.0.0.1
0
0
D
127.0.0.1
Routes : 5
Pre
Cost
Flags NextHop
0
0
D
1.1.1.1
0
0
D
127.0.0.1
0
0
D
1.1.1.2
0
0
D
127.0.0.1
0
0
D
127.0.0.1
Routes : 6
Pre
Cost
Flags NextHop
0
0
D
1.1.1.1
0
0
D
127.0.0.1
0
0
D
1.1.1.2
60
0
RD
1.1.1.2
0
0
D
127.0.0.1
0
0
D
127.0.0.1
1 IP Static Route Configuration
Interface
Vlanif10
Vlanif10
Vlanif10
Vlanif10
InLoopBack0
InLoopBack0
Interface
Vlanif10
Vlanif10
Vlanif10
InLoopBack0
InLoopBack0
Interface
Vlanif10
Vlanif10
Vlanif10
Vlanif10
InLoopBack0
InLoopBack0
21