![Huawei S6700 Series Скачать руководство пользователя страница 40](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517040.webp)
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 6 Routes : 6
Destination/Mask Proto Pre Cost Flags NextHop Interface
1.1.1.0/24 Direct 0 0 D 1.1.1.1 Vlanif10
1.1.1.1/32 Direct 0 0 D 127.0.0.1 Vlanif10
1.1.1.255/32 Direct 0 0 D 1.1.1.2 Vlanif10
2.2.2.0/24 Static 60 0 RD 1.1.1.2 Vlanif10
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
# 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
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost Flags NextHop Interface
1.1.1.0/24 Direct 0 0 D 1.1.1.1 Vlanif10
1.1.1.1/32 Direct 0 0 D 127.0.0.1 Vlanif10
1.1.1.255/32 Direct 0 0 D 1.1.1.2 Vlanif10
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
# 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
Destinations : 6 Routes : 6
Destination/Mask Proto Pre Cost Flags NextHop Interface
1.1.1.0/24 Direct 0 0 D 1.1.1.1 Vlanif10
1.1.1.1/32 Direct 0 0 D 127.0.0.1 Vlanif10
1.1.1.255/32 Direct 0 0 D 1.1.1.2 Vlanif10
2.2.2.0/24 Static 60 0 RD 1.1.1.2 Vlanif10
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
----End
Configuration Files
l
Configuration file of Switch A
#
sysname SwitchA
#
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
1 IP Static Route Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
21