Create A Network Interface And Attach It To An EC2 Instance

Create A Network Interface And Attach It To An EC2 Instance

Create a Network Interface and attach it to an EC2 instance

Hello Everyone

Welcome to CloudAffaire and this is Debjeet

In the last blog post, we have discussed Elastic Network Interface or simply Network Interface.

https://cloudaffaire.com/elastic-network-interface/

In this blog post, we are going to create a Network Interface and attach it to an EC2 instance

Below is the prerequisite for this demo

One active AWS account

One running EC2 Amazon Linux instance

Create a Network Interface and attach it to an EC2 instance

Step 1: Login to AWS console and click EC2 under compute

Create A Network Interface And Attach It To An EC2 Instance

Step 2: Navigate to ‘Network Interfaces’ located under NETWORK & SECURITY. Click ‘Create Network Interface’.

Create A Network Interface And Attach It To An EC2 Instance

Note: We already have a network interface created during EC2 instance launch.

Step 3: Provide a description, subnet, private IP, and security groups for your network interface. Click ‘Yes, Create’.

A new network interface has been created successfully.

Create A Network Interface And Attach It To An EC2 Instance

Note: In order to attach to an EC2 instance, your instance and network interface subnet and availability zone must be the same. You can provide the private IP manually, else AWS will auto assign one to your network interface.

Create A Network Interface And Attach It To An EC2 Instance

Next, we are going to attach this network interface to the instance.

Step 4: Select the network interface and click ‘Attach’.

Create A Network Interface And Attach It To An EC2 Instance

Step 5: Select instance id from the drop down and click ‘Attach’

Create A Network Interface And Attach It To An EC2 Instance

A new network interface with a new private IP address has been attached to the instance

Create A Network Interface And Attach It To An EC2 Instance

Create A Network Interface And Attach It To An EC2 Instance

Hope you have enjoyed this blog post. In the next blog, we are going to discuss Load Balancers.

 

Leave a Reply

Close Menu