> For the complete documentation index, see [llms.txt](https://doc.engenius.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.engenius.ai/cloud-configuration-guide/topics/gateway-high-availability/engenius-gateway-ha-architecture-and-design-guide.md).

# EnGenius Gateway HA Architecture & Design Guide

## **1. High Availability Architecture**

The EnGenius Gateway High Availability (HA) feature ensures continuous and reliable network operations by providing hardware redundancy and automatic failover capabilities. Designed to eliminate single points of failure, the EnGenius HA architecture operates on an **Active-Standby** (Master-Backup) mechanism.

Unlike standard interface-level failover protocols, EnGenius employs a **Device-Level HA Strategy**. The system proactively monitors the overall health of the gateway—including WAN connectivity, link status, and packet loss—and dynamically adjusts the CARP (Common Address Redundancy Protocol) priority across all interfaces simultaneously.

## **2. Pre-requisites & System Limits**

To ensure optimal stability and performance, the HA architecture requires strict adherence to specific hardware, firmware, and logical constraints.

**Implementation Requirements:**

* **Hardware Consistency:** The Master and Backup gateways must be the exact same model.
* **Firmware:** Both the Master and Backup gateways must be running the exact same firmware version (**v1.2.95 or later**) that supports HA.
* **License Requirement:** The network requires a PRO License for the active gateway. The backup unit will automatically inherit PRO features when successfully paired in HA mode.

**Technical Constraints:**

* **Connection Type:** The WAN interface must be configured as a **Static IPv4 Address**. DHCP WAN or PPPoE is not supported for HA deployment.
* **No IPv6 Support:** HA requires IPv4; IPv6 addressing and prefix delegation are currently not supported in HA topologies.
* **Routing Mode Only:** The gateways must operate in **Routed Mode**. Passthrough mode is strictly unsupported and will disable the HA configuration option.
* **Port Configuration Restrictions:** LAN interfaces designated for HA must be configured as **Hybrid Ports**; multi-bridge port configurations are not supported.
* **Dual WAN Limitations:** If Dual WAN is enabled, only **Failover mode** is supported (Load Balancing is not supported).
* **Feature Incompatibilities:** CloudBrink must be completely disabled before initiating an HA deployment.

## **3. Deployment Scenarios & Topology**

EnGenius HA supports both Single WAN and Dual WAN deployments. In either scenario, both the Master and Backup gateways require their own dedicated physical IP addresses for Cloud management, alongside a shared Virtual IP (VIP) for client traffic routing.

Physical Cabling & Connectivity Norms: To guarantee that heartbeat packets and state synchronization occur reliably, the physical topology must support layer 2 connectivity between the gateways:

* **Sync Port:** A dedicated physical port (e.g., Port 2 on ESG510/610) must be wired between the Master and Backup units to handle state synchronization.
* **LAN HA Port:** A designated LAN port must connect both gateways to a downstream switch. The downstream switch ensures that CARP heartbeats propagate successfully to detect LAN-side failures.
* **WAN Connectivity:** Upstream Internet access (Single or Dual ISP) should be provided via upstream switches or routers, ensuring both gateways possess a physical path to the respective ISPs.

***Deep Dive**: Sync Port IP Addressing The Sync interface is auto-configured utilizing a hidden 240.251.254.253/30 subnet. To prevent HA failures, ensure your corporate network does not overlap with or route to this specific IP range.*

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/1jRRPU2Rjaz9ZH1LkcEw/Unknown%20image)

**Figure 1. EnGenius Gateway HA physical topology and heartbeat flow.**

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/fiGdZa1QH2bhlnaebjmS/Unknown%20image)

**Figure 2. Physical port cabling reference (ESG610).**

## **4. Implementation via EnGenius Cloud**

The EnGenius Gateway HA feature is entirely centrally managed through the EnGenius Cloud dashboard. The strict provisioning sequence must be followed to successfully logicalize the HA pair.

**Provisioning Path:**

* **Pre-requisite Interface Configuration:**
* Navigate to **Configure > Gateway > Interfaces > WAN > Connection** and verify that the active WAN interface is configured strictly as a **Static IPv4 Address**.
* Navigate to **Configure > Gateway > Interfaces > LAN > Mode** and ensure the LAN interface is set to **Hybrid Port** mode.

**Assign the Backup Unit:**

* Go to **Configure > Gateway > High Availability**.

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/DiR87QibX2FNbkhXhTJO/Unknown%20image)

**Figure 3. Enabling High Availability and selecting a Backup Unit.**

* Under the **Backup Unit** dropdown, select the target backup gateway. *(Note: The backup gateway must be the exact same model, available in your Inventory & License, and currently unassigned to any network).*

**Enable High Availability:**

* Once the valid Backup Unit is selected, toggle **High Availability** to *Enabled*. This action officially binds the pair and designates the current device as the Master unit.
* **Configure WAN Redundancy & Review Physical Ports:**
* Define the **Backup WAN IP** and the shared **Virtual WAN IP** for all active uplinks (WAN1 and, if applicable, WAN2).
* Review the system-designated **Sync Port** and **LAN HA Port** from the physical port map. These ports are hardcoded based on the gateway model (e.g., P2 for Sync and P1 for LAN HA on the ESG510/610) and are displayed automatically for your cabling reference.

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/6TY5eW4hT1jAEeDaqD4t/Unknown%20image)

**Figure 4. Configuring Virtual WAN IPs and physical HA ports.**

**Apply Local Network HA Addressing:**

* Navigate to **Configure > Gateway > Interfaces > LAN** (or verify within the HA page's Local Network section).
* Assign the specific **Master IP Address** and **Backup IP Address** for each configured LAN/VLAN. Both IPs and the Local Network IP must reside within the same subnet to complete the HA logical deployment.

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/ePawegCA07MTWrG5b0rW/Unknown%20image)

**Figure 5. Configuring Local Network HA addressing.**

**HA Configuration & Operational Notes**

* **Modification Limits:** Once HA is successfully enabled, the Backup unit cannot be swapped or modified directly. To change the hardware or assign a different Backup unit, you must completely disable the HA feature first.
* **Disabling HA:** HA can only be safely disabled when the Master device has been restored to the **Active** status.

## **5. Operational Monitoring (LSP & Dashboard)**

Continuous visibility into the health of the HA pair is available through the Cloud interface and local diagnostics.

Cloud Dashboard Monitoring: Navigate to **Manage > Gateways** (or click into the specific Device Details). The system utilizes an **HA Mode** field to explicitly define the current operational state:

* Master (active) or Master (standby)
* Backup (active) or Backup (standby)

Detailed information (such as DHCP leases, routing tables, and active WAN metrics) is aggregated and displayed under the active unit, while physical port statuses are displayed independently for each chassis.

**Current HA role status**

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/Ifo3COoHhppw4OvZ07Ag/Unknown%20image)

**Figure 6. HA role visibility within EnGenius Cloud.**

*Note: The HA role status displayed on the Cloud dashboard is updated every 5 minutes and is not strictly real-time.*

**Real-time Master / Backup visibility**

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/b3rMld8TEeXh6wIXrt4j/Unknown%20image)

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/D2mLAl0nXpGFVpLFBVq6/Unknown%20image)

**Figure 7. Real-time device role visibility for both Master and Backup units.**

**Failover and recovery event logs**

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/OeKTnPhR64XE4mswDdOZ/Unknown%20image)

**Figure 8. Event-level visibility for HA failover and recovery behavior.**

**HA status dashboard**

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/J7FxHKDgu5TZC4MgCR7O/Unknown%20image)

**Figure 9. HA status monitoring for operational validation and troubleshooting.**

**Local Status Page (LSP) Behavior:**

To maintain absolute configuration consistency and prevent split-brain scenarios, the Local Status Page (LSP) operates in a strictly **View-Only** mode while participating in an active HA pair. All critical network modifications must be executed through the EnGenius Cloud dashboard.

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/gECXfv9vIW0eoRX4CZu8/Unknown%20image)

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/YixYvOmCiujuE0XduxZF/Unknown%20image)

**Figure 10. Local Status Page (LSP) operating in view-only mode.**

**Accessing the Local Status Page (LSP):**

To ensure accurate diagnostic results, administrative access to the LSP depends on the IP address utilized:

* Virtual IP (VIP): Directs the administrator to the LSP of the currently Active unit.
* Physical IP: Allows direct access to the LSP of a specific chassis (Master or Backup). Using the assigned physical IP is mandatory for independent status inspection and troubleshooting of an individual unit, as it bypasses the Virtual IP's redirection logic.

## **6. Failover Logic & Verification**

Switching Mechanism: The EnGenius HA pair utilizes CARP heartbeat advertisements broadcasted every **1 second** over both WAN and LAN sites. The system evaluates multiple failure parameters (Link Down, Ping Loss, WAN Offline, Device Offline) to dynamically adjust the internal CARP priority (advskew). If the Backup gateway fails to receive a heartbeat for **3 consecutive seconds**, it assumes the Master has experienced a critical hardware or uplink failure. The Backup unit will instantly promote itself to the Active role, inheriting the Virtual IP and MAC address to process traffic. Total failover execution typically completes in under 30 seconds.

***Deep Dive**: CARP Priority (advskew) Matrix The system dynamically adjusts the internal CARP priority (advskew) based on the gateway's overall health and uplink availability. A lower advskew value indicates a higher priority to become the Active node. The exact weight changes are defined as follows:*

***Logic**: If either gateway detects a CARP advertisement with a higher priority (a lower advskew value) than its own current state, it will automatically yield and the gateway with the better health score will take over as the Active unit.*

| Scenario                                                                      | Master  | Backup  |
| ----------------------------------------------------------------------------- | ------- | ------- |
| Primary WAN is active                                                         | **0**   | **30**  |
| Primary WAN is down, and secondary connection is active                       | **60**  | **90**  |
| Primary and secondary connections are down, and tertiary connection is active | **120** | **150** |
| Device is offline                                                             | **180** | **210** |

**Table 1. Dynamic CARP priority (advskew) adjustment matrix.**

Verification Procedures: To validate that your redundant architecture is operating correctly, follow these standard testing procedures during a maintenance window:

1. Establish a continuous stateful session (e.g., a continuous ping or a live video stream) from a LAN client to an external internet server.
2. Physically disconnect the active WAN uplink or power down the Active Master gateway.
3. Observe the transition. The Backup unit should assume the active role, and the active session should remain alive without requiring the user to refresh or restart the connection (thanks to state synchronization).

## **7. State Synchronization & Failover Behavior**

To deliver a reliable High Availability experience, the EnGenius Gateway architecture relies on deep state synchronization. However, whether a network service experiences an interruption during a failover event depends primarily on **whether the external Public IP / Virtual IP changes** and the specific architectural traits of the service.

### **1. Firewall State Synchronization**

* **Mechanism:** The system continuously synchronizes the firewall state table from the Active Gateway to the Standby Gateway over the dedicated Sync Port.
* **Failover Preference:** The system evaluates external connectivity (e.g., uplink packet loss or gateway offline status) to trigger failovers. The failover preference sequence is strictly prioritized as: Master Primary WAN > Backup Primary WAN > Master Secondary Connection > Backup Secondary Connection.
* **Seamless Failover (Same WAN IP)**:If a failover is triggered by a loss of external connectivity and transitions within the same tier (e.g., failing over from **Master Primary WAN to Backup Primary WAN**), the external Public IP and Virtual IP remain unchanged. The Standby unit seamlessly inherits the existing connection states. Most standard LAN-to-WAN traffic (such as video streaming) will experience a completely seamless transition without disruption.
* Noticeable Failover (Changed WAN IP): If the failover transitions across different connection tiers (e.g., failing over from **Backup Primary WAN to Master Secondary Connection**), the external Public IP inherently changes. Consequently, any existing sessions built on TCP will become invalid. Most services will experience a noticeable disconnection, and client devices must establish new sessions to restore connectivity.

### **2. DHCP State Synchronization**

* **Mechanism:** Because DHCP is a stateful service, the **Master** and **Backup** gateways continuously exchange client IP lease information over the **LAN port**. Both units actively participate in the DHCP process. If one gateway's DHCP service stops responding or goes offline, the other gateway will automatically take over the entire DHCP scope. This ensures the surviving unit has full awareness of all distributed IP addresses, effectively preventing IP conflicts after a transition.

***Deep Dive**: ISC DHCP Failover Protocol This state synchronization is specifically powered by the ISC DHCP Failover protocol. The Master and Backup gateways continuously exchange client lease, binding, and peer state information by communicating via their physical LAN IP addresses over TCP ports 519 and 520.*

### **3. VPN Failover Behavior**

VPN services exhibit different failover behaviors based on their tunnel reconstruction mechanisms:

* Site-to-Site VPN (EnGenius Auto VPN): Auto VPN is highly adaptable. Whenever the Active Gateway changes (for example, transitioning from Master Primary WAN to Backup Secondary Connection), the system will automatically re-establish the Site-to-Site VPN tunnels.
  * *User Experience:* In scenarios where the failover occurs and the Virtual IP and Public IP remain unchanged (e.g., Master Primary WAN to Backup Primary WAN), most services operating across the VPN will not truly disconnect. For instance, an active SSH session might freeze or pause for a few seconds while the VPN tunnel reconstructs, but it will resume normal operation shortly after **without requiring the user to re-establish the SSH connection**.
* **Client VPN**
  * SecuPoint: When an **HA failover** occurs, any existing SecuPoint Client VPN sessions will be disconnected. The client must re-establish a new connection with the new Active gateway. *(Note: The SecuPoint application includes a built-in auto-reconnect mechanism that will automatically attempt to restore the connection after a brief interruption).*
  * IPsec: Similar to OpenVPN clients, any actively connected IPsec Client VPN sessions will be dropped during an **HA failover** event. End-users will need to manually initiate a new VPN connection to the active gateway to restore remote access.

***Deep Dive**: EnGenius IPsec strictly binds to the Virtual IP (VIP) and intentionally drops VPN requests (UDP 500/4500) to Physical IPs. This ensures consistent upstream NAT-T mappings and prevents split-brain VPNs during failovers.*

## **8. Rolling Firmware Upgrade**

EnGenius HA deployments support a **rolling firmware upgrade** mechanism that allows both the Master and Backup ESG to be upgraded sequentially without interrupting network connectivity for client devices. Throughout the entire upgrade process, at least one ESG unit remains active, ensuring continuous Internet access under the HA environment.

**How Rolling Firmware Upgrade Works**

The rolling upgrade process follows a sequential, non-disruptive flow:

1. Master ESG stops advertising CARP, relinquishing the active role.
2. Backup ESG detects the CARP timeout and automatically becomes the active gateway.
3. Master ESG begins its firmware upgrade while traffic continues flowing through the Backup ESG.
4. Once the Master ESG upgrade completes, it reboots and comes back online, then resumes advertising CARP and reclaims the Master (active) role.
5. Backup ESG starts its firmware upgrade, with the Master ESG now handling all traffic.
6. Once the Backup ESG upgrade completes, it reboots and rejoins the HA pair in standby mode\*\*.\*\*

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/qoL083OlhjvDo4Wx5OwT/Unknown%20image)

**Figure 11. Sequential workflow of a zero-downtime rolling firmware upgrade.**

## **9. Troubleshooting & Failure Scenarios**

To effectively manage and troubleshoot the EnGenius HA architecture, administrators should understand both the expected system behaviors during outages and the diagnostic steps for specific HA alerts.

### 9.1 Failure Scenario Matrix

The following matrix outlines the expected system response across various hardware and link failure domains. This reference helps administrators distinguish between normal failover operations and actual system faults

| **Scenario**                                   | **Expected Result**                                                                                                           |
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Active unit power failure                      | Backup takes over the active role.                                                                                            |
| Active-unit LAN link failure                   | Backup takes over the active role.                                                                                            |
| Active-unit WAN link failure                   | Traffic switches according to configured WAN policy and available uplink priority.                                            |
| HA synchronization link failure                | Peer communication is interrupted; failover coordination and synchronized state behavior may be affected.                     |
| Active-unit WAN failure + HA sync link failure | Failover coordination is impaired; behavior depends on whether the Backup unit can independently confirm peer unavailability. |
| All WAN links on both nodes fail               | Master remains active; no failover occurs; traffic is interrupted until uplinks recover.                                      |
| Firmware upgrade in progress (rolling)         | One unit maintains production traffic while the peer is upgraded; client Internet access is preserved.                        |

**Table 2. Failure Scenario Matrix.**

### 9.2 Common HA Alerts & Diagnostics

![](https://content.gitbook.com/content/us0DBFfmoooUbiDkYdbq/blobs/J7FxHKDgu5TZC4MgCR7O/Unknown%20image)

**Figure 9. HA status monitoring for operational validation and troubleshooting.**

If HA behaves unexpectedly, check the HA Mode field in the device details for an alert icon (!). Hovering over the icon will reveal the specific failure reason.

* **Dual active detected:** Both Master and Backup report as "Active." This indicates that the Backup unit is not receiving heartbeats.

***Recommended Step**:* Verify all physical cabling between the gateways and the switches. Ensure that the upstream and downstream switch are not blocking CARP multicast traffic. In this state, it is highly recommended to bypass the Virtual IP and access each gateway's **Local Status Page (LSP)** directly using their respective **Physical IPs** to perform independent hardware diagnostics.

* **Sync Port Fail / Link down:** The Sync Port link is down.

***Recommended Step**:* Inspect the physical cable connecting the Sync Ports between the two gateways.

* **LAN HA Port Linkdown:** The physical link of the LAN HA port is down. This interrupts the CARP heartbeat advertisements on the local network segment and may trigger an unexpected failover.

***Recommended Step***: Restore the physical connection. Confirm the downstream switch port is enabled and not in an error-disabled state.

* **Master/Backup is offline:** The indicated gateway has lost connectivity to the EnGenius Cloud or has powered down.

***Recommended Step***: Verify the physical power status of the offline gateway. Inspect its WAN uplink to ensure it has active internet connectivity to reach the EnGenius Cloud. Once power and internet access are restored, the gateway will automatically reconnect to the cloud and resume its High Availability role.

* **Firmware versions between master and backup do not match:** Operating with mismatched firmware may lead to unpredictable synchronization behavior.

***Recommended Step**:* Upgrade the both Master and Backup units directly via EnGenius Cloud. It is not necessary to disable the HA pair to perform this upgrade — the rolling upgrade mechanism will handle the process non-disruptively.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.engenius.ai/cloud-configuration-guide/topics/gateway-high-availability/engenius-gateway-ha-architecture-and-design-guide.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
