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

IP and IP Ranges

PDF
Focus Mode
Font Size
Last updated: 2024-10-22 16:55:04

What are the limits on the IP ranges of VPCs and subnets?

Tencent Cloud VPC CIDR block supports the use of any one of the following private IP ranges:
10.0.0.0 - 10.255.255.255 (mask range between 12 and 28)
172.16.0.0 - 172.31.255.255 (mask range between 12 and 28)
192.168.0.0 - 192.168.255.255 (mask range between 16 and 28)
The subnet CIDR block must be within or the same as the VPC CIDR block.

Can the IP ranges of VPCs and subnets be modified?

When creating the VPC and subnet, you need to designate their CIDR blocks, and they cannot be changed once they are created.
If you cannot establish a peering connection due to the overlapping of VPC IP ranges, you can try Cloud Connect Network, which has smaller limit granularity (only subnet IP ranges cannot overlap) or migrate the instances to another VPC. For details, see Switching to VPC.

What should be done when a peering connection fails to be established because of a VPC IP range conflict?

When establishing a peering connection, the CIDR blocks of the two VPCs cannot overlap, or else the peering connection will fail to be established.
If the subnet IP ranges of two VPCs that need to communicate do not overlap, then you can use CCN to establish communication. CCN lowers the IP range limits to the subnet level when VPCs communicate. For example, if the IP ranges of the two VPCs that need to communicate with each other are 10.0.0.0/16, but the subnets are respectively 10.0.1.0/24 and 10.0.2.0/24, then you can establish communication using CCN. Refer to CCN Product Documentation.
If your needs are not met by using CCN, then you need to migrate the resources inside the overlapping subnets.
Migrate the instances within VPC as instructed in Switching to VPC.

Can I modify the private IPs of resources in VPCs (CVMs and databases)?

You can modify the primary private IP of a CVM’s primary ENI, but the primary private IP of a secondary ENI cannot be modified. For details, see Modifying Private IP Addresses.
You can modify the private IP of TencentDB instances (such as MySQL instances). See Customizing IP and Port.
The private IP of CLB cannot be modified.

Can I migrate CVMs or databases from one VPC to another?

For now, you can migrate CVM instances and TencentDB for MySQL instances to another VPC under the same account. Other TencentDB instances are not supported.
To migrate CVM instances, see Switching to VPC.
To migrate TencentDB for MySQL instances, see Network Switch.

What do EIPs do?

ElPs are applicable to the following scenarios:
1. Disaster recovery We strongly recommend that you use EIPs for disaster recovery. When one of your CVMs fails to normally provide services, you can unbind the EIP from this CVM and rebind it to a healthy CVM to resume service quickly.
2. Retaining a specific public IP If you need to retain a specific public IP under your account, you can convert it to an EIP, which then can be used to access public networks after being bound to the device. This EIP will be retained under your account until it is "released" by you.
3. Other special scenarios When you need to change an IP in other special cases, you can convert the ordinary public IP to an EIP and then bind/unbind the EIP. However, with limited EIP resources available, a quota is imposed on the number of EIPs for each region under a single account. Therefore, reasonable planning and use of EIPs are very important.

How do I keep a public IP unchanged?

If you need to retain a specific public IP under your account, you can convert it to an EIP, which then can be used to access public networks after being bound to the device. This EIP will be retained under your account until it is "released" by you. For directions, see Converting common public IPs to EIPs.

Can an EIP be converted back to a public IP?

An EIP cannot be converted back to a public IP.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback