VPC Flashcards
How many networks can a project contain by default?
5
What are the 3 types of VPC networks?
Default, Auto, Custom
A network in Google Cloud has these featuures
Global and spans all available regions
Has no IP address range
Contains subnetworks
Default network type
Every project gets this VPC with preset subnets and firewall rules.
A subnet for each region with non overlapping CIDR blocks.
Firewall rules allow ICMP, RDP and SSH traffic from anywhere. Within the network, any ingress traffic is allowed.
Also an auto mode network.
Auto mode network type
Default network
Regional IP allocation
Fixed /20 subnetwork per region, expandable up to /16
As new regions become available, auto added
Can be converted to custom to avoid auto adding (1 way)
All subnets fit in 10.128.0.0/9 CIDR block
Custom mode network type
Full control
Subnets cannot overlap IP ranges
Describe how resources in different regions and/or networks communicate
Resources in same network can communicate across regions with internal IP
Resources in different networks cannot communicate with internal IP
Describe how a basic VPN would connect to a VPC with multiple regions
Single VPN Gateway can leverage global VPC
A subnet reserves what IP addresses
4 total reserved addresses
.0 and .1 for network and subnet’s gateway
Second to last and last address for broadcast
What is relationship between subnets and regions/zones, and how does it affect firewall rules
Subnets work on a region, which has multiple zones. So subnets can cross zones (for the given region)
Use same subnet IP address so a single firewall rule will work
Subnet expansion features
Can increase IP address space of any subnets without workload shutdown or downtime
Note still cant overlap, need valid CIDR block
Cannot undo
How many IP addresses can a machine have?
- One internal, one (optional) external. Although… see Alias IP Ranges
External IP address types
Ephemeral or static
Static IP address cost more when…
they are not used/assigned
External IP addresses are mapped to…
the internal IP address