A VPC-Network resides within a VPC. Each VPC-Network inter-connects two or more VPSs.
Also, each VPC-Network is isolated from other VPC-Networks within the same VPC, VPC-Networks in other VPCs in your account, as well as VPC-Networks in VPCs belonging to other accounts/tenants.
A VPC-Network could be one of two types:
Private Network
A Private VPC-Network isolates VPSs from all other VPC-Networks.
By default, a VPS in a Private VPC-Network does not have a Public IP assigned to it.
Hence, such a VPS is not reachable from any other Network, either a VPC-Network or the Internet. However, it does get assigned a Private IP.
All VPSs in a Private VPC-Network can access each other via their assigned Private IPs.
Also, a VPS in a Private VPC-Network cannot initiate communication with any other VPS in other VPC-Networks, through Private IPs.
However, Private VPC-Networks allow outgoing traffic to Internet. Hence, a VPS in a Private VPC-Network can:
- access any Public IP on the internet, while still not being reachable from anywhere on the internet.
- access VPSs in any other Public VPC-Network, provided the target VPS has a Public IP.
Public Network
A VPS in a Public VPC-Network is assigned a Public IP, by default.
Hence, all VPSs in a Public VPC-Network are reachable, on their Public IPs, from any other Network, either a VPC-Network or the Internet.
A VPS in a Public VPC-Network is also assigned a Private IP. However, a VPS in a Public VPC-Network will be unreachable on it’s Private IP, from outside the VPC-Network.