Step 6: Add the Default Route
Scenarios
If the VPC already has one or more NAT gateways configured, a route table must be created for this gateway and you need to add the default route (0.0.0.0/0) with next hop set to the NAT gateway to the route table.
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 Virtual Private Cloud.
- In the navigation pane on the left, choose Route Tables.
- In the route table list, click the name of the route table to which you want to add a route.
- Click Add Route and set parameters as prompted.
You can click + to add more routes.
Figure 1 Add Route
Table 1 Parameter descriptions Parameter
Description
Example Value
Destination
The destination CIDR block.
The destination of each route must be unique. The destination cannot overlap with any subnet CIDR block in the VPC.
0.0.0.0/0
Next Hop Type
Set the type of the next hop.
NAT gateway
Next Hop
Set the next hop. The resources in the drop-down list box are displayed based on the selected next hop type.
-
Description
Supplementary information about the route. This parameter is optional.
The description can contain up to 255 characters but cannot contain angle brackets (< or >).
-
- Click OK.
Last Article: Step 5: Buy a Public NAT Gateway
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.