-
Internal IP
- Every VM needs an internal IP to communicate
- Assigned from DHCP Pool
- VMs in same network can communicate via private IPs
- Ephemeral IP remains assigned when stopped
- Static IP can be assigned from subnet range
- DNS format is instance.c.projectid.internal
-
External IP
- VPC instances can have a public IP address
- VMs communicate across networks via public IPs
- VMs without public IPs are accessible within a network
-
Ephemeral
- Assigned when resources is created/running
- Released when resource stoppped/deleted
-
Static
- Preserved when VM is stopped
- Bound to a region
- Billed when not attached to a VM
-
DNS
- No default public DNS, use Cloud DNS
- External IP is mapped to internal IP
-
NICs
- VMs have 1 internal and 1 external IP per VPC
- VMs can have multiple NICs (one per VPC)
- 1 internal and external IP can be allocated to each NIC
-
Use Cases
- Network appliances
- Traffic separation
-
Limitations
- Setup at instance creation
- 1 NIC per network
- No overlapping subnet ranges
- NIC cannot be deleted
-
Up to 8 in total
- <=2 cpu = 2 NICs
- > 2 CPUs = 1 NIC per CPU (up to 8)