Network and Resource Planning
- Network Planning: Plan CIDR blocks of VPCs and their subnets, and route tables of VPCs and the enterprise router.
- Resource Planning: Plan the quantity, names, and other parameters of cloud resources, including VPCs, ECSs, and the enterprise router.
Network Planning
Figure 1 shows the network planning for protecting traffic for VPCs in the same region.
| Path | Description |
|---|---|
| Request traffic: from VPC 1 to VPC 2 |
|
| Response traffic: from VPC 2 to VPC 1 |
|
| Resource | Description |
|---|---|
| VPCs |
|
| Enterprise router | Disable the Default Route Table Association and Default Route Table Propagation, create two route tables, attach the three VPCs to the enterprise router, and configure the route tables as follows:
|
| ECS |
|
| Destination | Next Hop | Route Type |
|---|---|---|
| 10.0.0.0/8 | Enterprise router | Static route (custom) |
| 172.16.0.0/12 | Enterprise router | Static route (custom) |
| 192.168.0.0/16 | Enterprise router | Static route (custom) |
- If you enable Auto Add Routes when creating a VPC attachment, you do not need to manually add static routes to the VPC route table. Instead, the system automatically adds routes (with this enterprise router as the next hop and 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 as the destinations) to all route tables of the VPC.
- If an existing route in the VPC route tables has a destination to 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16, the routes will fail to be added. In this case, do not enable Auto Add Routes. After the attachment is created, manually add routes.
- Do not add a route with the next hop set to the enterprise router to the default route table of VPC 3. Do not enable Auto Add Routes when creating the VPC 3 attachment.
- Do not set the destination of a route (with an enterprise router as the next hop) to 0.0.0.0/0 in the VPC route table. If an ECS in the VPC has an EIP bound, the VPC route table will have a policy-based route with 0.0.0.0/0 as the destination, which has a higher priority than the route with the enterprise router as the next hop. In this case, traffic is forwarded to the EIP and cannot reach the enterprise router.
| Destination | Next Hop | Route Type |
|---|---|---|
| 10.1.0.0/16 | ECS | Static route (custom) |
| 10.2.0.0/16 | ECS | Static route (custom) |
Resource Planning
The following resource details are only examples. You can modify them if needed.
- One enterprise router. See details in Table 7.
Table 7 Enterprise router details Enterprise Router Name
ASN
Default Route Table Association
Default Route Table Propagation
Route Table
Attachment
er-test-01
64512
Disabled
Disabled
er-attach-01
er-attach-02
er-attach-inspection
- Three VPCs that do not overlap with each other. See details in Table 10.
Table 10 VPC details VPC
VPC CIDR Block
Subnet
Subnet CIDR Block
Association Route Table
VPC 1: vpc-demo-01
10.1.0.0/16
subnet-demo-01
10.1.0.0/24
Default route table
VPC 2: vpc-demo-02
10.2.0.0/16
subnet-demo-02
10.2.0.0/24
Default route table
VPC 3: vpc-inspection
192.168.0.0/16
subnet-inspection-01
192.168.0.0/24
Default route table
subnet-inspection-02
192.168.1.0/24
Custom route table
- Three ECSs, respectively, in three VPCs. See details in Table 11 and Table 12.
