Help Center> Enterprise Router> User Guide> Routing Control> Route Policies> Associating a Route Policy with an Enterprise Router
Updated on 2024-05-20 GMT+08:00

Associating a Route Policy with an Enterprise Router

Scenarios

You can associate a route policy with an enterprise router to control the routes of the enterprise router for traffic sending and receiving. For details, see Table 1.
Table 1 Enterprise router routing control by a route policy

Traffic Direction

Description

Routes to send traffic by an enterprise router:

From ER-A to Direct Connect virtual gateway, VPN gateway, or ER-B

Control routes used by an enterprise router to send traffic to a Direct Connect virtual gateway, VPN gateway, or enterprise router. These routes, including both static and BGP routes, are in the enterprise router route table.

On the Associations tab of the enterprise router, associate a route policy with the association of an attachment. For details, see Associating a Route Policy with the Association of an Attachment.

Routes to receive traffic by an enterprise router:

From Direct Connect virtual gateway, VPN gateway, or ER-B to ER-A

Control routes used by an enterprise router to receive traffic from a Direct Connect virtual gateway, VPN gateway, or enterprise router. These routes are BGP routes.

On the Propagations tab of the enterprise router, associate a route policy with the propagation of an attachment. For details, see Associating a Route Policy with the Propagation of an Attachment.

Notes and Constraints

  • Route policies can be applied to the following types of attachments:
    • Virtual gateway attachments
    • Peering connection attachments
    • VPN gateway attachments
    • Global DC gateway attachments
  • Route policies cannot be applied to VPC attachments.
  • Route policies change the paths through which traffic passes. Evaluate the impact on your services before associating a route policy with an enterprise router.

Associating a Route Policy with the Association of an Attachment

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click Service List and choose Networking > Enterprise Router.

    The Enterprise Router homepage is displayed.

  4. Search for the target enterprise router by name.
  5. Go to the Route Tables tab page using either of the following methods:

    • In the upper right corner of the enterprise router, click Manage Route Table.
    • Click the enterprise router name and click Route Tables.

  6. Click the target route table and then the Associations tab.

    The association list is displayed.

  7. Locate the row that contains the target association and click Modify in the Operation column.

    The Modify Association dialog box is displayed.

  8. Select the created route policy and click OK.

    If there is no desired route policy, create one by referring to Creating a Route Policy.

    Return to the association list. You can see that the route policy has been associated with the corresponding association.

Associating a Route Policy with the Propagation of an Attachment

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click Service List and choose Networking > Enterprise Router.

    The Enterprise Router homepage is displayed.

  4. Search for the target enterprise router by name.
  5. Go to the Route Tables tab page using either of the following methods:

    • In the upper right corner of the enterprise router, click Manage Route Table.
    • Click the enterprise router name and click Route Tables.

  6. Click the target route table and then the Propagations tab.

    The propagation list is displayed.

  7. Locate the row that contains the target propagation and click Modify in the Operation column.

    The Modify Propagation dialog box is displayed.

  8. Select the created route policy and click OK.

    If there is no desired route policy, create one by referring to Creating a Route Policy.

    Return to the propagation list. You can see that the route policy has been associated with the corresponding propagation.