EC2 Network interfaces, instance IPs and DNS Flashcards
how many ENIs does an EC2 instance have?
It starts with 1 ENI
Can EC2 instances have more than one ENI?
Yes, they can have more than one ENI in separate subnets, but everything must be within one AZ.
When you launch an instance with Security Groups, where are they allocated?
To the ENI, not to the instance.
Enumerate some ENI properties
- Mac address
- Primary IPv4
- 0 or more secondary private IP addresses
- 0 or 1 public IPv4
Can the private IP of an instance change?
No, it will be static and not change for the lifetime of the instance
What is given with the private IP?
A private DNS name
How many private IPs can an instance have associated?
0 or more
How many public IPs can an instance have associated?
0 or 1
What is given with the public IP?
A public DNS name
Can the public IP of an instance change?
This is a dynamic IP that is not fixed
In which cases will the public IP be removed from the instance?
If you stop an instance. When you start up again, it is given a brand new IPv4 address.
What happens to the public IP when you restart the instance?
The public IP will not change.
Changing between EC2 hosts will…
Change the public IP of the instance.
What is the public DNS name resolved into?
The Public DNS name will resolve to the primary public IPv4 address of the instance
What is the private DNS name resolved into?
The Public DNS name will resolve to the primary private IPv4 address of the instance