Modifying a Route
Scenarios
You can modify an existing route in a route table.
Notes and Constraints
- System routes cannot be modified.
- When you create a VPC endpoint, VPN or Direct Connect connection, the default route table automatically delivers a route that cannot be deleted or modified.
Procedure
- Log in to the management console.
- Click in the upper left corner and select the desired region and project.
- Click in the upper left corner and choose Networking > Virtual Private Cloud.
The Virtual Private Cloud page is displayed.
- In the navigation pane on the left, choose Virtual Private Cloud > Route Tables.
The route table list is displayed.
- Locate the target route table and click its name.
- Locate the target route and click Modify in the Operation column.
- Modify the route information in the displayed dialog box.
Table 1 Parameter descriptions Parameter
Description
Example Value
Destination Type
Mandatory
The destination type can only be IP address. You can set an IP address or CIDR block.
IP address
Destination
Mandatory
Enter the destination of the route. You can enter a single IP address or an IP address range in CIDR notation.
NOTICE:If an IP address group contains an IP address range in the format of Start IP address-End IP address, the IP address group is not supported.
For example, an IP address group cannot contain 192.168.0.1-192.168.0.62. You need to change 192.168.0.1-192.168.0.62 to 192.168.0.0/26.
IPv4: 192.168.0.0/16
Next Hop Type
Mandatory
Set the type of the next hop.
NOTE:When you add or modify a custom route in a default route table, the next hop type of the route cannot be set to VPN gateway, Direct Connect gateway, or Cloud connection.
VPC peering connection
Next Hop
Mandatory
Set the next hop. The resources in the drop-down list box are displayed based on the selected next hop type.
peer-AB
Description
Optional
Enter the description of the route in the text box as required.
-
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.