What is an Elastic Network Interface (ENI)


Key Components of an ENI

Component Description
Primary Private IP Automatically assigned when the ENI is created; cannot be removed.
Secondary Private IPs Additional IPs that can be manually added to the same ENI.
Elastic IP Can be associated with any of the private IPs for internet access.
MAC Address Unique hardware identifier assigned automatically.
Security Groups One or more security groups attached to control traffic.
Description Optional text to identify the purpose of the ENI.

Use Cases of ENI

  1. High Availability
  2. Network Management
  3. Security Isolation
  4. Load Balancing or Multi-IP Applications
  5. Move Network Interface Between Instances

ENI Attachment Types

Type Description
Primary ENI (eth0) Automatically created when an instance is launched.
Secondary ENI (eth1, eth2, etc.) Can be manually attached to an instance. Useful for custom routing or isolation.

Hands-On: Create and Attach ENI

Step 1: Create an ENI