# 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:](/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/preparing-the-configure.md)

&#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)](/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/deploy-nsx-autonomous-edge-on-premises-site.md)
* [Register & configure the Networks of the NSX Autonomous Edge On-Premises](/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/register-and-configure-the-networks-of-the-nsx-autonomous-edge-on-premises.md)
* [Create a L2 VPN - Server session (HI GIO cloud site).](/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/create-a-l2-vpn-server-session-hi-gio-site-..md)
* [Create a L2 VPN - Client session (on-premises site).](/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas/create-a-l2-vpn-client-session-on-premises-site.md)

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

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


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.higiocloud.vn/hi-gio-draas/stretching-layer-2-networks-for-hi-gios-draas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
