在Cisco设备上用ICMP来检查链路状态

全文引用思科在线俱乐部的一篇文章,或许这篇文章能为我们节省30多万。

在不使用动态路由协议的情况下,在IOS123-8以上版本中实现使用ISDN备份FR! [原创]
frank_sun (普通用户) 发贴数: 10
2005-09-27 09:42
1.前提:在不使用动态路由协议的情况下
2.问题背景:在FR网络中一端DTE设备显示LINE PROTOCOL DOWN;而另一端仍显示LINE PROTOCOL UP,无法动态的进行主备路由的切换.
3.解决办法:使用CISCO IOS 种新的功能:通过PING方式监控对端某一地址的联通性,动态的启用或删除某一静态路由.实现主备路由的切换.
实际示例(仅供参考)
核心端主要配置:
core#
username SHNH password 0 cisco
track 284 rtr 284 reachability
interface LoopBack0
ip address 10.10.1.1 255.255.255.255
interface Serial1/1.3 point-to-point
description desc connect to nh
bandwidth 128
ip address 9.8.61.85 255.255.255.252
frame-relay interface-dlci 110
interface BRI4/1
description backup for nh
bandwidth 128
ip address 9.8.60.85 255.255.255.252
encapsulation ppp
dialer map ip 9.8.60.86 name SHNH broadcast
dialer load-threshold 80 either
dialer-group 1
isdn switch-type basic-net3
no cdp enable
ppp authentication chap
ppp multilink
ip route 9.10.128.0 255.255.224.0 9.8.61.86 60 track 284
ip route 9.10.128.0 255.255.224.0 9.8.60.86 100
rtr 284
type echo protocol ipIcmpEcho 9.8.61.86 source-ipaddr 9.8.61.85
timeout 600
frequency 240
rtr schedule 284 life forever start-time now
***********************************************************************************
分支端主要配置:
username core password 0 cisco
track 100 rtr 100 reachability
interface LoopBack0
ip address 9.10.128.1 255.255.255.255
interface Serial1/1.1 point-to-point
description desc connect to core
bandwidth 128
ip address 9.8.61.86 255.255.255.252
frame-relay interface-dlci 120
interface BRI4/1
description backup for core
bandwidth 128
ip address 9.8.60.86 255.255.255.252
encapsulation ppp
dialer map ip 9.8.60.85 name core 9999
dialer load-threshold 80 either
dialer-group 1
isdn switch-type basic-net3
no cdp enable
ppp authentication chap
ppp multilink
ip route 0.0.0.0 0.0.0.0 9.8.61.85 60 track 100
ip route 0.0.0.0 0.0.0.0 9.8.60.85 100
rtr 100
type echo protocol ipIcmpEcho 9.8.61.86 source-ipaddr 9.8.61.85
timeout 600
frequency 240
rtr schedule 100 life forever start-time now
ip route-static 0.0.0.0 0.0.0.0 9.8.61.85 preference 40 detect-group 1
ip route-static 0.0.0.0 0.0.0.0 9.8.60.85 preference 100
:

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据