> ## 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.

# Transit Peering Over Public Network with Edge Spoke Gateway

> If you have a multicloud environment across cloud service roviders (CSPs), for example, AWS and Azure, you can create Transit Gateway Peering over public network and use the Transit Gateway Peering as a secondary or backup path while the Edge Spoke Gateway with Transitive Routing enabled is...

<a id="transit-peering-over-public-network-for-backup-path" />

If you have a multicloud environment across cloud service roviders (CSPs), for
example, AWS and Azure, you can create Transit Gateway Peering over public
network and use the Transit Gateway Peering as a secondary or backup path while
the Edge Spoke Gateway with Transitive Routing enabled is used as the primary
path for forwarding traffic.

<img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-transit-peering.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=55777fd4069e2df2685703fb9e55334a" alt="Transit peering over public network with Edge Spoke Gateway topology diagram" width="654" height="799" data-path="images/concepts-architectures/architecture/connectivity/edge-transit-peering.png" />

## Configuring Transit Peering over Public Network with Edge Spoke Gateway

To create Transit Peering over public network, follow these steps.

1. Ensure that you have AS numbers configured on both Transit Gateways.

   1. In Aviatrix CoPilot, go to **Cloud Fabric > Gateways > Transit Gateways**
      tab.
   2. Select the Transit Gateway in one cloud service provider.
   3. In the Transit Gateway's **Settings** tab, expand the **Border Gateway
      Protocol (BGP)** section.
   4. Ensure the **Local AS number** is configured, and click **Save**.

   <Note>Make note of this AS number to use later to set AS Path Prepend.</Note>

   <img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-transit-peering-1.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=cd222393f8b98f57a8924e26b9637e30" alt="Transit Gateway BGP Local AS number configuration" width="859" height="594" data-path="images/concepts-architectures/architecture/connectivity/edge-transit-peering-1.png" />

2. Repeat Step 1 to set the Local AS Number for the other Transit Gateway in
   another cloud service provider.

3. Peer the Transit Gateways.

   1. Go to **Cloud Fabric** > **Gateways** > **Transit Gateways** tab.
   2. Locate the Transit Gateway in one cloud service provider and click the
      Edit icon.
   3. In Edit Transit Gateway, from the **Peer To Transit Gateways** dropdown
      list, select the Transit Gateway in the other cloud service provider and
      click **Save**.

   <Note>
     * Both Transit Backbone VNE/VPCs need to match configuration. \* You cannot
       peer non-HA Transit Gateway with another Transit Gateway in HA mode.
   </Note>

4. Set the AS Path Prepend.

   1. Go to **Cloud Fabric** > **Gateways** > **Transit Gateways** tab.

   2. Select the Transit Gateway where you want to set Prepend.

   3. In the Transit Gateway's **Settings** tab, expand **Border Gateway
      Protocol (BGP)** section.

   4. Scroll down to **AS Path Prepend**, and select the Transit Peering
      connection name.

      You can configure per connection or per gateway (all connections).

   5. In **Prepend AS Path (Per Connection)** field, input the Transit Gateway
      Local AS Number three times separated by space.

   <img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-transit-peering-2.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=3815f9499c5ea9ed7f5207f6fdf83c45" alt="AS Path Prepend configuration for Transit Peering connection" width="581" height="472" data-path="images/concepts-architectures/architecture/connectivity/edge-transit-peering-2.png" />

5. To view the AS Prepended routes:

   1. Go to **Cloud Fabric** > **Gateways** > **Transit Gateways** tab.
   2. Select the Transit Gateway where you set the As Path Prepend.
   3. Click the Transit Gateway's **Route DB** tab to view the prepended routes.

   <img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-transit-peering-3.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=88e8de828d2a4eadda5a024636e869c9" alt="Route DB tab showing AS prepended routes" width="599" height="151" data-path="images/concepts-architectures/architecture/connectivity/edge-transit-peering-3.png" />
