Custom route tables

更新时间:
复制 MD 格式

Enterprise Edition transit routers support custom route tables. After you create a custom route table, you can associate network instance connections with it. The transit router then forwards traffic from the network instances by querying the custom route table. You can add custom routes, attach prefix lists, and create aggregate routes in the custom route table to flexibly control traffic.

Background

When you create a transit router, the system automatically creates a system (default) route table. Enterprise Edition transit routers also support custom route tables, while Basic Edition transit routers do not. For information about how to view the edition of a transit router, see View the edition of a transit router instance.

The system route table and custom route tables of an Enterprise Edition transit router are isolated from each other. The following list describes the two types of route tables:

  • The system automatically creates a system route table when you create a transit router instance.

  • You must manually create a custom route table. A custom route table is similar to a virtual routing and forwarding (VRF) instance on a traditional router. It is isolated from the system route table and other custom route tables to provide access isolation.

    After you connect a network instance to a transit router, you can associate the network instance connection with a custom route table by configuring associated forwarding. After the configuration is complete, the transit router forwards traffic from the network instance by looking up routes in the custom route table. You can customize network connectivity by adding custom routes, attaching prefix lists, and creating aggregate routes within the table.

Create a custom route table

  1. Log on to the CEN console.

  2. On the CEN Instance page, click the ID of the CEN instance that you want to manage.

  3. Go to the Basic Information > Transit Router tab and click the ID of the transit router that you want to manage.

  4. On the details page of the transit router, click the Route Table tab.

  5. In the navigation pane on the left, click Create Route Table. In the Create Route Table dialog box, configure the parameters and click OK.

    Parameter

    Description

    Transit Router

    Select the target transit router.

    The system automatically displays the ID of the selected transit router.

    Name

    Enter a name for the custom route table.

    Description

    Enter a description for the custom route table.

    Tag

    Add a tag to the custom route table.

    • Tag key: Cannot be an empty string. The key can be up to 64 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://.

    • Tag value: Can be an empty string. The value can be up to 128 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://.

    You can add multiple tags to a custom route table. For more information about tags, see Tags.

    Multi-region ECMP Routing

    Specifies whether to enable multi-region ECMP routing for routes learned from virtual border routers (VBRs). This feature is disabled by default.

    If an Enterprise Edition transit router learns routes with the same destination CIDR block from multiple VBRs, and all other route attributes are identical, the system by default forwards traffic to the VBR in the alphabetically first region. If you enable this feature, the transit router treats these as equal-cost routes and uses equal-cost multipath (ECMP) to distribute traffic among them. For more information, see Multi-region VBR equal-cost routing.

    To enable this feature, click the switch. In the dialog box that appears, carefully read the risk notice and click OK.

View route tables: Enterprise Edition transit router

  1. Log on to the CEN console.

  2. On the CEN Instance page, click the ID of the CEN instance that you want to manage.

  3. Go to the Basic Information > Transit Router tab and click the ID of the transit router that you want to manage.

  4. On the details page of the transit router, click the Route Table tab.

  5. In the navigation pane on the left, click the ID of the target route table.

  6. On the route table details page, you can view the following information:

View route tables: Basic Edition transit router

  1. Log on to the CEN console.

  2. On the CEN Instance page, click the ID of the CEN instance that you want to manage.

  3. Go to the Basic Information > Transit Router tab and click the ID of the transit router that you want to manage.

  4. On the details page of the transit router, click the Route Table tab to view the following information.

Delete a custom route table

You can delete a custom route table if it is no longer needed for access isolation. You cannot delete the system route table of a transit router. Before you delete a custom route table, ensure that the following conditions are met:

  1. Log on to the CEN console.

  2. On the CEN Instance page, click the ID of the CEN instance that you want to manage.

  3. Go to the Basic Information > Transit Router tab and click the ID of the transit router that you want to manage.

  4. On the details page of the transit router, click the Route Table tab.

  5. In the navigation pane on the left, click the ID of the target custom route table.

  6. In the Route Table Details section, click Delete.

  7. In the Delete Route Table dialog box, click OK.

API reference