Updated on 2026-04-16 GMT+08:00

Step 6: Add the Default Route

Scenarios

If a VPC already has one or more NAT gateways, a route table must be created for the second public NAT gateway. You need to add a route destined for 0.0.0.0/0 and set the next hop to the second public NAT gateway to the new route table.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. In the upper left corner of the page, click to expand the service list and choose Networking > 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 Type

    Mandatory.

    The destination type can only be IP address. You can set an IP address or CIDR block.

    IP address

    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

    Type of the next hop.

    NAT gateway

    Next Hop

    The next hop. The resources in the drop-down list 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.