Updated on 2024-10-12 GMT+08:00

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 the second public NAT gateway. You need to add the default route (0.0.0.0/0) with the next hop set to the second public NAT gateway in the new route table you have created.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click Service List in the upper left corner. Under Networking, select Virtual Private Cloud.
  4. In the navigation pane on the left, choose Route Tables.
  5. In the route table list, click the name of the route table to which you want to add a route.
  6. Click Add Route and configure required parameters.

    You can click to add more routes.

    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 in the VPC.

    0.0.0.0/0

    Next Hop Type

    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.

    N/A

    Description

    (Optional) Supplementary information about the route

    Enter up to 255 characters. Angle brackets (<>) are not allowed.

    N/A

  7. Click OK.