> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aviatrix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edge Spoke Gateway High Availability

> This document provides a brief overview of Edge Spoke Gateway high availability.

<a id="edge-spoke-ha" />

This document provides a brief overview of Edge Spoke Gateway high availability.

Before reading this document, you should be familiar with the following:

* <a href={"/docs/enterprise/" + "10.1" + "/concepts-architectures/architecture/connectivity/transit-network-faq"}>Aviatrix Multicloud Transit Network Architecture</a>
* <a href={"/docs/enterprise/" + "10.1" + "/concepts-architectures/components/connectivity/activemesh-about"}>Aviatrix ActiveMesh</a>

## Topology

The Edge Spoke Gateways support active-active and active-standby peering
connections for high availability.

## High Availability Modes

Aviatrix Edge Gateways are associated with an
[edge site](https://legacy.docs.aviatrix.com/documentation/latest/network/edge-gateway-settings.html#site).

### Active-Standby Edge

In an active-standby configuration, an *edge site* can consist of only two Edge
Gateways with one active peering and one standby peering. Only the primary Edge
Gateway actively forwards network traffic. The secondary Edge Gateway takes over
when the primary gateway is down.

In an active-standby deployment, you can set *Preemptive* mode to automatically
switch back to using the primary gateway when the gateway connection is back up.
By default, the network continues to use the secondary gateway even after the
primary gateway is back up.

### Active-Active Edge

In an active-active configuration, both the primary and secondary gateways have
active peerings. Network traffic is load balanced and forwarded across both
active peerings by using Equal Cost Multi Path (ECMP) routing.

In an active-active configuration, an *edge site* can consist of multiple Edge
Gateways. You can deploy multiple gateways to scale your Edge Gateways for
throughput. For more information, see <a href={"/docs/enterprise/" +
"10.1" +
"/concepts-architectures/architecture/connectivity/edge-spoke-scaling"}>Edge
Spoke Gateway Horizontal Scaling</a>.

## About Edge Spoke Gateway to Transit Gateway High Availability

For high availability between Edge Spoke Gateway and Transit Gateway in the
cloud, you can deploy Edge Spoke Gateway in *active-active* configuration. This
feature is supported on all <a href={"/docs/enterprise/" + "10.1" +
"/concepts-architectures/components/edge-gateways/edge-overview#edge-platforms"}>Edge
platforms</a>.

## About Edge Spoke Gateway to LAN High Availability

Edge Spoke Gateways can connect to a LAN side router using BGP over LAN or to an
external device such as a server or firewall using static routes.

Edge Spoke Gateways support *active-active* and *active-standby* connections to
provide LAN side high availability. This feature is supported on all <a href={"/docs/enterprise/" + "10.1" +
"/concepts-architectures/components/edge-gateways/edge-overview#edge-platforms"}>Edge
platforms</a>.

This diagram shows Edge Spoke Gateways deployed on multiple edge sites with
active and standby peering connections to different LAN routers.

<img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-no-hs-lan-connection.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=914fa59cb5de60ee4448918bbbb75f39" alt="Edge Spoke Gateways deployed on multiple edge sites with active and standby peering connections to different LAN routers" width="882" height="578" data-path="images/concepts-architectures/architecture/connectivity/edge-no-hs-lan-connection.png" />

This diagram shows Edge Spoke Gateways deployed on the same site with active and
standby peering connections to different LAN routers.

<img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-no-horizontal-scale.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=035952899b29b65b6b491059a7371057" alt="Edge Spoke Gateways deployed on the same site with active and standby peering connections to different LAN routers" width="876" height="580" data-path="images/concepts-architectures/architecture/connectivity/edge-no-horizontal-scale.png" />

## About Edge Spoke Gateway to VRRP High Availability

Edge Spoke Gateways support Virtual Router Redundancy Protocol (VRRP) protocol
to provide high availability for Virtual Local Area Network (VLAN) connectivity.
You can deploy Edge Spoke Gateways in on-premises locations with the VRRP
protocol enabled. This feature is supported on the *Aviatrix Edge Platform* and
*Self Managed* platforms.

<Note>
  If you deploy an Edge Spoke Gateway with VRRP enabled, then all Edge Spoke
  Gateways in the same *edge site* must be created in active-active high
  availability mode.
</Note>

The diagram below illustrates a VRRP configuration with Edge Spoke Gateways as the default LAN router. LAN traffic flows to the VRRP active gateway to the cloud. When the VRRP active gateway is down, traffic flows to the VRRP standby gateway to cloud.

<img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-multi-vlans.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=61981743be91d0b7eb7b35633e229e2b" alt="Edge Spoke Gateways VRRP configuration with multiple VLANs" width="1078" height="1157" data-path="images/concepts-architectures/architecture/connectivity/edge-multi-vlans.png" />

To learn more about VLAN and VRRP support, see <a href={"/docs/enterprise/" +
"10.1" +
"/concepts-architectures/architecture/connectivity/edge-spoke-vlan-segmentation"}>About
Extending VLAN Segmentation to the Cloud</a>.

<a id="edge-spoke-ha-create" />

## About Creating Highly Available Edge Gateways

The steps to deploy highly available Edge Spoke Gateways is different depending
on the Edge platform.

### Aviatrix Edge Platform

To deploy high availability Edge Spoke Gateways in the Aviatrix Edge Platform,
you must first onboard the devices where you want to deploy the gateways (see <a href={"/docs/enterprise/" + "10.1" +
"/guides/connectivity/edge/edge-device-onboarding"}>Installing Edge OS and
Onboarding Dell Hardware</a>). When you create an Edge Spoke Gateway for an
*edge site*, you have the option to enable High Availability (HA) mode as
active-active mode or active-standby mode. The primary and secondary HA gateways
are then created in the primary and secondary devices that you configure.

<Note>
  * If your LAN network uses VRRP configuration, then High Availability mode must be set to active-active mode.
  * High Availability mode cannot be changed after the primary and secondary (HA) Edge Spoke Gateways are created. To change the High Availability mode, you must first delete the HA Edge Gateway.
</Note>

<Note>
  * If your LAN network uses VRRP configuration, then High Availability mode must be set to active-active mode.
  * High Availability mode cannot be changed after the primary and secondary (HA) Edge Spoke Gateways are created. To change the High Availability mode, you must first delete the HA Edge Gateway.
</Note>

For the deployment workflow, see <a href={"/docs/enterprise/" + "10.1" + "/guides/connectivity/edge/edge-spoke-workflow-onpremise"}>Deploy an Edge Spoke Gateway on Aviatrix Edge Platform</a>.

### Network Service Provider and Self Managed Platforms

To deploy high availability Edge Spoke Gateways in a Network Service Provider
(NSP) platform (Equinix or Megaport) or Self Managed platform, the high-level
steps are as follows:

1. Create the primary Edge Spoke Gateway, which generates a ZTP *cloud-init*
   file. in VM.

   <Note>
     High Availability mode is always off when creating the primary gateway.
   </Note>

2. Deploy the cloud-init file in the Edge VM on the NSP platform.

3. After the primary Edge Spoke Gateway is up, edit the primary Edge Spoke
   Gateway configuration and set the HA mode to active-active mode or
   active-standby mode. This generates a cloud-init file for the HA Edge Spoke
   Gateway.

   <Note>
     * (Self Managed platform only) If your LAN network uses VRRP configuration,
       then High Availability mode must be set to active-active mode. \* High
       Availability mode cannot be changed after the primary and secondary (HA)
       Edge Spoke Gateways are created. To change the High Availability mode, you
       must first delete the HA Edge Spoke Gateway.
   </Note>

4. Deploy the cloud-init file for the HA Edge Spoke Gateway in another Edge VM
   on the NSP platform.

The figure below shows an *active-standby Edge deployment with two gateways*
(one primary and one HA Edge Gateway) for the same edge site. The HA gateway
name is auto-generated in the format `<primary-gateway-name-hagw>`.

<img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-deploy-active-standby.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=2f6381a204133559390cef0f81b3c6bb" alt="Active-standby Edge deployment with two gateways showing primary and HA Edge Gateway" width="1896" height="504" data-path="images/concepts-architectures/architecture/connectivity/edge-deploy-active-standby.png" />
