Enterprise Edition transit routers support custom routes. You can add a static route or a black hole route to a specified route table. This allows you to manage network traffic in a flexible manner.

Background information

An Enterprise Edition transit router is used. For more information about how to check the edition of a transit router, see View the edition of a transit router.

Add a custom route to a route table of an Enterprise Edition transit router

  1. Log on to CEN console.
  2. On the Instances page, find the CEN instance that you want to manage and click its ID.
  3. On the Basic Information > Transit Router tab, find the transit router in the target region and click the ID of the target transit router.
  4. On the details page of the transit router instance, click the Transit Router Route Table tab.
  5. In the left-side section, click the route table ID. On the Route Entry tab of the details page, click Add Route Entry.
  6. In the Add Route Entry dialog box, set the following parameters and click OK.
    Parameter Description
    Route Table By default, the current route table is selected.
    Transit Router By default, the current transit router is selected.
    Name Enter a name for the route.

    The name must be 0 to 128 characters in length. letters, digits, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (_), and hyphens (-)..

    Destination CIDR Enter the destination CIDR block of the route. Example: 192.168.1.0/24.
    Blackhole Route
    • Yes: specifies that the route is a black hole route. All traffic destined for this route is dropped.
    • No: specifies that the route is not a black hole route. In this case, you must specify the next hop of the route.
    Next Hop Specify the next hop.
    Description Enter a description for the route.

    The description must be 2 to 256 characters in length. letters, digits, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (_), and hyphens (-)..

View routes of an Enterprise Edition transit router

  1. Log on to CEN console.
  2. On the Instances page, find the CEN instance that you want to manage and click its ID.
  3. On the Basic Information > Transit Router tab, find the transit router in the target region and click the ID of the target transit router.
  4. On the details page of the transit router instance, click the Transit Router Route Table tab.
  5. In the left-side section, click the route table ID.
  6. On the Route Entry tab of the route table details page, you can view the following information about routes in the current route table.
    Parameter Description
    Name Displays the name and ID of the route.

    You can click the Edit icon to enter a name for the route or modify its name.

    The name must be 0 to 128 characters in length. letters, digits, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (_), and hyphens (-)..

    Destination CIDR Block Displays the destination CIDR block of the route.
    Next Hop Displays the network instance that is specified as the next hop of the route.
    Type Displays the type of the next hop.
    • Network Instance: indicates that the next hop of the route is a network instance connection.
    • Blackhole: indicates that the route is a black hole route.

      All traffic destined for this route is dropped.

    Route Type Displays the route type. Valid values:
    • Propagated Routes: indicates that the route is a route learned by the transit router.
    • Static Routes: indicates that the route is a custom route.
    Route Status Displays the status of the route. Valid values:
    • Available: indicates that the route is available.
    • Rejected: indicates that the route matches a routing policy of the route table and is unavailable.
    • Candidate: indicates that the route is a standby route. When the active route is unavailable, traffic can be transmitted through the standby route.
    Description Displays the description of the route.

    You can click the Edit icon to enter a description for the route or modify its description.

    The description must be 2 to 256 characters in length. letters, digits, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (_), and hyphens (-)..

View routes of a Basic Edition transit router

  1. Log on to CEN console.
  2. On the Instances page, find the CEN instance that you want to manage and click its ID.
  3. On the Basic Information > Transit Router tab, find the transit router in the target region and click the ID of the target transit router.
  4. On the details page of the transit router instance, click the Transit Router Route Table tab.
  5. On the Route Entry tab, view the routes in the current region.
    Parameter Description
    Destination CIDR block Displays the destination CIDR block of the route.
    Next Hop Displays the network instance that is specified as the next hop of the route.
    Type Displays the type of the network instance that is specified as the next hop of the route.
    • CCN: indicates that the route is advertised from a Cloud Connect Network (CCN) instance.
    • VPC: indicates that the route is advertised from a virtual private cloud (VPC).
    • VBR: indicates that the route is advertised from a virtual border router (VBR).
    • local_service: indicates that the route is a system route.
    Route Type Displays the route type. Valid values:
    • CEN: indicates that the route is a route learned by the transit router
    • Custom: indicates that the route is a custom route.
    • System: indicates that the route is a system route that is automatically added.
    Status Displays the status of the route. Valid values:
    • Available: indicates that the route is available.
    • Rejected: indicates that the route matches a routing policy of the route table and is unavailable.
    • Candidate: indicates that the route is a standby route. When the active route is unavailable, traffic can be transmitted through the standby route.
    Route Map Displays the routing policy that the route matches.

    If the route matches a routing policy, you can click details to view details about the routing policy.

    Route Property Displays the attributes of the route.

    You can click details to view the attributes of the route, such as the AS path, community value, and priority.

    Region Out Route Map Displays the routing policy that the route matches to forward packets to other regions.
    Region Out Status Displays the status of the route that forwards packets to other regions.

Delete a custom route from a route table of an Enterprise Edition transit router

  1. Log on to CEN console.
  2. On the Instances page, find the CEN instance that you want to manage and click its ID.
  3. On the Basic Information > Transit Router tab, find the transit router in the target region and click the ID of the target transit router.
  4. On the details page of the transit router instance, click the Transit Router Route Table tab.
  5. In the left-side section, click the route table ID.
  6. On the Route Entry tab of the route table details page, find the route that you want to delete and click Delete in the Actions column.
  7. In the Delete Route Entry message, confirm the information and click OK.

References