Infra, Illustrated.
AMAZON VPC · NETWORK INTERFACE CONSOLE

AWS ENI: the network identity behind your workload

See how an Elastic Network Interface binds VPC addresses, subnet placement, security, routing, service ownership, and scaling limits into one network identity.

TEACHING PERSONA · ENI-123INTERMEDIATE · DEEP DIVEPublished Sep 11, 2026 · Reviewed Sep 15, 2026flow-42 · 10.20.1.17 → 10.20.3.25
ACTIVE VIEWNetwork passport
packet / direct path attachment / conceptual
ENI-123 · ap-south-1a
Network passport

One interface, one concrete VPC identity

VPC · 10.20.0.0/16
subnet-app-a · 10.20.1.0/24 · ap-south-1a
OWNER · YOUeni-0abc123available · unattached
Primary IPv4
10.20.1.17
Secondary IPv4
10.20.1.18
IPv6
2001:db8:20:1::17
Security groups
sg-app · sg-observability
Source/dest check
enabled
MAC
02:7b:64:10:20:17

The address and control fields belong to the interface; attachment connects that identity to compute.

Keep this model: An ENI is a subnet-scoped network identity with addresses, security associations, and attachment state.

Address stack

One ENI can carry several IP addresses

eni-0abc123one interface
  • PRIMARY IPv410.20.1.17
  • SECONDARY IPv410.20.1.18
  • SECONDARY IPv410.20.1.19
  • IPv62001:db8:20:1::17

Private IPv4 and IPv6 addresses remain grouped under the same subnet-scoped interface.

Keep this model: One ENI is not limited to one IP address.

Public IPv4 continuity

Elastic IP keeps the public address stable

AUTO-ASSIGNEDPublic IPv4 changes
198.51.100.24stop / start198.51.100.91
Same ENI and private IPv4: eni-0abc123 · 10.20.1.17
ELASTIC IPPublic IPv4 stays fixed
203.0.113.42stop / start203.0.113.42
The EIP remains yours while allocated and associated.

The internet gateway maps public IPv4 to the private address on the ENI. The guest uses its private IPv4; an Elastic IP remains stable only while you keep it allocated.

Stop/start is the lifecycle boundary shown here; a reboot does not replace the auto-assigned public IPv4.

Keep this model: Use an Elastic IP when a public IPv4 must stay fixed while the address remains allocated.

Placement boundary

An ENI belongs to one subnet and one Availability Zone

ap-south-1a
subnet-app-a
ENI-12310.20.1.17
cannot movecreate another ENI here
ap-south-1b
subnet-app-bnew interface boundary

Keep this model: You can detach an ENI, but you cannot move it to another subnet or Availability Zone.

Multi-homed compute

One EC2 instance can use more than one ENI

ap-south-1a
subnet-app-a
primary ENIeth0 · 10.20.1.17
sg-app · app traffic
i-0web123eth0eth1one running instance
subnet-admin-a
secondary ENIeth1 · 10.20.2.17
sg-admin · admin traffic
Two packet paths reach the same EC2 instance through different ENIs. Each interface keeps its own subnet address and security groups.

Both ENIs attach in ap-south-1a. The arrows illustrate incoming flows; egress and return traffic still depend on the guest's route and policy configuration.

Each interface keeps the subnet identity and security groups of its own network.

Keep this model: Multiple ENIs let one instance participate in multiple subnets in the same Availability Zone.

Packet checkpoint lab

Trace the packet from source ENI to destination ENI

Packet gate state
SOURCE ENI10.20.1.17:43122eni-app · sg-app
INTERFACE GATESource SG · egressstateful policy
ALLOW
SUBNET DECISIONRoute tableselects the next hop
ROUTE
SOURCE SUBNET EDGENACL · forward tuplestateless allow
ALLOW
VPC data planeflow-42 · TCP/5432
RETURN REQUIREMENTNACL · ephemeral portseparate stateless rule
ALLOW
DESTINATION INTERFACE GATEDB SG · inbound 5432stateful policy
ALLOW
DESTINATION ENI10.20.3.25:5432RDS PostgreSQL · eni-db
ALLOWEDflow-42 reaches PostgreSQL.

Disable a gate to reveal the first blocker. The diagram is ordered by responsibility, not literal internal implementation.

Keep this model: Routes choose the path; subnet NACLs and interface security groups filter traffic at different boundaries.

ENI morph lab

The primitive stays familiar; ownership and controls change

RESOURCEEC2 instance
INTERFACE ROLEENI-123
YOU
Created by
You
Attached to
EC2 instance
Security groups
You select them
Lifecycle
Detach or delete independently

You can create, attach, detach, modify, and delete this interface within normal EC2 constraints.

Requester-managed interfaces remain observable while the service owns their lifecycle. Change or delete the parent service rather than modifying the interface directly.

Choose a service to see who creates the interface and which controls remain yours.

Keep this model: AWS services reuse VPC interfaces without giving every interface the same lifecycle or ownership.

Container networking

ECS awsvpc gives each task a VPC identity

WITHOUT TRUNKING
container instance
primary ENItask ENItask ENIattachment limit
WITH ENI TRUNKING
container instance
trunk ENIbranch ENIsmore taskssame VPC identity model

Keep this model: Trunking raises task density, but task networking still consumes finite interface and address capacity.

Kubernetes networking

EKS turns interface slots and prefixes into Pod capacity

EC2 worker node
primary ENInode address
secondary ENIsecondary IPs or /28 prefixes
VPC CNI assigns addressespod-apod-bpod-cpod-d

Security Groups for Pods can use branch interfaces for Pod-level policy.

Keep this model: The VPC CNI consumes ENI address capacity; prefix mode changes how that capacity is allocated.

Lambda VPC connectivity

Concurrency does not mean one ENI per invocation

λ1λ2λ3λ4λ5λ6
Hyperplane ENIAWS managed · shared
your subnetRDS / cache / private service

Keep this model: Lambda Hyperplane ENIs are shared managed connectivity for a subnet-and-security-group combination.

Appliance topology

An interface can sit on a routed path

Appliance forwarding state
inspection VPC
workload subnet
workload route table0.0.0.0/0 → eni-inspect-in
application EC2
inspection subnet
ingress ENI10.20.10.10
fw-ec2-aguest routing + policy
egress ENI10.20.10.11
egress subnet
egress route table0.0.0.0/0 → igw
internet gateway
BLOCKEDSource/destination check rejects transit traffic addressed to neither appliance interface.

The route tables choose the appliance; the EC2 source/destination check and guest OS decide whether transit traffic can cross it.

Keep this model: A forwarding appliance needs both AWS-side and guest-side forwarding configuration.

Same-AZ continuity

Move network identity independently from compute

appliance-afailed
detach
→
eni-service10.20.1.50
attach
→
appliance-bsame Availability Zone
The secondary ENI is reattached to appliance-b in the same Availability Zone. Application health and guest routes still need checking.

Keep this model: A secondary ENI and its private addresses can be reassigned for same-AZ failover patterns.

Capacity lab

Networking can stop scaling before compute does

SUBNET FREE IPv42412 of 24Every workload address comes from the subnet.
AVAILABLE WORKLOAD SLOTS1612 of 32Secondary-IP mode is bounded by ENIs and IP slots.
PLACEMENT12 can start12 addresses and 12 slots are available.

Change the demand to see which finite resource becomes the placement blocker.

Keep this model: Subnet addresses, ENI limits, and address slots or prefixes all participate in workload capacity.

Evidence path

Follow the ENI, then follow the packet

  1. 01
    Source identityENI, IP, subnet, AZ, attachment, owner
  2. 02
    Route decisionsource subnet route table and next hop
  3. 03
    Security gatesSG stateful rules and NACL rules in both directions
  4. 04
    Destination identityresolved IP, destination ENI, listener and return path
  5. 05
    Observed evidenceVPC Flow Logs, service health, guest routes and counters

VPC Flow Logs record traffic metadata. They do not contain packet payloads or replace a guest capture when that level of evidence is needed.

Keep this model: Start from the source interface and stop at the first missing fact or failed control.

Name collision

ENI, ENA, and EFA answer different questions

VPC RESOURCEENI

Addresses, subnet, security groups, attachment and observable flows.

DEVICE TECHNOLOGYENA

Enhanced Networking adapter and driver used by supported EC2 instances.

HPC / ML FABRICEFA

Low-latency device with OS-bypass capabilities for tightly coupled workloads.

Keep this model: ENI is VPC network identity; ENA and EFA describe networking device or fabric capabilities.

Architecture map

Find the interfaces hiding across a VPC

production VPC · 10.20.0.0/16
ALB nodeENI-backed VPC presence
EC2 instanceENI-backed VPC presence
ECS taskENI-backed VPC presence
EKS node + PodsENI-backed VPC presence
Lambda Hyperplaneservice-managed network presence
RDS databaseservice-managed network presence
NAT Gatewayservice-managed network presence
Interface endpointservice-managed network presence

Keep this model: The ENI is a common VPC primitive; ownership and supported controls still belong to each service.