After you connect a network instance to an Enterprise Edition transit router, you can create an associated forwarding correlation to associate the network instance with a route table of the Enterprise Edition transit router. Then, the Enterprise Edition transit router queries the route table to forward network traffic for the network instance.
Limits
Only route tables of Enterprise Edition transit routers support associated forwarding correlations. For more information about how to query the edition of a transit router, see View the edition of a transit router.
Each network instance can be associated only with one route table of an Enterprise Edition transit router.
Background information
The preceding figure shows how transit routers work. In this example, the transit router in the China (Hangzhou) region is connected to VPC1 and VPC2. The VPC1 connection is associated with Route Table A, and the VPC2 connection is associated with Route Table B. A client in VPC1 wants to access a server in VPC2. The IP address of the server falls into the CIDR block 10.1.1.0/24. The following table shows the process.
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
The current route table is selected by default.
Transit Router
The current transit router is selected by default.
Association
Select the network instance connection that you want to associate with the route table.
The transit router queries the selected route table to forward network traffic for the network instance.
Delete an associated forwarding correlation
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 that you want to manage 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 on an Enterprise Edition transit router.
DissociateTransitRouterAttachmentFromRouteTable: deletes an associated forwarding correlation.