思科/华为/Juniper探测技术

  探测目的地址是否存活,多用于多链路出口探测使用。可用于关联路由、策略路由、防火墙双机切换等。实现高可用性,各个厂商都有相关技术,以下举例思科、华为、Juniper配置方法。

思科

ip sla 2 //SLA 编号
icmp-echo 192.169.9.66 source 192.168.1.2 //探测目的地址并指定源地址
timeout 10000 //超时时间10000毫秒
frequency 20 //探测频率20秒一次
ip sla schedule 2 life forever start-time now //sla探测策略为永久,开始时间为现在
track 2 ip sla 2 reachability //track与sla 关联
ip route 192.192.9.0 255.255.255.0 192.168.1.1 track 2 //关联路由

华为:ip-link
ip-link check enable // 全局使能ip-link 功能
ip-link 1 destination x.x.x.z timer 5 mode icmp //ip-link 编号、超时时间、模式(除ICMP外还有arp模式)
ip route-static 0.0.0.0 0.0.0.0 x.x.x.z preference 50 ip-link 1 //关联IP-link

Juniper: ip monitor

RPM Configuration
set services rpm probe Probe-Server test testsvr target address 1.1.1.1 >> RPM Probes test for the target in first ISP.
set services rpm probe Probe-Server test testsvr probe-count 10
set services rpm probe Probe-Server test testsvr probe-interval 5
set services rpm probe Probe-Server test testsvr test-interval 10
set services rpm probe Probe-Server test testsvr thresholds successive-loss 10
set services rpm probe Probe-Server test testsvr thresholds total-loss 5
set services rpm probe Probe-Server test testsvr destination-interface ge-0/0/0.0
set services rpm probe Probe-Server test testsvr next-hop 1.1.1.1

set services rpm probe Probe-Server1 test testsvr target address 2.2.2.2 >> RPM Probes test for the target in second ISP.
set services rpm probe Probe-Server1 test testsvr probe-count 10
set services rpm probe Probe-Server1 test testsvr probe-interval 5
set services rpm probe Probe-Server1 test testsvr test-interval 10
set services rpm probe Probe-Server1 test testsvr thresholds successive-loss 10
set services rpm probe Probe-Server1 test testsvr thresholds total-loss 5
set services rpm probe Probe-Server1 test testsvr destination-interface ge-0/0/1.0
set services rpm probe Probe-Server1 test testsvr next-hop 2.2.2.2
IP-Monitoring Configuration
set services ip-monitoring policy Server-Tracking match rpm-probe Probe-Server
set services ip-monitoring policy Server-Tracking then preferred-route routing-instances FBF-1 route 0.0.0.0/0 next-hop 2.2.2.2 >> Installs route in the first routing-instance

set services ip-monitoring policy Server-Tracking1 match rpm-probe Probe-Server1
set services ip-monitoring policy Server-Tracking1 then preferred-route routing-instances FBF-2 route 0.0.0.0/0 next-hop 1.1.1.1 >> Installs route in the second routing-instance

转载于:https://blog.51cto.com/3796535/2070372

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值