您的位置:首页 > 其它

H3C静态路由与BFD联动(单跳检测)配置案例

2012-06-07 17:25 483 查看

1. 组网需求

l 在Switch A上配置静态路由可以到达Switch C,并使能BFD检测功能。
l 当Switch A和Switch B之间的链路出现故障时,Switch A选择经过Switch D到达Switch C。

2. 组网图

图1-7 静态路由BFD(单跳检测)配置组网图



3. 配置步骤

(1) 配置各接口的IP地址(略)
(2) 配置BFD
# 在Switch A上配置静态路由,并使能BFD检测功能,通过BFD echo报文方式实现BFD功能。
<SwitchA> system-view
[SwitchA] bfd echo-source-ip 10.1.1.102
[SwitchA] ip route-static 120.1.1.1 24 vlan-interface 10 10.1.1.100 bfd echo-packet
[SwitchA] ip route-static 120.1.1.1 24 vlan-interface 11 11.1.1.2 preference 65
[SwitchA] quit
(3) 检查配置结果
# 显示Switch A使能BFD信息。
<SwitchA> display bfd session

Total Session Num: 1 Init Mode: Active

Session Working Under Echo Mode:

LD SourceAddr DestAddr State Holdtime Interface
7 10.1.1.102 10.1.1.100 Up 1700ms Vlan10
# 显示Switch A路由表详细信息。
<SwitchA> display ip routing-table protocol static
Public Routing Table : Static
Summary Count : 2

Static Routing table Status : <Active>
Summary Count : 1

Destination/Mask Proto Pre Cost NextHop Interface

120.1.1.1/24 Static 65 0 10.1.1.100 Vlan10

Direct Routing table Status : <Inactive>
Summary Count : 1

Destination/Mask Proto Pre Cost NextHop Interface

120.1.1.1/24 Static 60 0 11.1.1.2 Vlan11
# 在Switch A上打开BFD功能调试信息开关。
<SwitchA> debugging bfd event
<SwitchA> debugging bfd scm
<SwitchA> terminal debugging
# 当Switch B和二层交换机之间的链路发生故障时。可以看到Switch A能够快速感知Switch B的变化。
%Nov 12 19:28:28:592 2005 SwitchA BFD/5/LOG:Sess[123.1.1.1/10.1.1.100, Vlan10], Sta: UP->DOWN, Diag: 1
*0.53892593 SwitchA BFD/8/SCM:Sess[123.1.1.1/10.1.1.100, Vlan10], Oper: Reset
*0.53892593 SwitchA BFD/8/EVENT:Send sess-down Msg, [Src:123.1.1.1, Dst:10.1.1.100, Vlan10] Protocol: STATIC
*0.53892595 SwitchA RM/7/LOG:static route [Dest:120.1.1.1/24,Nexthop:10.1.1.100,ExitIf: Vlan10] became invalid
# 当Switch A到Switch B链路发生故障时,通过display ip routing-table protocol static命令查看路表信息。Switch A选择经过Switch D静态路由到达Switch C。
<SwitchA> display ip routing-table protocol static
Public Routing Table : Static
Summary Count : 2

Static Routing table Status : < Active>
Summary Count : 1

Destination/Mask Proto Pre Cost NextHop Interface

120.1.1.1/24 Static 65 0 11.1.1.2 Vlan11

Static Routing table Status : < Inactive>
Summary Count : 1

Destination/Mask Proto Pre Cost NextHop Interface

120.1.1.1/24 Static 60 0 10.1.1.100 Vlan10
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: