SR66/SR66X系列路由器与NE40/NE80系列路由器对接时
静态路由与BFD联动的典型配置
关键字:SR66;SR66X;NE;静态路由;BFD
一、组网需求:
客户网络中一台NE40路由器和一台SR6602路由器对接,中间经过二层设备(使用普通二层SW模拟)。NE40上配置静态路由使得其可以访问地址100.0.0.1/32,SR6602上配置静态路由使得其可以访问地址200.0.0.1/32。
目前客户欲实现以下功能:在NE40以及SR6602上配置静态路由与BFD联动,使得SW与SR6602之间的链路断开时,NE40因为无法监测到10.0.0.2可达而使去往地址100.0.0.1/32的静态路由失效。同样,SW与NE40之间的链路断开时,SR6602因为无法监测到10.0.0.1可达而使去往地址200.0.0.1/32的静态路由失效。
设备及版本:SR6602路由器1台(版本为R2604P10)、NE40路由器1台(版本为NE40&80 V300R005C01B323SPC001)、普通二层SW 1台。
二、组网图:
三、配置步骤:
NE40 配置
#
bfd //全局使能BFD功能
#
interface Ethernet2/0/15
undo shutdown //接口默认为DOWN,需要undo shutdown
ip address 10.0.0.1 255.255.255.0
#
interface LoopBack0
ip address 200.0.0.1 255.255.255.255
#
bfd h3c bind peer-ip 10.0.0.2 interface Ethernet2/0/15 source-ip 10.0.0.1 auto
detect-multiplier 5
min-tx-interval 100
min-rx-interval 100
commit
#
ip route-static 100.0.0.1 255.255.255.255 10.0.0.2 track bfd-session h3c
#
SR6602 配置
#
interface LoopBack0
ip address 100.0.0.1 255.255.255.255
#
interface GigabitEthernet0/0
ip address 10.0.0.2 255.255.255.0
bfd min-transmit-interval 100
bfd min-receive-interval 100
bfd detect-multiplier 5
#
ip route-static 200.0.0.1 255.255.255.255 GigabitEthernet0/0 10.0.0.1 bfd control-packet
#
四、功能测试:
1、配置完成后,查看SR6602上的BFD 会话:
<SR66>dis bfd session
Total Session Num: 1 Init Mode: Active
IPv4 Session Working Under Ctrl Mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
1025/8192 10.0.0.2 10.0.0.1 Up 500ms GE0/0
2、配置完成后,查看NE40上的BFD会话:
<NE40>dis bfd session all
Static Session Number : 1, Dynamic Session Number: 0
Coexistence Session Number : 0
--------------------------------------------------------------------------------
Local Remote Peer IP Address Interface Name State Type
--------------------------------------------------------------------------------
8192 1025 10.0.0.2 Ethernet2/0/15 Up S_Auto
--------------------------------------------------------------------------------
3、查看SR6602上的静态路由:
<SR66>dis 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
200.0.0.1/32 Static 60 0 10.0.0.1 GE0/0
4、断开SW和NE40之间的链路后,发现BFD会话状态变为DOWN:
%Jul7 23:02:33:281 2013 SR66 BFD/5/BFD_CHANGE_FSM: Sess[10.0.0.2/10.0.0.1,1026/8192,GE0/0,Ctrl], Sta: UP->DOWN, Diag: 1
5、此时迅速查看SR6602上的静态路由:
<SR66>dis ip routing-table protocol static
Public Routing Table : Static
Summary Count : 1
Static Routing table Status : <Inactive> //此条静态路由失效
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
200.0.0.1/32 Static 60 0 10.0.0.1 GE0/0
五、配置关键点:
无
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作