> For the complete documentation index, see [llms.txt](https://docs.higiocloud.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.higiocloud.vn/hi-gio-user-guide-vn/hi-gio-draas/stretching-layer-2-networks-cho-hi-gios-draas/tuy-chon-trien-khai-nsx-autonomous-edge-thu-hai-o-che-do-ha-on-premises-site-..md).

# (Tùy chọn) Triển khai NSX Autonomous Edge thứ hai ở chế độ HA (on-premises site).

## <mark style="color:green;">Tổng quan</mark> <a href="#overview" id="overview"></a>

Tùy chọn, sử dụng các bước sau để triển khai một NSX-T Autonomous Edge thứ hai (Layer 2 VPN client) trong chế độ HA trong môi trường on-premises của bạn:

| **#** | **OVF Template Name** | **Port Group**   | **Primary Node**                                             | **Second Node (optional)**                                                                                 | **Remark**                      |
| ----- | --------------------- | ---------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- | ------------------------------- |
| 1     | Network 0             | Management       | <mark style="background-color:yellow;">192.168.137.79</mark> | <mark style="background-color:yellow;">192.168.137.</mark>8<mark style="background-color:yellow;">0</mark> |                                 |
| 2     | Network 1             | Uplink           | <mark style="background-color:yellow;">192.168.138.77</mark> | –                                                                                                          | must to have access to internet |
| 3     | Network 2             | Trunk            | –                                                            | –                                                                                                          |                                 |
| 4     | Network 3             | – (HA, optional) | <mark style="background-color:yellow;">192.168.137.81</mark> | 1<mark style="background-color:yellow;">92.168.137.82</mark>                                               |                                 |

## <mark style="color:green;">Quy trình</mark> <a href="#id-2.-guidance" id="id-2.-guidance"></a>

{% stepper %}
{% step %}
**Bước 1**: Thực hiện các bước trong [Triển khai NSX Autonomous Edge (on-premises site)](/hi-gio-user-guide-vn/hi-gio-draas/stretching-layer-2-networks-cho-hi-gios-draas/trien-khai-nsx-autonomous-edge-on-premises-site-..md) cho đến bước **Customize template.**
{% endstep %}

{% step %}
**Bước 2**: Ở bước **Customize template**, thực hiện các thay đổi sau:

* Trong phần **Application**:
  * Đặt mật khẩu cho **System Root User**.
  * Đặt mật khẩu cho người dùng CLI "**admin**".
  * Chọn checkbox **Is Autonomous Edge**.
  * Để các trường còn lại trống.

{% hint style="warning" %}
Dịch vụ cốt lõi của NSX Edge không khởi động trừ khi bạn nhập mật khẩu đáp ứng các yêu cầu sau:

&#x20;  Tối thiểu 12 ký tự

&#x20;   Ít nhất một chữ cái viết hoa

&#x20;   Ít nhất một chữ cái viết thường

&#x20;   Ít nhất một chữ số

&#x20;   Ít nhất một ký tự đặc biệt

&#x20;   Ít nhất năm ký tự khác nhau
{% endhint %}

* Trong phần **Network Properties**:

  * Đặt **Hostname**.
  * Đặt **Management Network IPv4 Address** (Đây là IP quản lý cho autonomous edge).
  * Đặt **Management Network Netmask** (Đây là độ dài prefix của mạng quản lý).&#x20;
  * Đặt **Default IPv4 Gateway** (Đây là gateway mặc định của mạng quản lý).

  <figure><img src="/files/ih0AVBMENaPU5KtfjLXL" alt=""><figcaption></figcaption></figure>
* Trong phần **DNS**:
  * Trong trường **DNS Server list**, nhập các địa chỉ IP của DNS servers, cách nhau bởi dấu cách.
  * Trong trường **Domain Search List**, nhập tên miền.
* Trong phần **Services Configuration**:
  * Nhập danh sách **NTP Server**
  * Nhập các **NTP Servers**, cách nhau bởi dấu cách.
  * Chọn checkbox **Enable SSH**.
  * Chọn checkbox **Allow Root SSH logins**.
* Để phần **External** trống.
* Trong phần **HA**:

-Nhập chi tiết **HA Port** theo định dạng sau: `VLAN_ID, Exit Interface, IP, Prefix Length`

Ví dụ: `137, eth2, 192.168.137.81, 24`. Thay thế các giá trị sau:

VLAN ID: VLAN ID của uplink VLAN

Exit Interface: ID của interface dành cho uplink traffic

IP:  Địa chỉ IP của interface uplink

Prefix Length: Độ dài prefix của mạng uplink

-Trong trường **HA Port Default Gateway**, nhập gateway mặc định của management network

-Chọn checkbox **Secondary API Node**.

-Trong trường **Primary Node Management IP**, nhập địa chỉ IP management của primary autonomous edge.

-Trong trường **Primary Node Username**, nhập tên người dùng của primary autonomous edge (ví dụ: "admin").

-Trong trường **Primary Node Password**, nhập mật khẩu của primary autonomous edge.

-Trong trường **Primary Node Management Thumbprint**, nhập thumbprint API của primary autonomous edge.

> Bạn có thể lấy giá trị này bằng cách kết nối qua SSH tới primary autonomous edge với thông tin đăng nhập admin và chạy lệnh: `get certificate api thumbprint`&#x20;

<figure><img src="/files/fvoFitwrCyW2qBvDS1KK" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/s4SB9A3VXp7mnCKhrAmL" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bước 3**: Hoàn tất các bước còn lại của việc triển khai mẫu OVF để triển khai secondary autonomous edge (client L2 VPN on-premises).

<figure><img src="/files/rIOFLhgED1rQ5R6D0KE7" alt=""><figcaption></figcaption></figure>

Khởi động NSX Autonomous Edge thứ hai.
{% endstep %}

{% step %}
**Bước 4:** Validate:

Quá trình đồng bộ sẽ mất vài phút.

Đăng nhập vào cả hai node NSX Autonomous, kiểm tra High Availability, L2VPN

-Primary node:

<figure><img src="/files/Ay8bFTLJw6GNiU6XnJKg" alt=""><figcaption></figcaption></figure>

-Secondary node:

<figure><img src="/files/qfzB4ZsAfBfqwOfQEEeV" alt=""><figcaption></figcaption></figure>

-Port ID, Tunnel ID, các interfaces phải giống nhau trên cả hai node.

<figure><img src="/files/2qxEa2cUbliwFM0j01GU" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bước 5**: **Kiểm tra failover**:

Để kiểm tra failover của NSX Autonomous:

-Ping từ on-premises đến cloud HI GIO.

-Tắt NSX Autonomous primary node.

-Kết quả:

Trạng thái của NSX Autonomous secondary sẽ chuyển sang ACTIVE, L2 VPN = UP.

<figure><img src="/files/BMUP016W23e9h4FwfAdV" alt=""><figcaption></figcaption></figure>

Kết nối sẽ gián đoạn trong khoảng 5-10 giây.

<figure><img src="/files/mUds1wGpkqJlh68GT9Bu" alt=""><figcaption></figcaption></figure>

Sau khi khởi động lại primary node của NSX Autonomous, trạng thái HA giữa các node sẽ được tái thiết lập. Secondary node vẫn ở trạng thái active, và primary sẽ trở lại trạng thái active chỉ khi có thêm lỗi.

<figure><img src="/files/m9zRWcs2V3z9iQShBJUp" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.higiocloud.vn/hi-gio-user-guide-vn/hi-gio-draas/stretching-layer-2-networks-cho-hi-gios-draas/tuy-chon-trien-khai-nsx-autonomous-edge-thu-hai-o-che-do-ha-on-premises-site-..md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
