Updated on 2024-04-15 GMT+08:00

Adding a Custom Route

Scenarios

Each route table contains a default system route, which indicates that ECSs in a VPC can communicate with each other. You can also add custom routes as required to forward the traffic destined for the destination to the specified next hop.

Procedure

  1. Log in to the management console.
  1. Click in the upper left corner and choose Network > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  2. In the navigation pane on the left, choose Virtual Private Cloud > Route Tables.
  3. In the route table list, click the name of the route table to which you want to add a route.
  4. Click Add Route and set parameters as prompted.

    You can click + to add more routes.

    Table 1 Parameter descriptions

    Parameter

    Description

    Example Value

    Destination

    Mandatory

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

    NOTICE:
    • 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 192.168.0.1-192.168.0.62. You need to change 192.168.0.1-192.168.0.62 to 192.168.0.0/26.

    IPv4: 192.168.0.0/16

    Next Hop Type

    Mandatory

    Set the type of the next hop.

    VPC peering connection

    Next Hop

    Mandatory

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

    peer-AB

    Description

    Optional

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

    -

  5. Click OK.