Managing Route Tables

Last Updated At: 2025-10-21 09:10:00

Creating Custom Route Tables

In addition to the default route table automatically generated by the system, you can also create new custom route tables.

  1. Log in to the VPC Console.
  2. Click Route Table in the left sidebar to go to the route table management page.
  3. Click Create.
  4. In the pop-up window, enter the route table name, select the VPC to which the route table belongs, configure a routing policy, and click Create.

Note:

When the next hop is Peering Connection or Direct Connect Gateway, you can enter an IPv6 address.

Configuring Routing Policies

  1. Log in to the VPC Console.
  2. Click Route Table in the left sidebar to go to the route table management page.
  3. In the list, click the route table ID that needs to be modified to enter the details page.
  4. Click Add Routing Policy to add a route policy.
  5. In the pop-up box, enter the destination IP range and select the next hop type (Public Network Gateway, VPN Gateway, Direct Connect Gateway, etc.) and the next hop ID.
Configuration Description
Destination Specify the destination IP range to which you want to forward traffic.
Next Hop Type Indicates the egress of data packets for the VPC. Supported types:
- VPN Gateway: The traffic directed to a destination IP range is forwarded to a VPN Gateway.
- Direct Connect Gateway: The traffic directed to a destination IP range is forwarded to a direct connect gateway.
- Peering connections: The traffic directed to a destination IP range is forwarded to the VPC peer of a peering connection.
- NAT Gateway: The traffic directed to a destination IP range is forwarded to a NAT Gateway.
- CVM: The traffic directed to a destination IP range is forwarded to a public network gateway in the VPC (a CVM instance with forwarding enabled).
- Public IP of CVM: The traffic directed to a destination IP range is forwarded to the public IP address (including EIPs) of a CVM instance in the VPC.
Next Hop Specify the next hop instance to which the traffic is redirected, such as a gateway or CVM IP.


6. Click OK and the routing policy takes effect immediately.
7. (Optional) After adding a custom routing policy, you can click Edit or Delete in the routing policy operation column to modify or delete the routing policy.

Changing the Subnet Route Table

  1. Log in to the VPC Console.
  2. Click Subnet in the left sidebar to enter the Management page.
  3. Click Change Route Table in the Operation column on the right side of the subnet that needs to change the route table.
  4. In the pop-up window, select the new route table and click OK.

Deleting Custom Route Tables

The system-generated default route table cannot be deleted, but custom route tables can be created, modified, and deleted.

  1. Log in to the VPC Console.
  2. Click Route Table in the left sidebar to go to the route table management page.
  3. Click Delete in the Operation column on the right side of the route table that you want to delete.