Active/Passive HA Setup in Palo Alto Firewall

Build a resilient PAN-OS firewall pair by wiring HA1 and HA2 correctly, configuring consistent peer settings, synchronizing the running configuration, and proving failover before production traffic depends on it.

Palo Alto NetworksActive/Passive HAPAN-OSFirewall Resilience
Lesson overview

In This Lesson

Follow the complete workflow from platform checks and HA cabling through election settings, synchronization, verification and a controlled failover test.

  1. Read the active/passive topology and setup map
  2. Understand HA roles, links and failover triggers
  3. Validate peer compatibility and the physical design
  4. Configure HA1 and HA2
  5. Enable the pair, priority and preemption
  6. Synchronize and verify both peers
  7. Test failover and return to service safely
  8. Apply production hardening and monitoring practices
From design to resilience

Quick Learning Map

Think of a reliable HA deployment as three connected outcomes: peer communication, deterministic role selection, and verified recovery.

1

Connect

Give HA1 a dependable control path and HA2 enough capacity to synchronize runtime state.

2

Elect and Sync

Use matching pair settings, deliberate priorities and synchronized configurations.

3

Prove

Validate link health, peer state, configuration sync and real application traffic during failover.

Palo Alto Active/Passive HA at a Glance

This reference uses PA-1 as the preferred active firewall, PA-2 as the passive peer, Ethernet1/1 for HA1, and Ethernet1/2 for HA2. Treat those ports and addresses as a lab example, not a universal hardware requirement.

Palo Alto Networks active/passive high-availability topology showing HA1 and HA2 links, interface settings, device priorities, configuration synchronization, verification commands and failover conditions
Use the diagram as a compact build sheet, then follow the platform checks and validation steps below before adapting it to production.

How Active/Passive High Availability Works

Two compatible Palo Alto Networks firewalls form one HA pair. The active peer processes traffic while the passive peer monitors health and receives the configuration and runtime state needed to take over. The design removes a firewall as a single point of failure, but only when the HA links, adjacent network and monitoring targets are engineered as part of the same recovery path.

HA1 Control Link

Exchanges hello messages, heartbeats, HA state and configuration information. In the lab, PA-1 uses 192.168.1.1/24 and PA-2 uses 192.168.1.2/24.

HA2 Data Link

Synchronizes sessions, forwarding state and other data-plane information. A directly connected Layer 2 link can use Ethernet transport without IP addresses.

Heartbeat Backup

Provides a redundant heartbeat path through the management network and helps prevent split-brain behavior when the primary control path fails.

What can trigger failover?

  • The active firewall becomes nonfunctional or stops responding to peer heartbeats.
  • A monitored production interface or link group reaches its configured failure condition.
  • Path monitoring can no longer reach the configured critical destinations.
  • An administrator intentionally suspends the active peer for maintenance or a controlled test.
Synchronization has boundaries. Network, object, policy and much runtime state can synchronize, but peer-specific items such as management IP addresses, administrator settings, HA settings and logs are not simply cloned. Document those local settings separately.

Prerequisites and Platform Checks

Complete these checks before enabling HA. A pair that forms is not necessarily a pair that will fail over cleanly.

CheckWhat to confirmWhy it matters
Peer compatibilitySame supported model, matching PAN-OS and content releases, compatible licenses and adequate interface capacityPrevents synchronization and feature-behavior mismatches.
HA portsUse dedicated HA ports when the platform provides them; otherwise configure supported data ports with interface type HAEnsures the selected interfaces can carry the intended HA function.
Cabling and pathCorrect speed, duplex, MTU, VLAN and allowed protocol behavior end to endA switch or routed path between peers can introduce hidden failure points.
Adjacent networkBoth peers connect to the required Layer 2/Layer 3 domains and upstream devices can relearn the active pathThe passive firewall cannot protect traffic if its production path is incomplete.
Change controlsBackups, console access, maintenance window, test plan and rollback planHA activation, synchronization and failover can affect live sessions.
Platform exception: PA-5500 and PA-7500 Series HSCI-based HA has model- and release-specific restrictions that differ from this Ethernet1/1 and Ethernet1/2 example. Follow the current platform documentation for HSCI port roles, Layer 2 requirements, addressing, encryption and VLAN behavior.

Steps 4–5: Enable the HA Pair and Set Election Behavior

Step 4 — Configure the group on both firewalls

Open Device → High Availability → General and edit Setup. Use the same group ID and active/passive mode on both peers, but point each firewall to the other peer's HA1 address.

PA-1: Enable HA = yes | Group ID = 1 | Mode = Active/Passive
      Peer HA1 IP = 192.168.1.2 | Enable Config Sync = yes

PA-2: Enable HA = yes | Group ID = 1 | Mode = Active/Passive
      Peer HA1 IP = 192.168.1.1 | Enable Config Sync = yes

Validation: the group ID must identify this pair consistently and should be unique when multiple HA pairs share a broadcast domain.

Step 5 — Set device priority and preemption

Under Election Settings, set PA-1 to priority 50 and PA-2 to priority 100. The lower number is the higher priority. Enable preemption on both peers only when the preferred firewall should reclaim the active role after recovery.

PA-1 device priority: 50  → preferred active
PA-2 device priority: 100 → preferred passive
Preemptive: enabled on both peers

Operational choice: preemption creates a second role transition when the preferred peer returns. Leave it disabled when avoiding that extra failover is more important than returning automatically to a designated primary.

Recommended resilience: enable heartbeat backup when the primary control link uses a dedicated or in-band HA port and verify that the management interfaces can route to each other. Use the recommended HA timer profile unless a tested business requirement justifies a more aggressive design.

Synchronize and Verify the Active/Passive Pair

Commit the HA settings on both peers. Confirm which device is active before initiating a manual synchronization, because the source running configuration overwrites the peer's running configuration.

request high-availability sync-to-remote running-config — synchronize from the active peer

Syntax: run the command only from the intended source peer after reviewing the target and preserving any required local configuration.

admin@PA-1(active)> request high-availability sync-to-remote running-config

Executing this command will overwrite the candidate configuration on the peer
and trigger a commit on the peer. Do you want to continue (y/n)? y

Precaution: confirm the active peer has the authoritative configuration. Wait for the peer commit and synchronization job to finish before testing failover.

show high-availability state — confirm local and peer roles

Purpose: verify the mode, group, local state and peer state. In this design, PA-1 should be active and PA-2 passive when both are healthy and preemption has settled.

admin@PA-1(active)> show high-availability state
admin@PA-2(passive)> show high-availability state

Troubleshooting: a nonfunctional, initial or suspended state requires investigation before traffic is placed at risk.

show high-availability all — inspect the complete HA condition

Purpose: review peer reachability, control/data links, election details, monitoring and configuration synchronization in one output.

admin@PA-1(active)> show high-availability all

Expected checks:
Mode: Active-Passive
Local/peer state: Active / Passive
HA1 control link: up
HA2 data link: up
Running configuration: synchronized

Troubleshooting: compare the same output on both peers and resolve link, version, commit or synchronization errors before proceeding.

Test Failover Without Guesswork

A green HA widget proves peer communication, not application continuity. Test the forwarding path in an approved window and collect evidence from both firewalls and adjacent devices.

  1. Confirm HA1 and HA2 are up, the running configuration is synchronized, both peers are functional and critical applications are healthy.
  2. Record baseline session, interface, routing and monitoring state. Keep console or out-of-band access to both peers.
  3. On the active firewall, open Device → High Availability → Operational Commands and choose Suspend local device.
  4. Verify the former passive peer becomes active and the Dashboard HA widget, system logs and CLI agree.
  5. Test representative application flows in both directions and confirm the upstream network relearns the path.
  6. Choose Make local device functional on the suspended peer, wait for synchronization, and observe whether configured preemption returns the preferred peer to active.
Do not test by pulling arbitrary cables in production. A controlled suspension gives a cleaner first validation. Test interface monitoring, path monitoring and link-loss scenarios separately after the basic role transition is proven.

Production Hardening and Operational Notes

  • Use dedicated HA links where available and add supported HA1/HA2 backup paths when the availability target requires them.
  • Keep PAN-OS, content releases and compatible feature licenses aligned across both peers.
  • Encrypt HA1 when supported and when it crosses an untrusted or shared network; consult model-specific restrictions first.
  • Protect HA subnets from general production use and monitor HA link utilization, errors, flaps and state changes.
  • Select link- and path-monitoring targets that represent real service health without being likely to fail under normal load.
  • Document peer-local settings, serial numbers, management addresses, HA cabling, priorities and recovery procedures.
  • Repeat failover testing after material upgrades, routing changes, switching changes or HA topology changes.

For tunnel-level resilience after the firewall pair is healthy, use the Palo Alto IPSec tunnel troubleshooting workflow.

Official References and Defensive-Use Scope

Defensive-use notice: This guide is for defensive education and authorized administration. It does not authorize testing third-party systems, guarantee uninterrupted service, or replace vendor, legal, privacy or compliance advice. Use it only on systems you own or are explicitly authorized to manage, and follow approved change-control and incident-response procedures.

Palo Alto Active/Passive HA Frequently Asked Questions

What is the difference between HA1 and HA2 on a Palo Alto firewall?

HA1 is the control link for heartbeats, hello messages, HA state and configuration synchronization. HA2 is the data link for session, forwarding and other runtime state synchronization.

Do HA1 and HA2 always need IP addresses?

HA1 normally uses addresses on each peer. A directly connected Layer 2 HA2 link can use Ethernet transport without IP addresses, while a Layer 3 HA2 design requires addresses and routing appropriate to the platform.

Which firewall becomes active when preemption is enabled?

The healthy firewall with the lower numerical device-priority value has the higher election priority and becomes or resumes the active role when preemption is enabled on both peers.

Why is the Palo Alto HA pair not synchronizing?

Check that both peers are compatible, HA1 is up, config sync is enabled, commits succeeded and the running configurations are not blocked by a version or platform mismatch. Review the High Availability widget and show high-availability all output.

How should I test active/passive failover?

Use an approved maintenance window, confirm synchronization and traffic health, suspend the active peer through the HA operational controls, verify the passive peer becomes active, test critical traffic and then return the suspended device to a functional state.

Do Palo Alto HA peers need the same PAN-OS version?

Yes. The peers should be the same supported model and run matching PAN-OS and content releases, with compatible licenses and interface capacity, before the pair is placed into service.