All Products
Search
Document Center

Cloud Enterprise Network:Aggregate routes

更新時間:Sep 22, 2023

Enterprise Edition transit routers support aggregate routes. After you connect a virtual private cloud (VPC) to an Enterprise Edition transit router, you can aggregate multiple specific routes in the transit router route table that is associated with the VPC into one aggregate route. After route synchronization is enabled for the VPC, the aggregate route, instead of the specific routes, is automatically advertised to the VPC. Route aggregation reduces the number of routes and accelerates route synchronization.

Limits

  • Only Enterprise Edition transit routers support aggregate routes.

    If you add an aggregate route to an Enterprise Edition transit router, the transit router continues forwarding network traffic without being affected by the aggregate route.

  • Aggregate routes added to an Enterprise Edition transit router can be advertised only to VPCs that are connected to the Enterprise Edition transit router.

  • Aggregate routes cannot be aggregated into other aggregate routes.

    If you add an aggregate route whose destination CIDR block is 10.0.0.0/16 and another aggregate route whose destination CIDR block is 10.0.0.0/ to an Enterprise Edition transit router, the Enterprise Edition transit router advertises the aggregate route whose destination CIDR block is 10.0.0.0/16 to the VPCs. The aggregate route is not withdrawn even if 10.0.0.0/16 is a subnet of 10.0.0.0/8.

  • If an aggregate route has the same destination CIDR block as a route in a route table of the Enterprise Edition transit router, the aggregate route fails to be added to the Enterprise Edition transit router.

  • The aggregate routes that an Enterprise Edition transit router advertises to the VPCs consume the route quota on the VPC route tables.

    Each route table of a VPC supports at most 200 custom routes. You can request a quota increase on the Quota Management page in the VPC console or in the Quota Center console. For more information, see Manage VPN Gateway quotas and Submit an application to increase a quota.

  • The following table describes the limits on aggregate routes.

    Item

    Default quota

    Adjustable

    The maximum number of aggregate routes that you can add to a route table of an Enterprise Edition transit router

    20

    Not supported

Add an aggregate route

After you add an aggregate route to a route table of an Enterprise Edition transit router, the Enterprise Edition transit router advertises the aggregate route only to VPCs that are connected to the Enterprise Edition transit router and have route synchronization enabled.

Before you add an aggregate route, make sure that the VPCs meet the following requirements. Otherwise, the Enterprise Edition transit router fails to advertise the aggregate route to the VPCs.

After an aggregate route is advertised to the VPC route tables, the specific routes whose destination CIDR blocks fall into that of the aggregate route are withdrawn from the VPC route tables.

  1. Log on to the CEN console.

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

  3. Navigate to the Basic Settings > 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 left-side section, click the ID of the route table that you want to manage. On the details page of the transit router, click the Aggregate Route tab, and click Add Aggregate Route

  6. In the Add Aggregate Route dialog box, set the following parameters and click OK.

    Parameter

    Description

    Name

    Enter a name for the aggregate route.

    Destination CIDR Block

    Enter a destination CIDR block for the aggregate route.

    Route Type

    Select the type of the aggregate route. Default value: Static.

    Aggregate routes advertised to VPCs are custom routes by default. The next hops of the aggregate routes are the VPC connections.

    Destination Range

    Enter the scope of network instances to which the aggregate route is advertised. Valid value: VPC.

    After you add an aggregate route, it is automatically advertised to the VPCs that are in associated forwarding correlation with the Enterprise Edition transit router and have route synchronization enabled.

    Description

    Enter a description for the aggregate route.

    • After you add an aggregate route, you can click Details in the Status column to view the advertisement status and description of the route.

      If an aggregate route fails to be advertised, you can re-advertise it to the VPC route tables after you fix the issues. For information, see Re-advertise an aggregate route.

      Aggregate route advertisement details
    • After you add an aggregate route, you can view its status in the Status column on the Network Routes tab. Specific route advertisement details

Re-advertise an aggregate route

If an aggregate route fails to be advertised due to errors such as insufficient route quotas or route overlapping, you can fix the issues and re-advertise the aggregate route.

If the following solutions can fix the issues, the aggregate route is automatically advertised without manual operations.

  • Delete associated forwarding correlations

  • Disable route synchronization

  • Delete VPC route tables

  • Delete aggregate routes

  1. Log on to the CEN console.

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

  3. Navigate to the Basic Settings > 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 left-side section, click the ID of the route table that you want to manage.

  6. On the details page of the route table, click the Aggregate Route tab and find the aggregate route that you want to manage. Click Re-apply in the Actions column.

Modify an aggregate route

You cannot modify aggregate routes in the CEN console. However, you can adjust the destination CIDR block of the aggregate route.

  1. Add an aggregate route whose destination CIDR block is the one to which you want to adjust the existing aggregate route.

  2. Delete the existing aggregate route.

    • If the new aggregate router has a larger destination CIDR block than the existing aggregate route, the specific routes whose destination CIDR blocks fall into the destination CIDR block of the new aggregate route are withdrawn from the VPCs.

    • If the new aggregate route has a smaller destination CIDR block than the existing aggregate route, specific routes whose destination CIDR blocks fall outside the destination CIDR block of the new aggregate route are advertised to the VPCs.

      Warning

      If the new aggregate route has a smaller destination CIDR block than the existing aggregate route, specific routes are advertised to the VPCs. Pay attention to the route quota on the VPC route tables in case specific routes fail to be advertised to the VPCs due to insufficient route quotas. In this case, services may be interrupted.

Examples

The following figure shows how routes are processed when the destination CIDR block is resized.

Aggregate route - original CIDR block

Route Table A of an Enterprise Edition transit router is associated with VPC1, VPC2, and VPC3. Route Table A contains three routes whose destination CIDR blocks are 10.0.0.0/21, 10.0.0.0/24, and 10.0.1.0/24. If you add an aggregate route whose destination CIDR block is 10.0.0.0/22 and enable route synchronization for VPC1 and VPC2, the routes whose destination CIDR blocks are 10.0.0.0/22 and 10.0.0.0/21 are advertised to VPC1 and VPC2.

Increase the destination CIDR block of an aggregate route Aggregate route - larger CIDR block

If you need to increase the destination CIDR block of an aggregate route from 10.0.0.0/22 to 10.0.0.0/20, you can create a new aggregate route whose destination CIDR block is 10.0.0.0/20, and delete the existing aggregate route whose destination CIDR block is 10.0.0.0/22. Then, only the aggregate route whose destination CIDR block is 10.0.0.0/20 exists in the route tables of VPC1 and VPC2. The aggregate route whose destination CIDR block is 10.0.0.0/21 is withdrawn because it falls into 10.0.0.0/20.

Decrease the destination CIDR block of an aggregate routeAggregate route - smaller CIDR block

If you need to decrease the destination CIDR block of an aggregate from 10.0.0.0/20 to 10.0.0.0/23, you can create a new aggregate route whose destination CIDR block is 10.0.0.0/23, and delete the existing aggregate route whose destination CIDR block is 10.0.0.0/20. First, the aggregate route whose destination CIDR block is 10.0.0.0/21 is advertised to VPC1 and VPC2. Then, the aggregate route whose destination CIDR block is 10.0.0.0/20 is withdrawn. As a result, the aggregate route with a destination CIDR block of 10.0.0.0/21 and the aggregate route with a destination CIDR block of 10.0.0.0/23 both exist in the route tables of VPC1 and VPC2.

Delete an aggregate route

Warning

Before you delete an aggregate route, make sure that your network has a redundant route to prevent service interruptions.

After an aggregate route is deleted, it is automatically withdrawn from all VPCs. Then, specific routes whose destination CIDR blocks fall into that of the deleted aggregate route are advertised to the VPCs.

  1. Log on to the CEN console.

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

  3. Navigate to the Basic Settings > 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 left-side section, click the ID of the route table that you want to manage.

  6. On the details page of the route table, click the Aggregate Route tab and find the route that you want to manage. Click Delete in the Actions column.

  7. In the message that appears, confirm the information and click OK.

References