Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Configuring IP Monitoring with Interface Failover Using Boolean Conditions


Using IP monitoring with interface failover, it is possible to incorporate AND and OR conditions for monitored IP addresses. For the probe to fail, each test that makes up a given probe must fail (AND logic). If any of the probes specified for a given IP-monitoring policy fail then the IP-monitoring action is triggered (OR logic). The following example shows how to use rpm probes and IP-monitoring to implement AND and OR combinations. Suppose you want to bring up a backup interface when both IP addresses and are unreachable and also bring up the backup interface when IP address is unreachable, then this scenario can be expressed as the following Boolean statement– “If ( is unreachable AND is unreachable) OR ( is unreachable) then enable the backup interface”.

The configuration below implements the logic required for the scenario. The following commands show how the Junos features are substituted into in the above statement and map to the configuration. Probe1 and probe2 are defined in the example configuration below. Probe1 consists of two tests which are connected together with the boolean AND condition. If (probe1 fails OR probe2 fails) then enable the backup interface.