nav-img
Advanced

Creating a Custom Route Table

Scenarios

A VPC automatically comes with a default route table. If the default route table cannot meet your service requirements, you can create a custom route table and associate subnets with it to control traffic in and out of the subnets.

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 upper right corner, click Create Route Table. On the displayed page, configure parameters as prompted.
    Table 1 Parameter descriptions

    Parameter

    Description

    Example Value

    Name

    (Mandatory) The name of the route table. The name:

    • Can contain 1 to 64 characters.
    • Can contain letters, digits, underscores (_), hyphens (-), and periods (.).

    rtb-001

    VPC

    (Mandatory) The VPC that the route table is used to control traffic routing. The route table can be associated with the subnets in this VPC.

    vpc-001

    Description

    (Optional) Supplementary information about the route table.

    The description can contain a maximum of 255 characters and cannot contain angle brackets (< or >).

    -

    Route Settings

    (Optional) The route information. You can add a route when creating the route table or after the route table is created. For details, see Adding Routes to a Route Table.

    You can click to add more routes.

    -

  4. Click OK.

    A message is displayed. You can determine whether to associate the route table with subnets immediately. If you want to associate immediately, perform the following operations:

    1. Click Associate Subnet. The Associated Subnets page is displayed.
    2. Click Associate Subnet and select the target subnets to be associated.
    3. Click OK.