You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
A Virtual Private Cloud (VPC) is a logically isolated network on Tencent Cloud where you deploy your resources. VPC networking is essential for building secure, well-architected applications.
A VPC provides:
When creating a VPC, you define a CIDR block:
| CIDR Block | Usable IPs | Common Use |
|---|---|---|
| 10.0.0.0/8 | ~16 million | Large environments |
| 172.16.0.0/12 | ~1 million | Medium environments |
| 192.168.0.0/16 | ~65,000 | Small environments |
A VPC supports one primary CIDR and can add secondary CIDR blocks for expansion.
A subnet is a range of IP addresses within a VPC:
graph TD
V["VPC: 10.0.0.0/16"] --> A["Subnet A (Zone 1): 10.0.1.0/24 - Public (web tier)"]
V --> B["Subnet B (Zone 2): 10.0.2.0/24 - Public (web tier)"]
V --> C["Subnet C (Zone 1): 10.0.10.0/24 - Private (app tier)"]
V --> D["Subnet D (Zone 2): 10.0.20.0/24 - Private (database tier)"]
Route tables determine how traffic is directed:
| Destination | Next Hop | Purpose |
|---|---|---|
| 10.0.0.0/16 | Local | Traffic within the VPC |
| 0.0.0.0/0 | Internet Gateway | Public internet access |
| 0.0.0.0/0 | NAT Gateway | Private subnet internet access |
| Peered VPC CIDR | Peering Connection | VPC-to-VPC traffic |
Provides internet access for resources with public IPs (Elastic IPs):
A static public IP address that you bind to a CVM instance or NAT Gateway:
Allows resources in private subnets to access the internet:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.