Since recent Junos versions there is a possibility to monitor reachability of a remote host. In case of RPM (Realtime Performance Monitor) decides that remote host is unreachable, it can take an defined action. In our case, we are going to monitor the primary default gateway. If the route become inaccessible, RPM will take an action which will change the default gateway to a backup one.



– System has set static default route via
– In case of default route become unreachable, switch to backup route
– When default route become accessible again, switch it back