VPC Flashcards
What is CIDR
What are the 2 pieces of CIDR?
A method for defining IP ranges
The IP and the subnet mask /0 - /32
How do the ranges for subnet masks work when Starting at 192.168.0.0
/32 => Allows for 1 IP (2^0) –> 192.168.0.0
/31 => Allows for 2 IP (2^1) –> 192.168.0.0 - 192.168.0.1
/30 => Allows for 4 IP (2^2) –> 192.168.0.0 - 192.168.0.3
/29 => Allows for 4 IP (2^2) –> 192.168.0.0 - 192.168.0.8
/28 - 16 /27 - 32 /26 - 64 /25 - 128 /24 - 256 (2 ^ 8)
/16 - (2^ 16) –> 192.168.0.0 - 192.168.255.255
/0 - All IPs
In terms of Octets, how do CIDR ranges work?
If you break the IP down in to 4 Octets from left to write
/32 means no octet can change (1 IP)
/24 means last octet can change (256 IPs)
/16 means last 2 octets can change (65,536 IPs)
/8 means last 3 octets can change
/0 means all octets can change.
What are some of the important ranges for private IP addresses?
What are the min and max ranges for CIDR on a VPC?
What is the maximum number or CIDRs you can have on a VPC?
What should you be careful of when creating CIDRs
- 0.0.0/8 - Big private netowrks
- 16.0.0/12 - AWS default VPC range
- 168.0.0/16 - Home networks
/28 - /16 (16 - 65,536)
5
That they do not overlap with other IP ranges you have defined for your other private networks, otherwise they will not be able to communicate.
How many IPs are reserved by AWS per CIDR range?
Exam tip, if you need 29 IP addresses, what CIDR range would you choose?
5
/27
What is an internet gateway?
How many internet gateways can a VPC be attached to?
How many VPCs can an internet gateway be attached to?
It allows resources like EC2 in a VPC to connect to the internet. However this isn’t enough to provide internet access. The route tables must also be edited.
1
1
What is the AWS default VPC CIDR Range
172.16.0.0/12 - AWS default VPC range
What is a bastian host?
An instance you forward traffic from to reach a host on a private network
What is s Network Address Translation (NAT)?
Where must the NAT be launched from?
What setting must be disabled on EC2
What else must it have?
Allows an EC2 instance in a private network to connect to the internet
A public subnet
Source/destination check
An elastic IP address associated with it
What is a NAT gateway?
Who manages security groups for a NAT gateway?
AWS Managed NAT with higher bandwidth, and HA (Within a Single AZ)
There are no security groups for a NAT gateway
How do you configure an NAT Gateway for HA
In terms of a Bastian host, what is the difference between the NAT Gateway and a NAT instance?
Does a NAT gateway work with IPv6?
Must create multiple NAT Gateways in multiple AZs for fault-tolerance.
A NAT gateway cannot be used as a bastian host, but a NAT instance can.
No
What is the maximum bandwidth for a NAT Gateway?
What about for an EC2 instance?
45GBps
Depends on the instance type.
What is DNS Resolution (enableDNSSupport)?
What will your application query if this is turned on?
What does the DNS Hostname setting (enableDnsHosnames) do?
What does setting these both to true enable?
Allows you to resolve the public DNS names within the internet via Route53.
The AWS DNS server or the reserved IP address at the base of the VPC IPv4 network range
If it is not enabled, your public instance will only have a private DNS name. If it is enabled, it will also have a public DNS name
It enables your to reach instances on a private network via a private domain name like web.mycompany.private (intranet)
What is a NACL?
What does it mean for a NACL to be stateless?
What does it mean for a Security Group to be stateful?
What does the default NACL allow?
How many NACLs can a subnet be associated with?
How many subnets can a NACL be associated with?
What changes are needed to a NACL when adding subnets within a NACL?
How does priority work on a NACL rule?
It’s like a firewall at the subnet level
It means that both requests and responses will be evaluated based on the NACL rules regardless of if a request was initially allowed or not.
It mean that the SG will remember if a network request is a response to a request that was already allowed to cross the security group. In this case the response will not be evaluated against the security group
It allows everything in and everything out
1
Many
You must update the NACL rules
It is based on the rule number? The lower the number, the higher the priority. HIGHER PRIORITY RULES WILL OVERRIDE LOWER PRIORITY RULES
What is an ephemeral port and how does it work?
Clients connect to a host like a webserver on a fixed port. Ex port 80. This request is coming from an ephemeral port. The client will also receive a response on this port