Step 3: Create a Private NAT Gateway

Scenarios

If you want to connect the service VPC to the transit VPC, you need to create a private NAT gateway.

Prerequisites

You have determined the private CIDR block in the transit VPC for performing NAT for resources in the service VPC.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. On the console homepage, under Network, click NAT Gateway. In the navigation pane on the left, choose Private NAT Gateway.

    The private NAT gateway console is displayed.

  4. Click Buy Private NAT Gateway.
    Figure 1 Buy Private NAT Gateway
  5. Set the parameters as prompted. For details, see Table 1.
    Table 1 Parameter descriptions

    Parameter

    Description

    Region

    The region where the private NAT gateway is located.

    Billing Mode

    Private NAT gateways are free during the OBT.

    Name

    The name of the private NAT gateway. The name can include up to 64 characters and can include digits, letters, underscores (_), and hyphens (-).

    VPC

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

    The selected VPC cannot be changed after the private NAT gateway is created.

    Subnet

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

    The subnet must have at least one available IP address.

    The selected subnet cannot be changed after the private NAT gateway is created.

    Type

    The type of the private 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.

    Description

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

  6. Click Buy Now.
  7. In the private NAT gateway list, you can see the gateway status.
  8. On the Private NAT Gateway page, click Transit Subnets and then Create Transit Subnet.
    Figure 2 Create Transit Subnet
  9. Set the parameters as prompted. For details, see Table 2.
    Table 2 Parameter descriptions

    Parameter

    Description

    Name

    The transit subnet name. The name can include up to 64 characters and can include digits, letters, underscores (_), and hyphens (-).

    VPC

    The transit VPC.

    Subnet

    A subnet in the transit VPC.

    The subnet must have at least one available IP address.

    Description

    Supplementary information about the transit subnet. The description can contain up to 255 characters.

  10. In the transit subnet list, click the name of the created transit subnet.

    On the displayed page, click Assign Transit IP Address.

    Figure 3 Assign Transit IP Address
  11. Set Assignment Mode to Automatic and click OK.