This topic describes how to add a custom route entry. After you create a Virtual Private
Cloud (VPC) network, the system creates a default route table and adds system route
entries to the route table for traffic management. You cannot create or delete system
route entries. However, you can create custom route entries to route traffic from
source CIDR blocks to specific destinations.
Background information
Each entry in the route table is a route entry. A route entry, which specifies the
destination for network traffic, consists of the destination CIDR block, next hop
type, and next hop. Route entries are classified into system route entries and custom
route entries. You can add custom route entries to both system and custom route tables.
Procedure
- Log on to the VPC console.
- In the left-side navigation pane, click Route Tables.
- In the top navigation bar, select the region to which the route tables belong.
- On the Route Tables page, find the route table and click Manage in the Actions column.
- In the Route Table Details section, click the Route Entry List tab, and then click Add Route Entry.
- On the Add Route Entry page, set the following parameters and click OK.
Parameter |
Description |
Name |
The name of the route entry.
The name must be 2 to 128 characters and can contain digits, underscores (_), and
hyphens (-). The name must start with a letter or a Chinese character.
|
Destination CIDR Block |
The destination CIDR block to which you want to route traffic. |
Next Hop Type |
The type of the next hop. Valid values:
|
Resource Group |
Select the resource group of the next hop.
This option appears only when you set Next Hop Type to ECS Instance or Secondary ENI.
|
ECS Instance/VPN Gateway/NAT Gateway/Secondary ENI |
Select the next-hop instance. |