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
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project. - 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.
- Click Buy Private NAT Gateway. Figure 1 Buy Private NAT Gateway
- 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.
- Click Buy Now.
- In the private NAT gateway list, you can see the gateway status.
- On the Private NAT Gateway page, click Transit Subnets and then Create Transit Subnet. Figure 2 Create Transit Subnet
- 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.
- 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
- Set Assignment Mode to Automatic and click OK.
Last Article: Step 2: Create a Direct Connect Connection
Next Article: Step 4: Add an SNAT Rule
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.