Networking Flashcards
Are VPCs bound to a specific zone?
No, vpcs are not bound geographically and can create subnets which are multi-zonal
Can you change the size of a subnet without affecting already existing VMs?
Yes, you can increase the address range of the subnet but not decrease it
How can two vpcs exchange traffic with one another?
By using vpc peering
How do you share vpc between multiple projects?
Shared VPC
What is the two types of vpcs and what are their differences?
Auto mode vcps and custom mode, auto mode vpcs generate a subnet per region automatically and each subnet can have a max address range of 16. Custom mode vpcs do not create subnets by default.
How many ips are reserved per subnet and what are they used for?
4 ips
- First ip - Network Ip
- Second Ip - Gateway Ip
- 2nd last Ip - Google used
- Last Ip - Broadcast
What is Private Google Access and what is it used for?
Private google access is a configuration for subnets that allows them to use private ips to reach google services. Otherwise a public ip with internet connection must be used.
What are the two types of IPs, describe them
Ephemeral and Static, ephemeral live whilst the resource their attatched to exists, static ip addresses still exist after the resource is destroyed and can be reassigned to another.
Ephemeral Ips can be converted to static.
What command allows you to promote a ephemeral ip address to a static one.
gcloud compute adresses create promoted-external –adresses (ip) –region (region)
What different bgp routing modes can vpcs have?
Regional and Global
Regional has cloud routers share local subnet routes to BGP peers
Global has cloud routers share subnets from all regions to BGP peers
Which command expands subnet ip address range?
gcloud compute networks subnets expand-ip-range (subnet-name) –region (region) –prefix-length (prefix-length)
What is the command to create a new vpc?
gcloud compute networks create (network-name) –subnet-mode (mode) –range (range, not needed)
Which command allows you to create a subnet?
gcloud compute networks subnets create (subnet name) –network (network name) –region (region)
What are the 3 types of NATing?
Static - 1 to 1 private to public ip translation
Dynamic - 1 to many private to pool of public ips
PAT - many to 1 private to public ip translation with external communications being seperated by port