Route Table

Background

VPC has old and new console editions. You can click in the lower right corner of the console to switch between the old and new consoles.

Route Table (New Console Edition)

A route table contains a set of routes that are used to determine where network traffic from your subnets in a VPC is directed. Each subnet must be associated with a route table. You can associate a subnet with only one route table at a time, but you can associate multiple subnets with the same route table.

Figure 3 Route Table

Default Route Table and Custom Route Table

When you create a VPC, the system automatically generates a default route table for the VPC. If you create a subnet in the VPC, the subnet automatically associates with the default route table. You can add, delete, and modify routes in the default route table, but you cannot delete the route table. When you create a VPN, Direct Connect connection, the default route table automatically delivers a route that cannot be deleted or modified. If you want to modify or delete the route, you can associate your subnet with a custom route table and replicate the route to the custom route table to modify or delete it.

If you do not want to use the default route table, you can now create a custom route table and associate it with the subnet. Custom route tables can be deleted if they are no longer required.

Route

A route is configured with the destination, next hop type, and next hop to determine where network traffic is directed. Routes are classified into system routes and custom routes.

Route Table (Old Console Edition)

A route table contains a set of rules that determine where network traffic is directed. You can add routes to a route table to enable other ECSs in a VPC to access the Internet through the ECS that has a bound EIP.

You can use a route table configured in standalone mode or active/standby mode.

In both the standalone and active/standby modes, the ECSs that have EIPs bound must have the SNAT function. For details about the SNAT function, see SNAT. For details about how to configure an ECS as the SNAT server, see Configuring an SNAT Server.
  • Before using the route table function, you need to deploy the SNAT server. For details, see section Configuring an SNAT Server.
  • The ECS providing SNAT function can have only one NIC.
  • The ECS providing SNAT function must have the source/destination check function disabled.