You can configure routing policies to filter and modify routes. This allows you to manage network communication in the cloud. This topic describes how to create, modify, and delete a routing policy.
Background information
Transit routers have two editions: Basic Edition and Enterprise Edition.
- A Basic Edition transit router has only a system route table. Routing polices that you create are automatically associated with the system route table.
- An Enterprise Edition transit router has a system route table and supports custom route tables. When you add a routing policy, you can associate the routing policy with the system route table or a custom route table. The routing policy affects only how the associated route table advertises routes.
For more information about how to check the edition of a transit router, see View the edition of a transit router.
Add a routing policy to an Enterprise Edition transit router
Add a routing policy to a Basic Edition transit router
Modify a routing policy
Before you modify a routing policy, take note of the following limits:
- After you create a routing policy on an Enterprise Edition transit router, you cannot modify the route table that is associated with the routing policy or the direction in which the routing policy applies.
- After you create a routing policy on a Basic Edition transit router, you cannot modify the region or direction in which the routing policy applies.
- You cannot modify the default routing policy of a Basic Edition transit router or Enterprise Edition transit router. The priority value of the default routing policy is larger than 1000. If you do not want the default routing policy to take effect, you must add a custom routing policy that has a higher priority than the default routing policy.
- Log on to CEN console.
- On the Instances page, find the CEN instance that you want to manage and click its ID.
- On the tab, find the transit router in the target region and click the ID of the target transit router.
- On the details page of the transit router instance, click the Transit Router Route Table tab.
- On the Route Table tab, find the routing policy that you want to modify.
- If you are using a Basic Edition transit router, click the Route Maps tab to find the routing policy.
- If you are using an Enterprise Edition transit router, click the ID of the route table in the left-side area. On the details page of the route table, click the Route Maps tab and find the routing policy.
- Find the routing policy and click Modify in the Actions column.
- On the Edit Route Map page, modify the priority, description, match conditions, and action of the routing policy, and then click OK.
Delete a routing policy
- Log on to CEN console.
- On the Instances page, find the CEN instance that you want to manage and click its ID.
- On the tab, find the transit router in the target region and click the ID of the target transit router.
- On the details page of the transit router instance, click the Transit Router Route Table tab.
- On the Route Table tab, find the routing policy that you want to modify.
- If you are using a Basic Edition transit router, click the Route Maps tab to find the routing policy.
- If you are using an Enterprise Edition transit router, click the ID of the route table in the left-side area. On the details page of the route table, click the Route Maps tab and find the routing policy.
- Find the routing policy and click Delete in the Actions column.
- In the Delete Route Map message, click OK.
References
- Routing policy overview
- CreateCenRouteMap: creates a routing policy.
- ModifyCenRouteMap: modifies a routing policy.
- DeleteCenRouteMap: deletes a routing policy.
- DescribeCenRouteMaps: queries information about routing policies.