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

Adding Routes to a Route Table


Each route table comes with a default route, which is used to allow instances in a subnet to access public services on the cloud or different subnets in a VPC to communicate with each other. You can also add custom routes as required to control traffic routing.


  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Virtual Private Cloud > Route Tables.

    The route table list is displayed.

  4. Locate the target route table and click its name.

    The route table details page is displayed.

  5. Click Add Route and set parameters as prompted.

    You can click to add more routes.

    Table 1 Parameter descriptions



    Example Value

    Destination Type


    The destination type can only be IP address. You can set an IP address or network segment.

    IP address



    Enter the destination of the route. You can enter a single IP address or an IP address range in CIDR notation.

    • The destination of each route in a route table must be unique.
    • If an IP address group contains an IP address range in the format of Start IP address-End IP address, the IP address group is not supported.

      For example, an IP address group cannot contain You need to change to


    Next Hop Type


    Set the type of the next hop.


    When you add or modify a custom route in a default route table, the next hop type of the route cannot be set to VPN gateway, Direct Connect gateway, or Cloud connection.

    VPC peering connection

    Next Hop


    Set the next hop. The resources in the drop-down list box are displayed based on the selected next hop type.




    Enter the description of the route in the text box as required.


  6. Click OK.

    You can view the new routes in the route list.