Route synchronization
After a network instance connection is created, you can enable route synchronization to propagate route entries from the associated transit router route table to the network instance route table, so that the network instance can learn the routes of other network instances and enable interconnectivity.
Route synchronization mechanism
Enterprise Edition transit router
When you create a network instance connection on an Enterprise Edition transit router without enabling route synchronization, the Enterprise Edition transit router does not propagate any route entries to the network instance. Enable route synchronization for the network instance connection so that the Enterprise Edition transit router automatically propagates route entries to the route tables of the network instance.
When creating a VPC connection, if you select Auto-add transit router routes to all VPC route tables under Advanced Settings, three route entries, 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16, are automatically configured in all route tables of the VPC, with the next hop pointing to the VPC connection, to direct the IPv4 traffic of the VPC into the transit router. If these three route entries meet your network connectivity requirements, you do not need to enable route synchronization for the VPC connection.
Route synchronization for Enterprise Edition transit routers has the following characteristics:
IPv4 and IPv6 route synchronization is supported. IPv6 route synchronization requires that IPv6 forwarding be enabled for the transit router first.
Route synchronization is disabled by default and must be enabled manually.
Route synchronization is configured at the network instance connection granularity (you can enable or disable it separately for VPC, ECR, VBR, IPsec-VPN, and inter-region connections).
After route synchronization is enabled for a network instance connection, the mechanism works as follows:
VPC — After route synchronization is enabled for a VPC connection, the Enterprise Edition transit router automatically synchronizes routes from the transit router route table associated with the VPC connection to all route tables of the VPC.
ECR — After route synchronization is enabled for an Express Connect Router (ECR) connection, the Enterprise Edition transit router automatically synchronizes routes from the transit router route table associated with the ECR connection to the route table of the ECR instance.
If you configured route prefixes for the transit router in the EC console, the system propagates only route prefixes to the ECR instance instead of all routes from the transit router route table. For more information, see Create and manage an ECR.
VBR — After route synchronization is enabled for a VBR connection, the Enterprise Edition transit router automatically synchronizes routes from the transit router route table associated with the VBR connection to the route table of the VBR instance.
IPsec connection — After route synchronization is enabled for an IPsec-VPN connection, the Enterprise Edition transit router automatically synchronizes routes from the transit router route table associated with the IPsec-VPN connection to the BGP route table of the IPsec connection. Route synchronization takes effect only when the IPsec connection runs the BGP dynamic routing protocol.
Inter-region connection — After route synchronization is enabled for an inter-region connection, the local Enterprise Edition transit router automatically synchronizes routes from the transit router route table associated with the inter-region connection to the peer Enterprise Edition transit router.
Basic Edition transit router
After a network instance connection is created on a Basic Edition transit router, the Basic Edition transit router automatically synchronizes the IPv4 route entries in its system route table to all route tables of the network instance (including the system route table and custom route tables). This synchronization behavior is enabled by default and cannot be disabled. Route synchronization for Basic Edition transit routers has the following characteristics:
Only IPv4 route synchronization is supported; IPv6 route synchronization is not supported.
Route synchronization is always enabled and cannot be configured in the console.
The synchronization scope is the route entries in the transit router system route table.
Route synchronization behavior between transit router and VPC by transit router edition
Route synchronization behavior differs between Basic Edition transit routers and Enterprise Edition transit routers. The following tables list the support status and default behavior for synchronizing routes from a transit router to a VPC.
Route synchronization from an Enterprise Edition transit router to a VPC
VPC route table type | Route entry IP version | Synchronization supported | Default behavior |
System route table | IPv4 | Yes | Synchronization disabled (must be manually enabled) |
IPv6 | Yes | Synchronization disabled (must be manually enabled after IPv6 support is enabled for the transit router) | |
Custom route table | IPv4 | Yes | Synchronization disabled (must be manually enabled) |
IPv6 | Yes | Synchronization disabled (must be manually enabled after IPv6 support is enabled for the transit router) |
Route synchronization from a Basic Edition transit router to a VPC
VPC route table type | Route entry IP version | Synchronization supported | Default behavior |
System route table | IPv4 | Yes | Synchronization enabled (always on, not configurable) |
IPv6 | No | — | |
Custom route table | IPv4 | Yes | Synchronization enabled (always on, not configurable) |
IPv6 | No | — |
Limitations
Route synchronization for Basic Edition transit routers is always enabled and cannot be manually disabled. The following limitations apply only to route synchronization for Enterprise Edition transit routers.
For a VPC that is connected to multiple Enterprise Edition transit routers, route synchronization can be enabled on only one VPC connection.
If a VPC is connected to a Basic Edition transit router and simultaneously connected to an Enterprise Edition transit router, route synchronization cannot be enabled on the connection to the Enterprise Edition transit router.
If a VPC is associated with a VPN gateway (in a scenario where an IPsec connection is associated with the VPN gateway) and the VPN gateway has automatic route propagation enabled, route synchronization cannot be enabled for connections of that VPC. If automatic route propagation is not enabled on the VPN gateway, route synchronization can be enabled for connections of the VPC.
After route synchronization is enabled, routes synchronized from an Enterprise Edition transit router to a network instance cannot be deleted on the network instance side.
Routes synchronized from an Enterprise Edition transit router to a VPC consume the custom route entry quota of the VPC route table.
By default, a single route table in a VPC supports up to 200 custom route entries. You can increase this quota on the VPC quota management page or in Quota Center.
Resource limit related to route synchronization:
Resource
Default limit
Adjustable
Maximum number of VPCs with route synchronization enabled per Enterprise Edition transit router
50
No
Enable route synchronization
The following operations apply only to Enterprise Edition transit routers. For a Basic Edition transit router, route synchronization is enabled automatically and requires no configuration.
You can enable route synchronization when you create a network instance connection, or enable it separately after the connection is created.
Prerequisites
Route table association — Before you enable route synchronization separately for a network instance connection, make sure that the network instance connection is associated with an Enterprise Edition transit router route table.
IPv6 forwarding — For an Enterprise Edition transit router, IPv6 route synchronization requires that IPv6 forwarding is enabled on the transit router. Enable IPv6 forwarding on the transit router before you enable IPv6 route synchronization.
Enable route synchronization when you create a network instance connection
ECR — When you create an ECR connection, the system automatically enables Automatically Advertise Routes to ECR in Advanced Settings for the ECR. This option cannot be disabled.
IPsec connection — When you create an IPsec-VPN connection, select Automatically Advertise Routes to VPN in Advanced Settings to enable route synchronization for the IPsec-VPN connection.
VBR — When you create a VBR connection, select Propagate Routes to VBR in Advanced Settings to enable route synchronization for the VBR connection.
Inter-region connection — When you create an inter-region connection, select Automatically Advertise Routes to Peer Region in Advanced Settings to enable route synchronization for the inter-region connection.
For VPCs, you can only enable route synchronization separately after the VPC connection to the Enterprise Edition transit router is created.
Enable route synchronization separately for a network instance connection
Choose a method based on the network instance type:
Network instance type | Supported method |
VPC | Method 1 |
VBR | Method 1 or Method 2 |
IPsec connection | Method 1 or Method 2 |
Inter-region connection | Method 2 |
Method 1: From the connection list
Log on to the CEN console.
On the CEN Instance page, find the target CEN instance and click the instance ID.
On the Basic Information > Transit Router tab, find the target transit router and click the transit router instance ID.
On the Intra-Region Connections tab, find the target network instance connection and enable route synchronization in the Route Synchronization column.
After route synchronization is enabled, the Enterprise Edition transit router automatically synchronizes routes to the network instance. You can click Details in the Route Synchronization column to go to the Network Instance Route Table tab to view the route synchronization status.
Method 2: From the connection details page
Log on to the CEN console.
On the CEN Instance page, find the target CEN instance and click the instance ID.
On the Basic Information > Transit Router tab, find the target transit router and click the transit router instance ID.
On the transit router details page, find the VBR connection, IPsec-VPN connection, or inter-region connection and click the network instance connection ID.
Click the Intra-Region Connections tab and find the VBR or IPsec-VPN connection.
Click the Inter-Region Connections tab and find the inter-region connection.
In the Basic Information section of the Attachment Details panel, click Enable next to Automatic Route Advertisement.
In the Enable Automatic Route Advertisement dialog box, click OK.
Disable route synchronization
The following operations apply only to Enterprise Edition transit routers. Route synchronization for Basic Edition transit routers cannot be disabled.
After route synchronization is disabled, the Enterprise Edition transit router automatically withdraws the routes that have been synchronized to the network instance. Therefore, before disabling route synchronization, make sure that redundant routes exist in your network. Otherwise, disabling route synchronization may cause service interruption.
When you create a VPC connection, if you have allowed the system to configure three route entries, 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16, in all route tables of the VPC, these three route entries are not withdrawn after route synchronization is disabled for the VPC connection.
Choose a method based on the network instance type:
Network instance type | Supported method |
VPC | Method 1 |
VBR | Method 1 or Method 2 |
IPsec connection | Method 1 or Method 2 |
Inter-region connection | Method 2 |
Method 1: From the connection list
Log on to the CEN console.
On the CEN Instance page, find the target CEN instance and click the instance ID.
On the Basic Information > Transit Router tab, find the target transit router and click the transit router instance ID.
On the Intra-Region Connections tab, find the target network instance connection and disable route synchronization in the Route Synchronization column.
Method 2: From the connection details page
Log on to the CEN console.
On the CEN Instance page, find the target CEN instance and click the instance ID.
On the Basic Information > Transit Router tab, find the target transit router and click the transit router instance ID.
On the transit router details page, find the VBR connection, IPsec-VPN connection, or inter-region connection and click the network instance connection ID.
Click the Intra-Region Connections tab and find the VBR or IPsec-VPN connection.
Click the Inter-Region Connections tab and find the inter-region connection.
In the Basic Information section of the Attachment Details panel, click Disabled next to Automatic Route Advertisement.
In the Disable Automatic Route Advertisement dialog box, click OK.