Updated on 2022-08-16 GMT+08:00

Step 3: Create 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 available from the Internet.

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. Click Service List in the upper left corner. Under Networking, select NAT Gateway.
  3. On the displayed page, click Create Public NAT Gateway.
  4. Configure the parameters as prompted. For details, see Table 1.
    Table 1 Parameter descriptions of a public NAT gateway

    Parameter

    Description

    Region

    The region where the NAT gateway is located.

    Name

    The name of the NAT gateway. The name can contain a maximum of 64 characters and only digits, letters, underscores (_), and hyphens (-) are allowed.

    VPC

    The VPC that the NAT gateway belongs to. 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

    The subnet of the VPC that the NAT gateway belongs to.

    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

    The type of the NAT gateway.

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

    Enterprise Project

    The enterprise project that the NAT gateway belongs to. 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, enterprise project default will be used.

    Description

    Supplementary information about the NAT gateway. The description can contain up to 255 characters.

  5. Click Create Now. Confirm the NAT gateway information on the displayed page.
  6. If you do not need to modify the information, click Submit.

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

  7. In the NAT gateway list, view the NAT gateway status.