Updated on 2024-09-06 GMT+08:00

Creating VPC Attachments for the Enterprise Router

Scenarios

This section describes how to attach VPCs to the enterprise router and configure routes for the VPCs and the enterprise router.

Procedure

  1. Attach the three VPCs to the enterprise router.

    For details, see Creating VPC Attachments for the Enterprise Router.

  2. Create two route tables for the enterprise router.

    For details, see Creating a Route Table.

  3. Associate VPC attachments with route table 1 of the enterprise router, and add a static route to the route table 1 with the next hop set to the VPC attachment.

    For route table 1 details, see Table 8.
    1. Associate VPC 1 and VPC 2 attachments with route table 1.

      Create an association. For details, see Creating an Association for an Attachment in a Route Table.

    2. Add a static route to route table 1 with the next hop set to the VPC 3 attachment and destination to 0.0.0.0/0.

      For details, see Creating a Static Route.

  4. Associate and propagate VPC attachments with the route table 2.

    For route table 2 details, see Table 8.

    1. Associate VPC 3 attachment with route table 2.

      Create an association. For details, see Creating an Association for an Attachment in a Route Table.

    2. Propagate VPC 1 and VPC 2 attachments to route table 2.

      For details about creating a propagation, see Creating a Propagation.

  5. Add routes to the route tables of the VPCs.

    For details, see Adding Routes to VPC Route Tables.

    1. Add routes for traffic to route from the VPCs to the enterprise router.

      For details, see Table 3.

    2. Add a route to default route table of VPC 3 for traffic to route from the VPC 3 to the ECS.

      For details, see Table 4.