Networking

Elastic Network Interface

A virtual network card with private IPs, a MAC address, and security groups that can be attached to an instance.

How it works

An Elastic Network Interface is a virtual network card in a VPC, containing configuration such as private IPv4 addresses, a MAC address, and security groups. You can attach multiple interfaces to a supported EC2 instance to create separate network paths. A secondary interface can be detached and attached to another suitable instance, preserving the interface's network identity.

When to use it

Choose it when the requirement is preserve a network interface identity while changing the instance.

Real-world example

A team operates a firewall server that needs separate management and application traffic. They attach two network interfaces from different subnets in the same Availability Zone and configure appropriate routing and security rules.

Common pitfall

A network interface is tied to its original subnet and can attach only to an instance in the same Availability Zone, subject to AWS attachment rules. A primary interface cannot be detached from its instance.

Often confused with

Compare its service boundary with EC2 Hibernate; choose from the workload requirement.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning