Juniper SRX (JunOS) does backup routing through RPM, similar to Cisco IP SLA
{primary:node0} [edit services]
Root@SRX# show
Rpm {
Probe Probe-2nd-Line {
Test 2nd-ISP {
Target address 11.22.33.44; / / destination address of the probe. The default probe type is icmp-ping.
Probe-count 6; / / how many times have it been detected? 6 times
Probe-interval 10; / / the interval of each probe is 10 seconds.
Test-interval 15; / 6 times a cycle, how many seconds between each cycle, 15 seconds. It means sending ping every 10 seconds, sending 6 times, after 6 times, waiting 15 seconds to send a new round of detection.
History-size 1024; / / probe how many historical data are saved
Thresholds {
Successive-loss 6 / / how many packets have been dropped in a row.
Total-loss 6; / / the total number of packets dropped. The relationship between and.
}
Which interface does destination-interface reth3.0; / / send probe messages from?
Hardware-timestamp
Next-hop 124.193.66.129; / / the next hop address of the probe message, combined with the interface, is to specify which physical line to probe from.
}
}
}
Ip-monitoring {
Policy Probe-2nd-Line-policy {
Match {
Rpm-probe Probe-2nd-Line
}
Then {
Preferred-route {
Route 0.0.0.0/0 {
Next-hop 55.66.77.88; / / modify the next hop of default routing
}
}
}
}
}