# Stretching layer 2 networks for HI GIO's DRaaS

## <mark style="color:green;">Overview</mark> <a href="#overview" id="overview"></a>

During on-premises to the cloud migrations, stretch the on-premises networks across the HI GIO cloud site to allow network connectivity between already migrated and not yet migrated virtual machines in the same network segment.

Layer 2 VPN (L2 VPN) stretches the L2 networks across the sites.

## <mark style="color:green;">**Procedure**</mark> <a href="#procedure" id="procedure"></a>

1. **Prerequisites:** [**deployed VMware Cloud Director Availability On-premises Appliance**](https://higio-support.atlassian.net/wiki/spaces/v2/pages/69992561/Stretching+layer+2+networks+for+HI+GIO+s+DRaaS.)

{% hint style="info" %}
On-premises VMs must connect to VLAN-backed networks **configured** **on** **Distributed Switches**

(Standard Switch is **NOT** supported).
{% endhint %}

2. **Procedure:** To complete the L2 stretch, we follow the steps:

* [Preparing the configure:](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/preparing-the-configure)

&#x20;      **On-premises Site:** fulfill VLAN, IP address, port groups, and Public IP.

&#x20;      **HI GIO site:** Public IP, networks.

* [Deploy NSX Autonomous Edge (on-premises site)](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/deploy-nsx-autonomous-edge-on-premises-site)
* [Register & configure the Networks of the NSX Autonomous Edge On-Premises](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/register-and-configure-the-networks-of-the-nsx-autonomous-edge-on-premises)
* [Create a L2 VPN - Server session (HI GIO cloud site).](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/create-a-l2-vpn-server-session-hi-gio-site-.)
* [Create a L2 VPN - Client session (on-premises site).](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/create-a-l2-vpn-client-session-on-premises-site)

## **Guidelines** <a href="#guidelines" id="guidelines"></a>

* [Preparing the configure](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/preparing-the-configure)
* [Deploy NSX Autonomous Edge (on-premises site)](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/deploy-nsx-autonomous-edge-on-premises-site)
* [Register & configure the Networks of the NSX Autonomous Edge On-Premises](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/register-and-configure-the-networks-of-the-nsx-autonomous-edge-on-premises)
* [Create a L2 VPN server session (HI GIO site).](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/create-a-l2-vpn-server-session-hi-gio-site-.)
* [Create a L2 VPN - Client session (on-premises site).](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/create-a-l2-vpn-client-session-on-premises-site)
* [(Optional) Deploy the secondary NSX Autonomous Edge in HA mode (on-premises site)](https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/optional-deploy-the-secondary-nsx-autonomous-edge-in-ha-mode-on-premises-site)
