Creating an Association for an Attachment in a Route Table
Scenarios
You can refer to the following operations to create an association in the route table of an enterprise router to associate an attachment with the route table. After an association is created, packets from the attachment are forwarded based on the association route table, and the attachment network can automatically learn the routes in the association route table.
Constraints
Each attachment can only be associated with one route table. Packets from the attachment will be forwarded based on the route table.
Automatically Creating an Association When Creating an Attachment
If the Default Route Table Association function is enabled for an enterprise router, adding an attachment to the enterprise router automatically creates an association in the specified association route table. The attachment will forward packets based on the association route table and automatically learn its routes.
To enable the Default Route Table Association function, refer to the following:
- When creating an enterprise router, you can enable the Default Route Table Association function. The system will automatically create a default route table as the association route table. For details, see Creating an Enterprise Router.
- After an enterprise router is created, you can enable the Default Route Table Association function and change the association route table. For details, see Modifying Enterprise Router Settings.
Creating an Association for an Existing Attachment
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project. - Click Service List and choose Networking > Enterprise Router.
The Enterprise Router page is displayed.
- Search for the target enterprise router by name.
- Go to the Route Tables tab 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.
- Click the route table where you want to create an association. On the Associations tab, click Create Association.
The Create Association dialog box is displayed.
- Configure the parameters based on Table 1.
Table 1 Parameters for creating an association Parameter
Setting
Example Value
Attachment Type
Mandatory
Select an attachment type.- VPC: A VPC is attached to the enterprise router.
- Virtual gateway: A Direct Connect virtual gateway is attached to the enterprise router.
- VPN gateway: A VPN gateway is attached to the enterprise router.
- Peering connection: The enterprise router connects to another enterprise router in a different region.
- Global DC gateway: A Direct Connect global DC gateway is attached to the enterprise router.
For more information, see Attachment Overview.
VPC
Attachment
Mandatory
In the drop-down list, select the attachment to be associated with the route table.
er-attach-02
Route Policies
Optional
When any of the following attachment types is selected, you can configure a route policy for the association of the attachment to control the routes from the enterprise router to the attachment:- Virtual gateway
- VPN gateway
- Peering connection
- Global DC gateway
In the Route Policy drop-down list, select a route policy.
For more information about route policies, see Route Policy Overview and Associating a Route Policy with an Enterprise Router.
routePolicy-ab
- Click OK.
The association list is displayed. You can view your association.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.