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

# Extending VLAN Segmentation to the Cloud

> This document describes the Aviatrix Hybrid Cloud Edge solution to extend virtual LAN (VLAN) network segmentation into cloud.

This document describes the Aviatrix Hybrid Cloud Edge solution to extend
virtual LAN (VLAN) network segmentation into cloud.

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

* Aviatrix Multicloud Transit Network architecture
* Aviatrix Gateway High-Availability
* Virtual LAN networking concepts
* Virtual Router Redundancy Protocol (VRRP) concepts

Virtual Local Area Networks (VLANs) enables you to create network segmentation
to maintain separation between Local Area Networks. Businesses may deploy
network segmentation for additional security or to keep workloads in their
network separate.

Aviatrix Edge Spoke Gateway supports multiple VLANs and VRRP architecture. This
capability enables you to segment your on-premises network traffic for your LAN
network segments. For example, you can segment the workload in the cloud that
supports PoS (Point-of-Sale) application to the PoS application at the Edge in
that specific LAN segment only.

<Note>
  VLAN and VRRP support is only available on the Aviatrix Edge Platform and
  Self-Managed Platform. It is not available on the Equinix Platform.
</Note>

## VLAN TOPOLOGY

### Single VLAN Topology

The topology below illustrates an Edge site with a single VLAN, Virtual Router
Redundancy Protocol (VRRP), and the Edge Spoke Gateway deployed as the default
LAN router.

<img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-single-vlan.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=346df7d12ed95bea4e21504bfc99ceba" alt="Single VLAN topology diagram showing an Edge site with VRRP and Edge Spoke Gateway as the default LAN router" width="584" height="613" data-path="images/concepts-architectures/architecture/connectivity/edge-single-vlan.png" />

In this diagram:

* The VRRP and VLAN segment is configured on the primary Edge Spoke Gateway.
* The VLAN segment is automatically created symmetrically on the secondary Edge
  Spoke Gateway.
* The VRRP Virtual IP is used by the LAN hosts as the Default Gateway IP.

<Note>
  - VRRP support requires that the Edge Spoke Gateway is created with Active-Active high availability peering connection to the Transit Gateway(s).
  - The Edge Spoke Gateways advertise the CIDRs associated with the LAN and VLAN sub-interfaces to the Aviatrix Transit Gateway(s). You can disable CIDR propagation, if not needed. See [Disabling LAN and VLAN CIDR Propagation to the Transit Gateway](#disabling-lan-and-vlan-cidr-propagation-to-the-transit-gateway).
</Note>

<a id="multiple-vlan-segments" />

### Multiple VLAN Topology

The topology below illustrates an edge site with multiple VLANs, Virtual Router
Redundancy Protocol (VRRP), and Edge Spoke Gateway deployed as the default LAN
router.

<img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-vlan-topology.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=ab0b37c3ccb85613626c29bee31ce5a4" alt="Multiple VLAN topology diagram showing an Edge site with multiple VLAN segments, VRRP, and Edge Spoke Gateway as the default LAN router" width="590" height="549" data-path="images/concepts-architectures/architecture/connectivity/edge-vlan-topology.png" />

In this diagram:

* The VRRP and VLAN segments are configured on the primary Edge Spoke Gateway.

<Note>
  For multiple Edge Spoke Gateways deployed on an edge site, you configure the
  VLAN segments on each primary Edge Spok Gateway. The VLAN segments must be
  configured with the same VLAN ID and CIDR across all the Edge Spoke Gateways
  on the Edge site.
</Note>

* The VLAN segments are automatically created symmetrically on the secondary
  Edge Spoke Gateway(s).
* The VRRP Virtual IP is used by the LAN hosts as the Default Gateway IP for the
  VLAN segments.
* The Edge Spoke Gateway provides the trunk interface connectivity to the LAN
  side switch.

<Note>
  - VRRP support requires that the Edge Spoke Gateway is created with Active-Active high availability peering connection to the Transit Gateway.
  - The Edge Spoke Gateways advertise the CIDRs associated with the LAN and VLAN sub-interfaces to the Aviatrix Transit Gateway(s). You can disable CIDR propagation, if not needed. See [Disabling LAN and VLAN CIDR Propagation to the Transit Gateway](#disabling-lan-and-vlan-cidr-propagation-to-the-transit-gateway).
</Note>

## Extending On-Premises VLAN Segmentation into Cloud

To extend on-premises VLAN segmentation into cloud involves these two steps.

1. [Configure VLAN Interfaces on the Edge Spoke Gateway](#configuring-vlan-interfaces-on-the-edge-spoke-gateway).
2. [Associate VLANs to Network Domains](#associating-vlans-to-aviatrix-network-domains).

<a id="configure-vlans" />

## Configuring VLAN Interfaces on the Edge Spoke Gateway

You can configure VLAN interfaces on the Edge Spoke Gateway during or after the
gateway is created.

To configure VLANs for a new Edge Spoke Gateway, follow the instructions for:

* <a href={"/docs/enterprise/" + "10.1" + "/guides/connectivity/edge/edge-spoke-workflow-onpremise"}>Create the Primary and Secondary Edge Spoke Gateway (Aviatrix Edge Platform)</a>
* <a href={"/docs/enterprise/" + "10.1" + "/guides/connectivity/edge/edge-spoke-workflow-selfmanaged"}>Creating the ZTP ISO for the Edge Gateway (Self-Managed Platform)</a>

To configure VLANs for an existing Edge Spoke Gateway, perform the steps below.

1. In Aviatrix CoPilot, go the *Cloud Fabric > Hybrid Cloud > Edge Gateways*
   tab.
2. Click *Spoke Gateways*.
3. In the table, locate the Edge Spoke Gateway and click the Edit icon on right
   side of the row.
4. In Edit Edge Spoke Gateway, click *Next* to go to *Interface Configuration*
   step.
5. Click *LAN* and enable VRRP, if applicable.

| **Field**     | **Description**                                                                                                                                   |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| IP Assignment | The default is **Static** for static IP assignment on this LAN interface.<br /><br />**DHCP** for dynamic IP address assignment is not supported. |
| VRRP          | To enable Virtual Router Redundancy Protocol (VRRP) on the Edge Spoke Gateway, set this toggle to **On**.                                         |

6. Click *+ VLAN Interface* to add one or more VLAN sub-interfaces.

| **Field**                           | **Description**                                                                                                                                                                                       |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Interface CIDR                      | Enter the native VLAN interface IP address.<br /><br />This interface is where untagged packets are sent.                                                                                             |
| Default Gateway IP, VRRP Gateway IP | Enter the Default gateway IP address.<br /><br />If VRRP is enabled, enter the VRRP Gateway IP address.<br />If VRRP is disabled, enter the Default gateway IP address for the native VLAN interface. |
| Interface Labels                    | Enter a name to identify this native VLAN interface.                                                                                                                                                  |
| VLAN ID                             | Enter the VLAN ID.<br /><br />VLAN ID must be a number between 2 and 4092.                                                                                                                            |
| VLAN Interface CIDR                 | Enter the VLAN's interface IP address.                                                                                                                                                                |
| Default Gateway IP                  | Enter the Default gateway IP address for this VLAN interface.                                                                                                                                         |
| Sub-Interface Tag                   | Enter a name to identify this VLAN interface.                                                                                                                                                         |

If high availability is enabled, the VLAN configurations are added to the
secondary Edge Spoke Gateway. If the properties are shared, the fields are
disabled on the secondary gateway and non-editable.

7. If multiple Edge Spoke Gateways are deployed on the edge site, repeat the
   steps above for each primary Edge Spoke Gateway.

<Check>
  * VLAN segments must be configured with the same VLAN ID and CIDR across all the Edge Spoke Gateways for the edge site.

  * You cannot edit the VLAN ID after it is configured. To edit the VLAN
    sub-interface attributes, it is highly recommended to delete and recreate the
    VLAN sub-interface configuration.
</Check>

<a id="associate-vlans-to-network-domains" />

## Associating VLANs to Aviatrix Network Domains

Aviatrix Edge Spoke Gateway enables you to segment your on-premises network
traffic through network domains and connection policies. The Edge Spoke Gateway
routes on-premises and inter-VLAN traffic flow based on the network domain
connection policies.

To segment the on-premises network traffic, you associate the VLAN segment and
its workload in the CSP to the same network domain.

For example, the diagram below illustrates on-premises network traffic flow
between the yellow and orange domains that are segmented.

* VLAN 100 is associated to the same network domain as its workload in the CSP.
* VLAN 200 is associated to the same network domain as its workload in the CSP.

<img src="https://mintcdn.com/aviatrix-14b37c43/8iF92JcVck-Y3RaJ/images/concepts-architectures/architecture/connectivity/edge-csp-vlan-segmentation.png?fit=max&auto=format&n=8iF92JcVck-Y3RaJ&q=85&s=fb93f8e00e816450d15841257f251bea" alt="VLAN segmentation diagram showing on-premises VLAN 100 and VLAN 200 associated to their respective network domains and CSP workloads" width="510" height="516" data-path="images/concepts-architectures/architecture/connectivity/edge-csp-vlan-segmentation.png" />

To create network segmentation between VLANs and Spoke VPCs Or VNets, you
associate the VLANs and Spoke VPCs or VNets to network domains. When network
segmentation is configured with multiple Edge Spoke Gateways using VLAN, the
same VLAN ID is associated to the network segment *across all the gateways for
the edge site*.

<Check>
  * The VLANs for an edge site must be created before the network domain association is configured.
  * The VLANs must be configured with the same VLAN identifier (ID) and CIDR across all the Edge Spoke Gateways on the edge site before the network segmentation is configured.
</Check>

<Note>
  If VLANs are created or added after the network domain association is created, the association must be removed and reconfigured.

  1. Remove the VLAN association with the network domain.
  2. Ensure the new VLAN is configured with the same VLAN ID and CIDR across all
     the Edge Spoke Gateways on the edge site.
  3. Re-create the VLAN association with the network domain.
</Note>

To associate VLANs to Aviatrix Network Domains:

1. In Aviatrix CoPilot, go to *Networking > Network Segmentation > Network
   Domains* tab.
2. To add a new network domain, click *+ Network Domain*.

Provide the following information:

| **Field**                 | **Description**                                                                                                                                                                                                                                                                                                                  |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                      | Enter a unique name for this network domain.<br /><br />A network-domain name can only have letters, digits, a hyphen (-), and an underscore (\_). The name must start with a letter and must have 2-27 characters. For example, Dev\_Domain.<br /><br />After you create and save a network domain, you cannot change its name. |
| Association               | From the dropdown list, select the Spoke VPC/VNet and the VLAN that are in this network domain.                                                                                                                                                                                                                                  |
| Connect to Network Domain | To connect this network domain to another network domain, from the dropdown list, select the other network domain.<br /><br />This enables traffic flow between both network domains.                                                                                                                                            |

3. Click *Save*.

<a id="disable-cidr-propagation" />

## Disabling LAN and VLAN CIDR Propagation to the Transit Gateway

The Aviatrix Edge Spoke Gateway exchanges routes with the Transit Gateways. The
Edge Spoke Gateway advertises the CIDRs associated with the LAN and VLAN
interfaces to the Transit Gateway, by default. If you do not need LAN CIDR
propagation, you can disable this feature.

<Note>
  If there are workloads on the LAN or the VLAN CIDR, then disabling LAN and
  VLAN interface CIDR propagation may cause network traffic to be dropped, since
  Transit Gateway will not have learned the LAN or VLAN CIDRs.
</Note>

To disable LAN and VLAN CIDR propagation:

1. In Aviatrix CoPilot, go to *Cloud Fabric > Hybrid Cloud > Edge Gateways* tab.
2. Click *Spoke Gateways*.
3. Select the Edge Spoke Gateway for which to disable LAN CIDR propagation.
4. In the Edge Spoke Gateway's *Settings* tab, expand the *Routing* section.
5. Set *LAN/VLAN Interface CIDR Propagation* toggle to *Off*.
