All Products
Search
Document Center

ENS:Create and manage edge NAT gateways

Last Updated:Jun 20, 2026

Edge NAT gateways provide the network address translation feature to allow Edge Node Service (ENS) instances in virtual private clouds (VPCs) to access the Internet or provide services over the Internet.

Prerequisites

A VPC and a vSwitch are created on the corresponding node in the edge cloud.

Create an edge NAT gateway

  1. Log in to the Edge Node Service (ENS) console.

  2. In the left-side navigation pane, click NAT Gateways.

  3. Click Create NAT Gateway.

  4. On the page that appears, configure the parameters. The following table describes the parameters.

    Parameter

    Description

    Instance Name

    The name of the NAT gateway.

    Instance Type

    Select an instance type from the drop-down list.

    Region

    • Node: the edge node on which you want to create the NAT gateway.

    • Quantity: the number of NAT gateways.

    • Network ID/Name: the VPC to which the node belongs.

    • vSwitch ID/vSwitch Name: the vSwitch that corresponds to the node.

    Note

    You can create NAT gateways on multiple edge nodes at the same time in the console.

  5. Click Confirm.

Associate an EIP

Note

Before you associate an elastic IP address (EIP) with a NAT gateway, make sure that you have created an edge NAT gateway.

  1. Log in to the Edge Node Service (ENS) console.

  2. In the left-side navigation pane, click NAT Gateways.

  3. On the NAT Gateways page, find the target edge NAT gateway instance. In the Actions column, click the image icon and select Associate Public IP Address.

  4. In the Associate Public IP Address dialog box, select an existing EIP from the drop-down list.

  5. Click OK.

Disassociate an EIP

Note

Make sure that the EIP to be disassociated is not used in any SNAT entry or DNAT entry. If the EIP is used in an SNAT or DNAT entry, delete the SNAT or DNAT entry first.

  1. Log in to the Edge Node Service (ENS) console.

  2. In the left-side navigation pane, choose Network Management > Edge EIPs.

  3. On the Edge EIP page, find the target EIP and click Unbind in the Actions column.

  4. In the confirmation dialog box, click OK.

Delete an edge NAT gateway

Note

Before you delete a NAT gateway, make sure that the following requirements are met:

  • No EIP is associated with the edge NAT gateway. If an EIP is associated with the NAT gateway, disassociate the EIP from the NAT gateway.

  • The DNAT table does not contain DNAT entries. If the DNAT table contains DNAT entries, delete the DNAT entries.

  • The SNAT table does not contain SNAT entries. If the SNAT table contains SNAT entries, delete the SNAT entries.

  1. Log in to the Edge Node Service (ENS) console.

  2. In the left-side navigation pane, click NAT Gateways.

  3. On the NAT Gateways page, find the target edge NAT gateway instance and click Delete in the Actions column.

  4. In the confirmation dialog box, click OK.