Each subnet must be associated with one route table, which is used to control the outbound traffic direction of the subnet. You can change the route table associated with the subnet in real time in the Subnet page on the VPC console based on the actual business needs. If you need to create a route table, please see Creating a Custom Route Table.
After the route table is replaced by a new one, all instances in the subnet will enable the new route table policy. Please carefully evaluate the business impact.
Log in to the VPC console.
Select Subnet in the left sidebar to go to the subnet management page.
The system provides two methods to change the route table associated with the subnet.
Click More > Change Route Table in the Operation column on the right side of the subnet that needs to change the route table.
Click the ID of the subnet that needs to change the route table to go to the details page, switch to the Routing Rules tab, and click Change Route Table.
In the pop-up window, select a new route table in the drop-down list, confirm the impact on your business, and click Confirm.