思科/華爲/Juniper探測技術

探測目的地址是否存活,多用於多鏈路出口探測使用。可用於關聯路由、策略路由、防火牆雙機切換等。實現高可用性,各個廠商都有相關技術,如下舉例思科、華爲、Juniper配置方法。

思科ide

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 //關聯路由code

華爲: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-linkip

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.1get

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-instanceit

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-instanceio

相關文章
相關標籤/搜索