A route table is used to control the outbound traffic of the subnet. It can contain multiple routing policies There are default route table and custom route tables. The default route table (local route) allows private network interconnection in the VPC, which cannot be deleted, but can be configured with routing policies the same way as you configure a custom route table. This document describes how to create and configure a custom route table.
Log in to the VPC console.
Click Route Tables on the left sidebar to access the management page.
Click + New.
In the pop-up dialog, enter the route table name, select the VPC to which the route table belongs, and configure the routing policies.
You can configure routing policies when creating a route table. Alternatively, after a route table is created, you can click the route table ID to enter the Basic Information page and click + New routing policies to configure routing policies.
|Destination||The destination IP range to which the traffic is forwarded. The configuration should meet the following requirements:
Note: If you have deployed a TKE service in the VPC, the destination you configure in the route table policy of VPC subnet cannot fall within the VPC CIDR block or contain the TKE IP range. For example, if the VPC CIDR block is `188.8.131.52/16` and the TKE CIDR block is `192.168.0.0/16`, the destination IP range should not fall within `184.108.40.206/16`, or contain `192.168.0.0/16` when you configure routing policy for a VPC subnet.
|Next hop type||The egress of the VPC data packets. The following types are supported:
|Next hop||Specifies the next hop instance to which the traffic is redirected, such as the gateway or CVM IP.|
|Notes||Describes the purpose of the route for resource management. This parameter is optional.|
|Add a line||: configures multiple routing policies if needed. You can click the deletion icon in the **Operation** column to delete the unnecessary routing policies. A custom route table should contain at least one routing policy.|
Currently, only the routing policies whose Next hop type is High Availability Virtual IP, VPN Gateway, or CVM in the default or custom route tables can be manually published to or withdrawn from CCN.