DEV Community

Cover image for Day 11.Attach Elastic Network Interface to EC2 Instance
Thu Kha Kyawe
Thu Kha Kyawe

Posted on

Day 11.Attach Elastic Network Interface to EC2 Instance

Lab Information

The Nautilus DevOps team has been creating a couple of services on AWS cloud. They have been breaking down the migration into smaller tasks, allowing for better control, risk mitigation, and optimization of resources throughout the migration process. Recently they came up with requirements mentioned below.

An instance named xfusion-ec2 and an elastic network interface named xfusion-eni already exists in us-east-1 region.

Attach the xfusion-eni network interface to the xfusion-ec2 instance.

Make sure status is attached before submitting the task.

Please make sure instance initialisation has been completed before submitting this task.

Lab Solutions

Step-by-Step Instructions (AWS Console)

  1. Log in

Use your console link and credentials.
Confirm region = us-east-1.

  1. Verify EC2 Instance Status

Before attaching ENI, ensure xfusion-ec2 is initialized.

Go to EC2 → Instances

Select xfusion-ec2

Confirm:

Instance state: Running

Status checks: 2/2 checks passed (NOT “Initializing”)

If still initializing → wait until completed.

  1. Locate the Network Interface

In the EC2 left menu → click Network Interfaces (under Network & Security)

Find the ENI named xfusion-eni

Select it

Make sure the ENI is available (status: "available").
If it is already attached, no action is needed.

  1. Attach the ENI

With xfusion-eni selected:

Click Actions

Click Attach network interface

In the dialog:

Instance: Select xfusion-ec2

Device index: leave default (usually 1)
(Device index 0 is the primary interface; secondary ENIs use index ≥1)

Click Attach

  1. Verify Attachment

After attaching:

ENI status should display: in-use

Under Attachment, you should see:

Status: attached

Instance ID: the ID of xfusion-ec2

On the xfusion-ec2 instance details page → Network interfaces section should list both:

Primary ENI (eth0)

xfusion-eni (eth1 or next index)


Resources & Next Steps


Credits

  • All labs are from: KodeKloud
  • Thanks for providing them.

Top comments (0)