Updated on 2022-01-25 GMT+08:00

Creating a NAT Gateway

Scenarios

This section guides you on how to create a public NAT gateway to enable your servers to access the Internet or to provide services for external networks.

Prerequisites

  • When creating a public NAT gateway, you must specify its VPC, subnet, and type.
  • Ensure that the VPC does not have the default route.

Procedure

  1. Log in to the management console.
  2. Under Network, click NAT Gateway.
  3. On the displayed page, click Create Public NAT Gateway.
    Figure 1 Create Public NAT Gateway
  4. Set the parameters as prompted. For details, see Table 1.
    Table 1 Parameter description

    Parameter

    Description

    Region

    Specifies the region where the NAT gateway is located.

    Name

    Specifies the name of the NAT gateway. The value is a string of 1 to 64 characters consisting of digits, letters, underscores (_), and hyphens (-).

    VPC

    Specifies the VPC to which the NAT gateway belongs. Select a VPC which is not used by any other NAT gateways and has no default route.

    You can change the VPC only when you are creating the NAT gateway. After the NAT gateway is created, you cannot modify the VPC.

    Subnet

    Specifies the subnet of the VPC to which the NAT gateway belongs.

    The subnet must have at least one available IP address.

    You can change the subnet only when you are creating the NAT gateway. After the NAT gateway is created, you cannot change the subnet.

    Type

    Specifies the type of the NAT gateway.

    The value can be Small, Medium, Large, and Extra-large. You can click Learn more on the page to view details about each type.

    Enterprise Project

    Specifies the enterprise project to which the NAT gateway belongs. If an enterprise project is configured for a NAT gateway, the NAT gateway belongs to this enterprise project. If you do not specify an enterprise project, the default enterprise project will be used.

    Description

    Provides supplementary information about the NAT gateway. The description can contain a maximum of 255 characters.

  5. Click Create Now. The page for you to confirm the NAT gateway specifications is displayed.
  6. If you do not need to modify the information, click Submit.

    It takes 1 to 5 minutes to create a NAT gateway.

  7. On the NAT Gateway homepage, check the NAT gateway status.