H3c 静态路由配置及和BFD联动实现高速切换(运营商技术之一)
2012年3月13日
超级街霸2出招表
10:20
实验环境:2012H3C模拟器终极版
实验要求:正常情况下R1的环回口通过上面链路访问R2的环回口,路由为静态,当R1R2之间的链路出现故障后,能和BFD联动,实现毫秒级切换到下面链路,通过R10访问R2的环回口,保证业务不中断。
技能要求:学会静态路由的配置方法,并掌握通过静态路由备份技术,提供业务的高可靠性,掌握BFD原理和配置方法
脚本文档:(推荐自己写)
R1:
Sys
Int s0/2/1
Ip add 10.1.1.1 24
Int loo0
Ip add 172.16.1.1 32
Int s0/2/0
Ip add 12.1.1.1 24
bfd min-transmit-interval 500
bfd min-receive-interval 500
bfd detect-multiplier 9
Quit
ip route-static  192.168.1.1 32 s0/2/0 12.1.1.2 bfd control-packet
ip route-static  192.168.1.1 32 s0/2/1 10.1.1.10 preference 65
R2:
Sys
Int s0/2/1
Ip add 20.1.1.2 24
Int loo0
Ip add 192.168.1.1 32
Int s0/2/0
Ip add 12.1.1.2 24
bfd min-transmit-interval 500何音个人资料
bfd min-receive-interval 500
bfd detect-multiplier 9
Quit
ip route-static  172.16.1.1 32 s0/2/0 12.1.1.1 bfd control-packet
ip route-static  172.16.1.1 32 s0/2/1 20.1.1.10 preference 65
R10:
Sys
Int s0/2/1
Ip add 10.1.1.10 24
Int s0/2/2
Ip add 20.1.1.10 24
“三重”拉尼娜会让今冬特别冷吗?Quit
ip route-static 172.16.1.1 32 s0/2/1 10.1.1.1
ip route-static 192.168.1.1 32 s0/2/2 20.1.1.2
检查配置结果
[R1]display bfd session
Total Session Num: 1            Init Mode: Active
IPv4 Session Working Under Ctrl Mode:
LD/RD        SourceAddr      DestAddr        State Holdtime Interface
12/12        12.1.1.1        12.1.1.2        Up    4200ms  S0/2/0
在R1上查看静态路由
[R1]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
192.168.1.1/32      Static 60  0            12.1.1.2        S0/2/0
Static Routing table Status : < Inactive>
Summary Count : 1
Destination/Mask    Proto  Pre  Cost        NextHop        Interface
192.168.1.1/32      Static 65  0            10.1.1.10      S0/2/1
在R1上打开BFD功能调试信息开关
<R1> debugging bfd event
<R1> debugging bfd scm
<R1> terminal debugging
当R1和R2之间的链路出现故障时,能快速切换到R10
[R2]int s0/2/0
[R2-Serial0/2/0]shu
<R1>
%Mar 13 09:39:38:494 2012 H3C IFNET/3/LINK_UPDOWN: Serial0/2/0 link status is DOWN.
%Mar 13 09:39:38:494 2012 H3C IFNET/5/LINEPROTO_UPDOWN: Line protocol on the interface Serial0/2/0 is DOWN.
%Mar 13 09:39:38:494 2012 H3C IFNET/5/PROTOCOL_UPDOWN: Protocol PPP IPCP on the interface Serial0/2/0 is DOWN.
*Mar 13 09:39:38:494 2012 H3C BFD/7/EVENT: Receive Delete-sess, [Src:12.1.1.1,Dst:12.1.1.2,0/0,Serial0/2/0,Ctrl]
,
安宰贤郑秀晶 Direct, Instance:0x0, Proto:STATIC
*Mar 13 09:39:38:494 2012 H3C BFD/7/SCM: Sess[12.1.1.1/12.1.1.2,11/11,S0/2/0,Ctrl], Oper: Delete application(STATIC)
*Mar 13 09:39:38:494 2012 H3C BFD/7/SCM: No application in session, delete session[12.1.1.1/12.1.1.2,11/11,S0/2/0,Ctrl]
*Mar 13 09:39:38:494 2012 H3C BFD/7/SCM: Send a DOWN-packet to peer to notify session-down
*Mar 13 09:39:38:494 2012 H3C BFD/7/SCM: Sess[12.1.1.1/12.1.1.2,11/11,S0/2/0,Ctrl], Oper: Delete
*Mar 13 09:39:38:494 2012 H3C BFD/7/SCM: Delete send-packet timer
*Mar 13 09:39:38:494 2012 H3C BFD/7/SCM: Delete detect-timer
*Mar 13 09:39:38:494 2012 H3C BFD/7/SCM: Delete session entry
*Mar 13 09:39:38:494 2012 H3C BFD/7/SCM: Delete session from IP hash table
其实你懂得
*Mar 13 09:39:38:494 2012 H3C BFD/7/SCM: Delete session from bfd interface
*Mar 13 09:39:38:494 2012 H3C BFD/7/EVENT: Notify driver to stop receiving bfd control packet
查看R1上的静态路由表
[R1]display ip routing-table protocol static
Public Routing Table : Static
Summary Count : 1
Static Routing table Status : < Active>
Summary Count : 1国际品牌钱包
Destination/Mask    Proto  Pre  Cost        NextHop        Interface
192.168.1.1/32      Static 65  0            10.1.1.10      S0/2/1
Static Routing table Status : < Inactive>
Summary Count : 0