Please enable JavaScript.
Coggle requires JavaScript to display documents.
VPC In AWS, What is VPC (Virtual Private Cloud)?, Describe CIDR Blocks,…
VPC In AWS
An elastic network interface (referred to as a network interface in this documentation) is a logical networking component in a VPC that represents a virtual network card
-
-
-
One public IPv4 address, which can be auto-assigned to the network interface for eth0 when you launch an instance
-
You can create a network interface, attach it to an instance, detach it from an instance, and attach it to another instance
network interface's attributes follow it as it is attached or detached from an instance and reattached to another instance
When you move a network interface from one instance to another, network traffic is redirected to the new instance.
Each instance in your VPC has a default network interface (the primary network interface) that is assigned a private IPv4 address from the IPv4 address range of your VPC
-
-
-
-
IP addresses enable resources in your VPC to communicate with each other, and with resources over the internet. Amazon EC2 and Amazon VPC support the IPv4 and IPv6 addressing protocols.
Your VPC can operate in dual-stack mode: your resources can communicate over IPv4, or IPv6, or both.
-
-
Private IPv4 addresses
When you launch an instance into a VPC, a primary private IP address from the IPv4 address range of the subnet is assigned to the default network interface (eth0) of the instance.
Each instance is also given a private (internal) DNS hostname that resolves to the private IP address of the instance.
referred to as private IP addresses in this topic) are not reachable over the internet, and can be used for communication between the instances in your VPC
If you don't specify a primary private IP address, we select an available IP address in the subnet range for you.
You can assign additional private IP addresses, known as secondary private IP addresses, to instances that are running in a VPC.
-
A private IP address remains associated with the network interface when the instance is stopped and restarted, and is released when the instance is terminated
Public IPv4 addresses
All subnets have an attribute that determines whether a network interface created in the subnet automatically receives a public IPv4 address (also referred to as a public IP address)
when you launch an instance into a subnet that has this attribute enabled, a public IP address is assigned to the primary network interface (eth0) that's created for the instance
A public IP address is mapped to the primary private IP address through network address translation (NAT).
-
A public IP address is assigned from Amazon's pool of public IP addresses; it's not associated with your account. When a public IP address is disassociated from your instance, it's released back into the pool, and is no longer available for you to use.
If you require a persistent public IP address allocated to your account that can be assigned to and removed from instances as you require, use an Elastic IP address instead
If your VPC is enabled to support DNS hostnames, each instance that receives a public IP address or an Elastic IP address is also given a public DNS hostname.
We resolve a public DNS hostname to the public IP address of the instance outside the instance network
-
IPv6 addresses
Your instance in a VPC receives an IPv6 address if an IPv6 CIDR block is associated with your VPC and your subnet
-
-
Your subnet is configured to automatically assign an IPv6 address to the primary network interface of an instance during launch.
You assign an IPv6 address to a network interface in the same subnet, and attach the network interface to your instance after launch.
When your instance receives an IPv6 address during launch, the address is associated with the primary network interface (eth0) of the instance
-
-
An IPv6 address persists when you stop and start your instance, and is released when you terminate your instance.
You cannot reassign an IPv6 address while it's assigned to another network interface you must first unassign it.
You can assign additional IPv6 addresses to your instance by assigning them to a network interface attached to your instance.
The number of IPv6 addresses you can assign to a network interface, and the number of network interfaces you can attach to an instance varies per instance type
IPv6 addresses are globally unique, and therefore reachable over the internet.
You can control whether instances are reachable via their IPv6 addresses by controlling the routing for your subnet
-
-
-
-
-
-
-
-
-