Interactive Investigation Map

Article type: Tutorial

Scenario: A branch uses primary and backup ISP routes and needs failure detection beyond simple interface link state.

Click to reveal the investigation path
  1. Step 1: Understand the topology
  2. Step 2: Configure the relevant Palo Alto objects
  3. Step 3: Verify policy/routing/NAT behavior
  4. Step 4: Test the expected traffic flow
  5. Step 5: Review logs and counters
  6. Step 6: Record production considerations

Visual generated specifically for this article.

Standard static routes in PAN-OS rely on physical interface link state to determine route availability. If an upstream Internet Service Provider (ISP) network drops traffic two hops away, the firewall local interface remains physically connected and operational. Consequently, traffic continues flowing toward a dead connection. Palo Alto path monitoring solves this problem by continuously sending ICMP echo requests to target destinations across the primary path. If the target fails to respond within configured parameters, PAN-OS marks the route unreachable and removes it from the Forwarding Information Base (FIB), seamlessly redirecting traffic to a secondary path.

In this technical guide, you will learn how to design, configure, verify, and troubleshoot Palo Alto static route path monitoring for dual-ISP high availability scenarios.

Real-Life Scenario

A regional branch office relies on critical cloud services and real-time database access. The branch uses two WAN connections:

  • Primary ISP (ISP-1): High-speed direct fiber circuit (100 Mbps) connected to ethernet1/1.
  • Backup ISP (ISP-2): Secondary commercial broadband connection (50 Mbps) connected to ethernet1/2.

The primary ISP hands off an Ethernet interface from an optical media converter. During past outages, the fiber upstream was severed, but the media converter kept the local Ethernet port active (Link UP). The firewall retained its default route through ISP-1, dropping all outbound user traffic for hours.

To eliminate this single point of failure, the organization requires automatic link failure detection beyond local link state. When ISP-1 loses internet reachability, traffic must fail over automatically to ISP-2. Once ISP-1 stabilizes, traffic must fail back gracefully.

Lab Topology

The layout below illustrates the network design. Note that all public IPv4 addresses use official IANA documentation blocks.

                        +----------------------+
                        |  Internal Network    |
                        |    10.10.10.0/24     |
                        +----------+-----------+
                                   |
                                   | eth1/3 (Trust Zone)
                        +----------+-----------+
                        | Palo Alto Firewall   |
                        | Virtual Router: VR-1 |
                        +----+-------------+---+
                             |             |
           eth1/1 (Primary)  |             | eth1/2 (Backup)
            192.0.2.2/24     |             | 203.0.113.2/24
                             v             v
                +------------+---+     +---+------------+
                | Primary ISP    |     | Backup ISP     |
                | Next-Hop:      |     | Next-Hop:      |
                | 192.0.2.1      |     | 203.0.113.1    |
                +--------+-------+     +--------+-------+
                         |                      |
                         v                      v
                +--------+----------------------+-------+
                |             The Internet              |
                |                                       |
                |    Path Monitor Ping Target:          |
                |          198.51.100.1                 |
                +---------------------------------------+

Example Addressing and Objects

The following table lists the IP configuration, interface mapping, and routing metrics used across this environment. Adapt these LAB/EXAMPLE values to fit your enterprise deployment.

Parameter Primary WAN (ISP-1) Backup WAN (ISP-2)
Firewall Interface ethernet1/1 ethernet1/2
Security Zone Untrust-ISP1 Untrust-ISP2
IP Address 192.0.2.2/24 203.0.113.2/24
Default Gateway 192.0.2.1 203.0.113.1
Route Metric 10 (Preferred) 20 (Preempted)
Path Monitor Destination 198.51.100.1 N/A (or optional secondary target)
Static Host Route 198.51.100.1/32 via ethernet1/1 N/A

Prerequisites

Before configuring static route path monitoring, ensure your firewall environment meets the following conditions:

  • Active interfaces mapped to proper Security Zones with appropriate IP address assignments.
  • Outbound NAT rules configured for both WAN interfaces to ensure source IP translation works across both paths.
  • Security policies permitting outbound traffic (specifically ICMP) from internal zones and local firewall interfaces to the internet.
  • A stable, highly available remote IP target (such as a public recursive DNS resolver) that consistently responds to ICMP requests.

Step-by-Step GUI Configuration

Follow these steps to configure primary and backup static routes using path monitoring in PAN-OS.

Step 1: Create the Host Route for the Monitor Target

Path monitoring pings must always exit the primary interface to accurately detect link state. Without a dedicated host route, once the primary static route fails, path monitoring pings could loop or route out the secondary interface.

  1. Navigate to Network > Virtual Routers and click your virtual router (for example, default or VR-1).
  2. Select Static Routes from the left navigation tree, then click Add.
  3. In the General tab, enter:
    • Name: Host-PathMonitor-Target
    • Destination: 198.51.100.1/32
    • Interface: ethernet1/1
    • Next Hop: Select IP Address and enter 192.0.2.1
    • Metric: 10
  4. Click OK.

Step 2: Configure the Primary Default Static Route with Path Monitoring

Now configure the main default route pointing to ISP-1 and attach Palo Alto path monitoring to it.

  1. Under Network > Virtual Routers > [VR-Name] > Static Routes, click Add.
  2. In the General tab, enter:
    • Name: Default-ISP1-Primary
    • Destination: 0.0.0.0/0
    • Interface: ethernet1/1
    • Next Hop: Select IP Address and enter 192.0.2.1
    • Metric: 10
  3. Select the Path Monitoring tab.
  4. Check the Enable checkbox.
  5. Set Failure Condition to Any (if using one target, this triggers failure when that target drops).
  6. Under Destination IP Addresses, click Add.
    • Name: Target-ISP1-DNS
    • Enable: Checked
    • Target IP: 198.51.100.1
    • Interval (sec): 3 (Range: 1–60, default is 3)
    • Ping Count: 5 (Range: 1–10, default is 5)
  7. Click OK to close the Target window, and OK to close the Route window.

Configuration Note: With an interval of 3 seconds and a ping count of 5, PAN-OS invalidates the static route after 15 consecutive seconds of packet loss.

Step 3: Configure the Secondary (Backup) Default Static Route

Configure the backup default route pointing to ISP-2 with a higher metric so it remains dormant in the routing table until the primary route drops.

  1. Click Add under Static Routes.
  2. In the General tab, enter:
    • Name: Default-ISP2-Backup
    • Destination: 0.0.0.0/0
    • Interface: ethernet1/2
    • Next Hop: Select IP Address and enter 203.0.113.1
    • Metric: 20
  3. Leave the Path Monitoring tab disabled for this backup route unless you have a third failover destination.
  4. Click OK.
  5. Click Commit at the top right of the administrative interface to apply changes.

CLI Commands for Verification and Status

The PAN-OS CLI provides deep visibility into route table mechanics, path monitoring engine states, and dynamic forwarding lookup. Execute these operational mode commands from SSH.

CAUTION: While operational commands are read-only and safe, always execute verification commands carefully during baseline traffic periods to establish standard behavior metrics.

1. View Routing Table and Path Monitoring States

Check the global Routing Information Base (RIB) state to verify active and inactive static routes:

admin@PA-FW> show routing route

To inspect path monitoring operational metrics, ICMP success rates, and total loss counters, run:

admin@PA-FW> show routing path-monitor

Example Output:

VIRTUAL ROUTER: VR-1 (id 1)
==========
Static Route Path Monitor Status:
-------------------------------------------------------------------------------
Route-Name            Destination          Metric Target Address  Status
-------------------------------------------------------------------------------
Default-ISP1-Primary  0.0.0.0/0            10     198.51.100.1    UP    

2. View Active Forwarding Information Base (FIB)

The FIB displays the actual hardware/dataplane forwarding entry currently handling non-local traffic:

admin@PA-FW> show routing fib

3. Test Specific Destination Forwarding Lookups

Verify which interface will route traffic toward an arbitrary internet address (for example, 8.8.8.8):

admin@PA-FW> test routing fib-lookup ip 8.8.8.8 virtual-router VR-1

How the Traffic Flows

Understanding packet processing mechanics during steady-state operation and failover events ensures accurate policy and NAT design.

Normal Steady-State Operation

  1. The firewall management plane (or routed process) periodically generates ICMP request packets destined for 198.51.100.1.
  2. The lookup hits the host static route 198.51.100.1/32, egressing via ethernet1/1.
  3. Target responses arrive on ethernet1/1. The path monitoring status stays UP.
  4. User internet traffic matches Default-ISP1-Primary due to its metric of 10 (versus metric 20 on ISP-2).
  5. Egress traffic passes through ethernet1/1 and gets translated via the outbound NAT rule tied to ethernet1/1.

Failover Event Processing

  1. An upstream fiber cut occurs beyond the ISP-1 handoff router. The local link state on ethernet1/1 remains physical UP.
  2. The path monitoring engine drops 5 consecutive ICMP probes (15 seconds total elapsed time).
  3. Path monitoring status transitions from UP to DOWN.
  4. PAN-OS revokes the static route Default-ISP1-Primary from the FIB.
  5. The Virtual Router re-evaluates available routes for 0.0.0.0/0. Route Default-ISP2-Backup (Metric 20) becomes the active default route in the FIB.
  6. New outbound sessions match ethernet1/2, hit security policies allowing traffic out zone Untrust-ISP2, and receive source address NAT translation matching ethernet1/2.

Verification Procedure

Follow this procedure to test and confirm path monitoring failover functionality in your lab or staging environment.

1. Baseline Verification

Verify that traffic egresses via ISP-1 under normal conditions:

admin@PA-FW> test routing fib-lookup ip 1.1.1.1 virtual-router VR-1

Confirm the output specifies interface ethernet1/1 and next hop 192.0.2.1.

2. Simulating ISP Failure

Block ICMP reachability to destination target 198.51.100.1 at the ISP router, or apply a temporary security rule dropping traffic to 198.51.100.1 out ethernet1/1.

Monitor the path monitor status output in real time:

admin@PA-FW> show routing path-monitor

Within 15 seconds, the status for Default-ISP1-Primary will transition to DOWN.

3. Post-Failover FIB Lookup Verification

Run the FIB lookup command again to verify that traffic redirected to ISP-2:

admin@PA-FW> test routing fib-lookup ip 1.1.1.1 virtual-router VR-1

The result should now indicate interface ethernet1/2 and next-hop 203.0.113.1.

4. Recovery and Failback

Remove the block on the test destination. Run show routing path-monitor. Once 5 consecutive pings succeed, the status switches back to UP, and PAN-OS reinstates Default-ISP1-Primary as the active route in the FIB.

Troubleshooting Static Route Path Monitoring

When path monitoring does not perform as expected, use this structured troubleshooting table to isolate the problem.

Symptom Likely Root Cause Correction / Action
Path monitor stays DOWN permanently even though ISP-1 is healthy. The target IP blocks ICMP probes or a firewall security rule drops self-originated ICMP traffic. Ensure target IP answers public ICMP. Add security rules permitting ICMP out ethernet1/1 from local interface IP.
Path monitor continuously flaps between UP and DOWN state. Interval/Ping count values are too aggressive for high-latency or jittery WAN links. Increase Ping Interval (e.g., 5s) and Ping Count (e.g., 5 to 10) to accommodate high latency variations.
Traffic fails over, but active TCP sessions hang or freeze. Session Rematch is disabled, or NAT translation relies on active sessions that remain pinned to old interface. Enable Rematch Sessions Upon Route Change under Device > Setup > Session settings.
Path monitor never drops, even during a full ISP circuit failure. Ping target is the local default gateway (Next-Hop IP), which remains alive locally despite upstream core ISP drop. Change the Ping Target address to an end-to-end host reachable across the internet (e.g., public DNS).

Common Mistakes

  • Monitoring the Next-Hop IP: Pinging the directly connected router address (192.0.2.1) fails to detect upstream transit failures. Always monitor a target beyond the provider edge.
  • Omitting Host Routes for Targets: If you omit a /32 host route pinned to ethernet1/1 for your path target, path monitor pings will re-route across ISP-2 during a failure. If those pings succeed over ISP-2, the firewall falsely restores the ISP-1 route, creating a routing loop.
  • Asymmetric NAT Rules: Configuring path monitoring without creating matching outbound NAT rules on both WAN interfaces prevents traffic from successfully traversing the backup path.
  • Aggressive Timers on Unstable Links: Setting ping intervals to 1 second with a ping count of 2 can cause route flapping during brief network jitter, dropping user sessions unnecessarily.

Production Considerations

To deliver high availability in mission-critical corporate networks, incorporate these design practices into your path monitoring deployment:

1. Enable Session Rematch

By default, PAN-OS maintains active sessions on their original egress interfaces and NAT translations. When a route failover occurs, existing connections will time out rather than shift immediately to the new route. Enable Session Rematch to force PAN-OS to evaluate existing sessions against updated routing tables:

  • Navigate to Device > Setup > Settings > Session.
  • Edit Session Settings and check Rematch Sessions Upon Route Change.

2. Select Reliable Target Addresses

Select highly redundant, multi-homed target addresses for ICMP probing. Avoid pinging non-redundant single servers. Using multi-homed public DNS infrastructure reduces false positives caused by target endpoint outages.

3. Use Multiple Path Monitoring Targets

If a single monitored host experiences maintenance, single-target path monitoring will mark your primary circuit down. Configure two distinct ping targets under the Path Monitoring tab and set the Failure Condition to All. This ensures failover occurs only when both remote targets fail to respond.

Summary

Palo Alto path monitoring provides robust, automated WAN resilience by extending route health checks beyond local interface link states. By combining dedicated host routes, multi-target ICMP probing, appropriate NAT rules, and session rematch settings, you build an enterprise edge that detects upstream ISP failures and routes around them seamlessly.