After you connect a network instance to a transit router, you can create an associated forwarding correlation to associate the network instance connection with a route table. After you configure an associated forwarding correlation, the transit router forwards the traffic of the network instance based on the route table.
Prerequisites
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.
Background information

No. | Description |
① | A server in VPC1 initiates a request to a server in VPC2. The IP address of the server in VPC2 falls into the CIDR block 10.1.1.0/24. |
② | The VPC1 connection is associated with Route Table A. After the transit router receives the request from VPC1, the transit router queries whether Route Table A contains a route that points to the CIDR block 10.1.1.0/24.
|
③ | The transit router queries the information about the route that points to 10.1.1.0/24 in Route Table A and forwards the request to VPC2. |
④ | The VPC2 connection receives the request and returns an echo reply packet to VPC1. |
⑤ | The VPC2 connection is associated with Route Table B. After the transit router receives the echo reply packet from VPC2, the transit router queries whether Route Table B contains a route that points to 192.168.1.0/24.
|
⑥ | The transit router queries the information about the route that points to 192.168.1.0/24 in Route Table B and forwards the echo reply packet to VPC1. |
Create an associated forwarding correlation
- Log on to the CEN console.
- On the Instances page, click the ID of the CEN instance that you want to manage.
- Navigate to the tab and click the ID of the transit router that you want to manage.
- On the details page of the transit router, click the Route Table tab.
- In the left-side section, click the ID of the route table that you want to manage. On the details page of the route table, click the Route Table Association tab.
- On the Route Table Association tab, click Create Association. In the Add Association 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. Association Select the network instance connection that you want to associate with the route table. Then, the transit router forwards network traffic based on the associated route table.
Delete an associated forwarding correlation
Warning
- After the associated forwarding correlation between a network instance and a transit router route table is deleted, the network instance can no longer use the transit router to communicate with other networks. Proceed with caution.
- If route synchronization is enabled for the network instance, the routes are automatically withdrawn from the network instance after the associated forwarding correlation is deleted.
- Log on to the CEN console.
- On the Instances page, click the ID of the CEN instance that you want to manage.
- Navigate to the tab and click the ID of the transit router that you want to manage.
- On the details page of the transit router, click the Route Table tab.
- In the left-side section, click the ID of the route table that you want to manage. On the details page of the route table, click the Route Table Association tab.
- On the Route Table Association tab, find the network instance connection and click Delete in the Actions column.
- In the Delete Association message, confirm the information and click OK.
References
- AssociateTransitRouterAttachmentWithRouteTable: creates an associated forwarding correlation.
- ListTransitRouterRouteTableAssociations: queries associated forwarding correlations in a route table of an Enterprise Edition transit router.
- DissociateTransitRouterAttachmentFromRouteTable: deletes an associated forwarding correlation.