The method to synchronize with on-premises routes setting determines how your Smart Access Gateway (SAG) instance learns routes from your on-premises network. This setting enables the SAG instance to discover the private CIDR blocks of your on-premises network and automatically advertise them to Alibaba Cloud.
Procedure
Log on to the SAG console.
In the top navigation bar, select the region.
- On the SAG page, find the target SAG instance and use one of the following methods to open the Network Configuration tab:
- Click the ID of the target instance. On the instance details page, click the Network Configuration tab.
- In the Operation column, click Network Configuration.
- In the left-side navigation pane of the Network Configuration tab, click Method to Synchronize with On-premises Routes.
- On the Method to Synchronize with On-premises Routes tab, configure the route synchronization method.
- Static Routing (Default): The SAG instance does not automatically learn the private CIDR blocks of your on-premises network. You must manually specify the private CIDR blocks. After you specify these CIDR blocks, the SAG instance advertises them to Cloud Connect Network (CCN).
Click Add Static Route. In the Add Static Route dialog box, specify the on-premises private CIDR block to advertise to Alibaba Cloud, and then click OK.
Note- The prefix length of a private CIDR block must be from 8 to 32 bits, depending on the network to which the private IP address belongs. For example, if the IP address of an on-premises client is 192.168.0.100 with a subnet mask of 255.255.0.0, the corresponding private CIDR block is 192.168.0.0/16.
- By default, you can add up to 10 private CIDR blocks for each SAG instance.To request a quota increase, submit a ticket.
- Dynamic Routing: The SAG instance uses a dynamic routing protocol to automatically learn private CIDR blocks from your on-premises network and advertise them to Cloud Connect Network. For dynamic routing to work, you must run a dynamic routing protocol, such as BGP or OSPF, between the SAG instance and your on-premises device, such as a core switch or an egress router.
For information about how to configure dynamic routing protocols for an SAG instance, see Configure BGP routing and Configure OSPF routing.
- Static Routing (Default): The SAG instance does not automatically learn the private CIDR blocks of your on-premises network. You must manually specify the private CIDR blocks. After you specify these CIDR blocks, the SAG instance advertises them to Cloud Connect Network (CCN).