Updated on 2024-03-30 GMT+08:00

Step 5: Add a Route

Scenarios

After the private NAT gateway is configured, add a route in the route table of the service VPC to point to the private NAT gateway.

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 Network, 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 associated the service VPC.
  6. Click Add Route and configure required parameters.
    Table 1 Parameter descriptions

    Parameter

    Description

    Destination

    The destination CIDR block

    Set it to the CIDR block used by your on-premises data center.

    Next Hop Type

    Set it to NAT gateway.

    Next Hop

    Set Next Hop to the private NAT gateway.

    Description

    (Optional) Supplementary information about the route

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

  7. Click OK.