tencent cloud

Virtual Private Cloud

Release Notes and Announcements
Release Notes
Announcements
Tencent Cloud Network Overview
Product Introduction
Overview
Strengths
Use Cases
Concepts
Quota Limit
Service Regions and Service Providers
Purchase Guide
Billing Overview
Payment Overdue
Quick Start
Network Planning
VPC Connections
Building Up an IPv4 VPC
Operation Guide
Network Topology
Network performance dashboard
Virtual Private Cloud (VPC)
Subnets
Route Tables
Elastic IP
HAVIPs
Elastic Network Interface
Bandwidth Package
Network Connection
Security Management
Diagnostic Tools
Alarming and Monitoring
Practical Tutorial
View the Total Bandwidth for Single-Region Traffic-Based Billing
Migrating from the Classic Network to VPC
Best Practices of Security Group Change
Configuring CVM Instance as Public Gateway
Building HA Primary/Secondary Cluster with HAVIP + Keepalived
Hybrid Cloud Primary/Secondary Communication (DC and VPN)
Hybrid Cloud Primary/Secondary Communication (CCN and VPN)
CVM Access to Internet Through EIP
Troubleshooting
VPCs or Subnets Cannot Be Deleted
Network Disconnection After Connecting Two VPCs over CCN
Failed to Ping CVMs in the Same VPC
API Documentation
History
Introduction
API Category
Making API Requests
VPC APIs
Route Table APIs
Elastic Public IP APIs
Elastic IPv6 APIs
Highly Available Virtual IP APIs
ENI APIs
Bandwidth Package APIs
NAT Gateway APIs
Direct Connect Gateway APIs
Cloud Connect Network APIs
Network ACL APIs
Network Parameter Template APIs
Network Detection-Related APIs
Flow Log APIs
Gateway Traffic Monitor APIs
Private Link APIs
Traffic Mirroring APIs
Other APIs
Subnet APIs
VPN Gateway APIs
Security Group APIs
Snapshot Policy APIs
Error Codes
Data Types
FAQs
General
Connection
Security
Contact Us
Glossary

Managing Routing Policies

PDF
フォーカスモード
フォントサイズ
最終更新日: 2024-10-22 15:46:09
The routing policies in a route table can be managed in real time. For example, you can add, delete, query, and export routing policies, publish routing policies to CCN, withdraw routing policies from CCN, and enable or disable routing policies. This document describes operations related to routing policies.

Adding a Routing Policy

1. Log in to the VPC console, and access the Route Table page.
2. Click the ID/Name of the route table to modify to go to its details page.
3. Click + Add routing policies.

4. In t
he pop-up
window, configure the routing policy.
Note:
If you have deployed a TKE service in the VPC, the destination you configure in the routing policy of the VPC subnet cannot fall within the VPC CIDR block or contain the TKE IP range. For example, if the VPC CIDR block is 172.168.0.0/16 and the TKE CIDR block is 192.168.0.0/16, the destination IP range cannot fall within 172.168.0.0/16, or contain 192.168.0.0/16 when you configure routing policy for a VPC subnet.
Parameter
Description
Destination
Specify the destination IP range to which you want to forward outbound traffic of the subnet. Requirements for a destination are as follows:
The destination must be an IP range. If you want to enter a single IP, set the mask to `32` (for example, `172.16.1.1/32`).
The destination cannot be an IP range of the VPC where the route table resides, because the local route already allows private network interconnection in this VPC.
Next hop type
Indicates the egress of data packets for the VPC. Supported types:
NAT gateway: The traffic directed to a destination IP range is forwarded to a NAT gateway.
Peering Connections: the traffic directed to a destination IP range is forwarded to the VPC peer of a peering connection.
Direct Connect Gateway: the traffic directed to a destination IP range is forwarded to a direct connect gateway.
High Availability Virtual IP: the traffic directed to a destination IP range is forwarded to an HAVIP.
VPN Gateway: the traffic directed to a destination IP range is forwarded to a VPN gateway.
Public IP of CVM: the traffic directed to a destination IP range is forwarded to the public IP (including EIPs) of a CVM instance in the VPC.
CVM: the traffic directed to a destination IP range is forwarded to a CVM instance in the VPC.
CDC local gateway: Tencent Cloud CDC communicates with the customer IDC by using a CDC local gateway.
Next hop
Specify the next hop instance to which the traffic is redirected, such as a gateway or CVM IP.
Notes
Enter the route description for resource management. This parameter is optional.
New Line
You can click + New line to configure multiple routing policies, or click the deletion icon in the Operation column to delete the unnecessary routing policies.

5. Click Create.

Editing a Routing Policy

1. Log in to the VPC console, and access the Route Table page.
2. In the list, click the ID/Name of the target route table to go to its details page.
3. Click Edit in the Operation column of the routing policy to modify it.

4. Click OK to confirm the modification or Cancel to cancel the modification.

Publishing a Routing Policy to CCN or Withdrawing a Routing Policy from CCN

Routes of a VPC associated with a CCN are published to the CCN by default. For the new custom routing policies that are not published, you need to manually publish them. You can also withdraw a routing policy from CCN.
Currently, only the routing policies whose Next hop type is High availability virtual IP or CVM in the default or custom route tables can be manually published to or withdrawn from CCN.

Prerequisites

The VPC where the HAVIP or CVM resides is associated with a CCN instance.

Directions

1. Log in to the VPC console, and access the Route Table page.
2. Click the ID/Name of the route table to modify to go to its details page.
3. Perform the following operations as needed:
Click Publish to CCN to manually publish a custom routing policy to CCN.
Click Withdraw from CCN to withdraw a custom routing policy that has been published to CCN.
Note:
A disabled routing policy cannot be published to CCN.
A routing policy cannot be disabled once being published to CCN.

Querying and Exporting a Routing Policy

1. Log in to the VPC console, and access the Route Table page.
2. Click the ID/Name of the target route table to go to its details page. On this page, you can view the routing policies in this route table.
3. In the top-right search box, query the routing policies by entering a destination address.


4. Click Export to save the search result in the .csv format.

Enabling/Disabling a Routing Policy

A custom routing policy can be enabled or disabled.

Directions

1. Log in to the VPC console, and access the Route Table page.
2. Click the ID/Name of the target route table to enter its details page. Check the routing policy status:


: enabled


: disabled
3. Disable a routing policy: click the

icon next to a routing policy to disable it.
Note:
Disabling a route may result in business interruption. Please double check before continuing.

4. Enable a routing policy: click the

icon next to a routing policy to enable it.
Note:
Once enabled, the route with the longest mask will be used. This may affect your current business. Please double check before continuing.

5. Enable or disable multiple routing policies: select the target routing policies and click Enable or Disable above the list.


Deleting a Routing Policy

You can delete the unused routing policies. Only the custom routing policies can be deleted.
1. Log in to the VPC console, and access the Route Table page.
2. Click the ID/Name of the route table to modify to go to its details page.
3. Select the routing policy to be deleted, and click Delete in the Operation column.

4. Read the notes and click OK.



ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック