forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
3.9 KiB
3.9 KiB
Associating a Route Table with a Subnet
Scenarios
After a subnet is created, the system associates the subnet with the default route table of its VPC. If you want to use specific routes for a subnet, you can associate the subnet with a custom route table.
The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.
Notes and Constraints
- A subnet must have a route table associated and can only be associated with one route table.
- A route table can be associated with multiple subnets.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project.
- Click
in the upper left corner and choose Network > Virtual Private Cloud.
The Virtual Private Cloud page is displayed.
- In the navigation pane on the left, choose Virtual Private Cloud > Route Tables.
- In the route table list, locate the row that contains the target route table and click Associate Subnet in the Operation column.
- Select the subnet to be associated.
- Click OK.
Parent topic: Managing Route Tables