> ## Documentation Index
> Fetch the complete documentation index at: https://cloud-architect.ipoint-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Elastic Network Interface - Multiple IPs on an EC2

> Hands-on lab · 45m

Launch this lab in the IP Lab Portal, then follow the steps below in the AWS console.

<a className="ip-lab-portal-btn" href="https://labs.intellectualpoint.com/labs/create-elastic-network-interface-multiple-ips-on-an-ec2" target="_blank" rel="noreferrer">
  Open IP Lab Portal
</a>

## Overview

### Lab Details

1. This lab walks you through the steps to launch and configure a virtual machine in the Amazon cloud.
2. You will practice using Amazon Machine Images to launch Amazon EC2 Instances and use user data to create and install a web page using the instance. You will create a web page and publish it.
3. You will also create an additional elastic network interface and an additional elastic IP.  Attach these additional created resources with EC2, and use another security group with HTTPS permission to test it.
4. Duration: **60 minutes**
5. AWS Region: **US East (N. Virginia) us-east-1**

### Introduction

#### What is EC2

* AWS defines it as Elastic Compute Cloud.
* It’s a virtual environment where “you rent” to have your environment created, without purchasing.
* Amazon refers to these virtual machines as Instances.
* Preconfigured templates can be used to launch instances. These templates are referred to as images. Amazon provides these images in the form of AMIs (Amazon Machine Images).
* Allows you to install custom applications and services.
* Scaling of infrastructure i.e., up or down is easy based on the demand you face.
* AWS provides multiple configurations of CPU, memory, storage, etc., through which you can pick the flavor that's required for your environment.
* No limitation on storage. You can pick the storage based on the type of instance that you are working on.
* Temporary storage volumes are provided, which are called Instance Store Volumes.  Data stored in this gets deleted once the instance is terminated.
* Persistent storage volumes are available and are referred to as EBS (Elastic Block Store) volumes.
* These instances can be placed at multiple locations which are referred to as Regions and Availability Zones (AZ).
* You can have your Instances distributed across multiple AZs i.e., within a single Region, so that if an instance fails, AWS automatically remaps the address to another AZ.
* Instances deployed in one AZ can be migrated to another AZ.
* To manage instances, images, and other EC2 resources, you can optionally assign your own metadata to each resource in the form of tags.
* A Tag is a label that you assign to an AWS resource.  It contains a key and an optional value, both of which are defined by you.
* Each AWS account comes with a set of default limits on the resources on a per-Region basis.
* For any increase in the limit, you need to contact AWS.
* To work with the created instances, we use Key Pairs.

#### What is an Elastic Network Interface (ENI)?

* Network Interface is a network card for the virtual machine, multiple ENI's can be attached to a single EC2 instance.
* By default, it gives you a private IPv4 address, you can choose to attach an Elastic IP for a Public IPv4 address.
* While attaching ENI's to EC2 instances, make sure to have your EC2 Instance in the same subnet as ENI.
* You will charged for an Elastic IP Address that is associated with a network interface but the network interface isn’t attached to a running instance.
* You can attach and detach secondary interfaces (eth1-ethn) on an EC2 instance, but you can’t detach the eth0 interface.

### Architecture Diagram

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/001.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=660340f4945ba1ee94473fa5593210a6" alt="" width="2786" height="1613" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/001.png" />

### Task Details

1. Sign in to AWS Management Console.
2. Create a Security Group for the EC2 Instance.
3. Create a Security Group for the Elastic Network Interface
4. Launching an EC2 Instance.
5. Create an Elastic Network Interface and attach it to the EC2 Instance.
6. Allocating Elastic IP Address.
7. Associating an Elastic IP Address with the ENI.
8. Test both the Public IP Address of the Instance.

### Launching Lab Environment

1. To launch the lab environment, Click on the **Start Lab** button.
2. Please wait until the cloud environment is provisioned. It will take less than a minute to provision.
3. Once the Lab is started, you will be provided with **IAM user name**, **Password**, **Access** **Key**, and **Secret** **Access** **Key**.

> **Note** : You can only start one lab at any given time

## Lab guide

### Lab Steps

#### Task 1: Sign in to AWS Management Console

1. Click on the **Open Console** button, and you will get redirected to AWS Console in a new browser tab.
2. On the AWS sign-in page,

   * Leave the Account ID as default. Never edit/remove the 12 digit Account ID present in the AWS Console. otherwise, you cannot proceed with the lab.
   * Now copy your **User Name** and **Password** in the Lab Console to the **IAM Username and Password** in AWS Console and click on the **Sign in** button.
3. Once Signed In to the AWS Management Console, Make the default AWS Region as **US East (N. Virginia) us-east-1.**

#### Task 2: Create a Security Group for the EC2 Instance

1. Make sure you are in the N.Virginia Region.
2. Navigate to **EC2** by clicking on the **Services** menu in the top left, then click on **EC2** in the **Compute** section.
3. On the left panel menu, select the **security group** under the **Network & Security** section.
4. Click on the **Create Security Group** button..
5. We are going to create a security group for the EC2 instance.

   * Security group name: Enter ***EC2-Instance***
   * Description: Enter ***Security group for EC2 Instance***
   * VPC: Select **Default VPC**

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/002.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=24e6d1764f3923c5193d932877620fe1" alt="" width="1046" height="434" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/002.png" />

* Click on the **Add Rule** button under **Inbound rules.**

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/003.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=181226e0971dab6d705d130cb2d9cc72" alt="" width="879" height="197" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/003.png" />

* Type : Select **HTTP**
* Source : Select **Anywhere-IPv4**
* In the textbox add **0.0.0.0/0**
* Click on the **Add rule** button under **Inbound rules.**

  * Type : Select **SSH**
  * Source : Select **Anywhere-IPv4**
  * In the textbox add **0.0.0.0/0**

6. Leave everything as default and click on the **Create Security Group** button.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/004.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=130d3690842b4a61db265104d336a202" alt="" width="1124" height="122" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/004.png" />

#### Task 3: Create a Security Group for the Elastic Network Interface

1. On the left panel menu, select the security group under the Network & Security section.
2. Click on the **Create Security Group** button.
3. We are going to create a Security Group for the Network interface.

   * Security group name: Enter ***Network-Interface-SG***
   * Description: Enter ***Security group for secondary ENI***
   * VPC: Select **Default VPC**

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/005.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=2344cb93e8c4c5c117aef162b8af3b6e" alt="" width="746" height="407" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/005.png" />

* **Inbound rules:**
* Click on the **Add Rule** button under **Inbound rules.**

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/006.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=e02aa9502c1fa4835d7f714722cc89c6" alt="" width="879" height="197" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/006.png" />

* Type : Select **HTTP**
* Source : Select **Anywhere-IPv4**
* In the textbox add **0.0.0.0/0**
* Again click on the **Add Rule** button.

  * Type : Select **SSH**
  * Source : Select **Anywhere-IPv4**
  * In the textbox add **0.0.0.0/0**

4. Leave everything as default and click on the **Create Security Group** button.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/007.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=5f614a292430bb623c47895877db2022" alt="" width="1274" height="122" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/007.png" />

#### Task 4: Launch First EC2 Instance

1. Make sure you are in the **N. Virginia(us-east-1)** Region.
2. Navigate to **EC2** by clicking on the **Services** menu in the top left, then click on **EC2** in the **Compute** section.
3. Navigate to **Instances** from the left side menu and click on **Launch Instances** button.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/008.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=60fbab07d0b219ff78c005cf10d2015e" alt="" width="1186" height="232" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/008.png" />

4. Under the **Name and tags** section :

* Name : ***ENI***

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/009.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=175931b10d8061835ad4457758d29e24" alt="" width="971" height="199" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/009.png" />

5. Under the **Application and OS Images (Amazon Machine Image)** section :

* Select **Quick Start** tab and **Amazon Linux** under it
* Amazon Machine Image (AMI) : select ***Amazon Linux 2023 kernel-6.1 AMI***

  <img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/010.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=e8eb257eef20b2bc49c86d98d4d18e34" alt="" width="1215" height="652" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/010.png" />

6. Under the **Instance Type** section **:**

* Instance Type : Select **t2.micro**

<img src="https://mintcdn.com/ip-cloud-architect-pathway/OGWG_Fy9il7e0mi5/images/labs/implementing-aws-waf-with-alb-to-block-sql-injection-geo-location-and-query-stri/004.png?fit=max&auto=format&n=OGWG_Fy9il7e0mi5&q=85&s=ae20d72fc6dfb46f1b1fc129c638fe69" alt="" width="971" height="260" data-path="images/labs/implementing-aws-waf-with-alb-to-block-sql-injection-geo-location-and-query-stri/004.png" />

7. Under the **Key Pair (login)** section **:**

   * Key pair name : select **Proceed without a key pair**
8. Under the **Network Settings** section **:**

   * Click on **Edit** button
   * Auto-assign public IP: select *Enable*
   * Firewall (security groups) : Select **Select existing security group**
   * Common security groups : Select Security group with name ***EC2-Instance***
9. Under the **Advanced details** section **:**

   * Under the **User data:** copy and paste the following script to create an HTML page served by an Apache httpd web server.

\#!/bin/bash

sudo su

yum update -y

yum install -y httpd

systemctl start httpd

systemctl enable httpd

echo "\<html> \<h1> Response coming from server \</h1> \</ html>" > /var/www/html/index.html

10. Keep everything else as default and click on the **Launch instance** button.
11. **Launch Status:** Your instance is now launching, Navigate to **Instances** page from the left menu and wait until the status of the EC2 Instance changes to **running**.

    <img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/011.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=3180bbbbe065f0dc374bfb3cee093453" alt="" width="1474" height="156" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/011.png" />
12. Copy the **availability zone,** and **subnet id**, we'll need them in the next steps.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/012.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=6c61fc7dde9c819133c30ea8ca13c40f" alt="" width="1293" height="706" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/012.png" />

#### Task 5: Create an Elastic Network Interface and attach it to the EC2 Instance

1. Click on the **Network Interfaces** present in the left sidebar under **Network & Security** category.
2. By default, one network interface will be present.
3. Click on the **Create Network Interface** button to create a network interface.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/013.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=7f2c69bf100304dabed36189271be40e" alt="" width="1189" height="168" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/013.png" />

4. Fill in the details as follows:

* Description: Enter ***Secondary ENI***
* Subnet: Select the subnet that was noted in the previous step, in my case it's **subnet-34ef3d05** and the availability zone is **us-east-1e**.
* Private IPv4 address: Select **Auto-assign**
* Elastic fabric adapter: **Unchecked**

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/014.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=8c53570f493352a789a0a794b9ccd98f" alt="" width="824" height="541" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/014.png" />

* Security group: Select **Network-Interface-SG**
* Tags: Click on the **Add new tag** button.
* Enter **Key** as ***Name*** and **Value** as ***Secondary***.
* Once done, Click on the **Create Network Interface** button.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/015.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=1c2f9240fbda8c3b308861101ad162e5" alt="" width="837" height="631" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/015.png" />

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/016.jpg?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=98ace3c5b47d6a6221a8500f897d17a4" alt="" width="1291" height="210" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/016.jpg" />

5. Now attach the network interface with EC2 instance, to do so perform the following task:

* Select the network interface created now i.e. Secondary one.
* Click on the **Actions** button present on the right top corner.
* Choose **Attach** option from the dropdown menu.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/017.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=bf0fd8d63595a33b1dd23ed1d8218f1c" alt="" width="1459" height="449" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/017.png" />

6. On the popup present, select the **EC2 instance,** and click on the **Attach** button.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/018.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=c5bb3851926c052eaab2cd322a082d8d" alt="" width="754" height="351" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/018.png" />

7. **Secondary** network interface is now attached with the **EC2 instance**.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/019.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=ae6b4191806447cf9ce96364ffbaeaa2" alt="" width="859" height="53" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/019.png" />

#### Task 6:  Allocating Elastic IP Address

1. To use an **Elastic IP** address, you need to allocate one to your account and then associate it with your instance or a network interface.
2. Navigate to **EC2**. Under **EC2 Dashboard** click on **Elastic IP** under **Network & Security** section.
3. Click on  **Allocate Elastic IP address** button.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/020.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=edc6c10f00c1dd547215a9149ff81840" alt="" width="1164" height="201" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/020.png" />

4. Click on **Allocate** directly as there are no changes to be made.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/021.png?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=b763450454a0f7aec6ce2911066966c7" alt="" width="755" height="649" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/021.png" />

5. You can see that the Elastic IP has been allocated successfully as shown below.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/yBF63qR2wAtC6-S5/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/022.jpg?fit=max&auto=format&n=yBF63qR2wAtC6-S5&q=85&s=cd4ef0ece96b996ab2072a28b869d49f" alt="" width="1502" height="223" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/022.jpg" />

#### Task 7: Associating an Elastic IP Address with the ENI

1. Select the Elastic IP address created and click on **Actions**. Choose an option of **Associate Elastic IP address**.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/nYtjlOhcAHEDd4a6/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/023.png?fit=max&auto=format&n=nYtjlOhcAHEDd4a6&q=85&s=e5132b32cf72214609504941e76218c3" alt="" width="1505" height="223" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/023.png" />

2. **Associate Elastic IP address**

* Resource Type: Select **Network interface**
* Network interface: Choose **Secondary**

<img src="https://mintcdn.com/ip-cloud-architect-pathway/nYtjlOhcAHEDd4a6/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/024.png?fit=max&auto=format&n=nYtjlOhcAHEDd4a6&q=85&s=ff1b050379905fa5bfee43f5d9de3b31" alt="" width="1634" height="914" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/024.png" />

* Private IP address: **Select** the IP address present
* Click on the **Associate** button present.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/nYtjlOhcAHEDd4a6/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/025.png?fit=max&auto=format&n=nYtjlOhcAHEDd4a6&q=85&s=3e3b1dd36865c95ef85d2b17fdc4dd6b" alt="" width="1006" height="288" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/025.png" />

3. Now you can see that the instance is associated with the Elastic IP address.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/nYtjlOhcAHEDd4a6/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/026.png?fit=max&auto=format&n=nYtjlOhcAHEDd4a6&q=85&s=0ae9d03e82c380a7997e21bb7fe36081" alt="" width="870" height="72" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/026.png" />

4. Go to the **EC2** Instance, **Refresh** the entire browser tab and we can see that **IPv4 Public IP** and **Elastic IP address** assigned to the same **EC2 Instance.**

i.e. Multiple Public IPs for a single EC2 instance. And, there will be **2 Private IPv4 addresses** assigned.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/nYtjlOhcAHEDd4a6/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/027.png?fit=max&auto=format&n=nYtjlOhcAHEDd4a6&q=85&s=a86066d792ead89bfc470bd4944ee957" alt="" width="1566" height="529" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/027.png" />

#### Task 8: Test both the Public IP Address of the Instance

1. Navigate to **Network Interface**'s page and check both Public IPs.
2. Scroll towards the right to see the Public IPs.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/nYtjlOhcAHEDd4a6/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/028.png?fit=max&auto=format&n=nYtjlOhcAHEDd4a6&q=85&s=684c038229d56c6185e54f10463f4fb0" alt="" width="1441" height="243" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/028.png" />

3. Paste the Elastic IP i.e **Public IPv4 Address** of the **Secondary network interface** in the browser.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/nYtjlOhcAHEDd4a6/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/029.png?fit=max&auto=format&n=nYtjlOhcAHEDd4a6&q=85&s=d77eae7e0b475b7e3bffd958b23d69bf" alt="" width="886" height="142" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/029.png" />

4. And put the **Public IPv4 Address** of the **Primary network interface** in the browser.

<img src="https://mintcdn.com/ip-cloud-architect-pathway/nYtjlOhcAHEDd4a6/images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/029.png?fit=max&auto=format&n=nYtjlOhcAHEDd4a6&q=85&s=d77eae7e0b475b7e3bffd958b23d69bf" alt="" width="886" height="142" data-path="images/labs/create-elastic-network-interface-multiple-ips-on-an-ec2/029.png" />

5. So with this use case, you now have **two public IPs for the one EC2 Instance**.

> #### Do you know?
>
> ENIs allow instances to have multiple private IP addresses. This can be useful in various scenarios, such as hosting multiple websites or applications on a single instance, or when you need separate IP addresses for different purposes like public and private traffic.

1. Once the lab steps are completed, please click on the **Validation** button on the Right side panel.

### Completion and Conclusion

1. You have successfully created and launched Amazon EC2 Instance.
2. You have successfully created an Elastic IP and additional Network Interface.
3. You have successfully created a webpage and published it.

### End Lab

1. Sign out of AWS Account.
2. You have successfully completed the lab.
3. Once you have completed the steps, click on **End Lab** button from the IP Lab Portal dashboard.

## What gets checked

When you press **Check my work**, the platform verifies each of these:

* **Validate EC2 Instance Type t2.micro** — Check whether the EC2 instance type is t2.micro.
* **Create an Elastic IP** — Check whether an Elastic IP is created or not.
* **Associate Elastic IP** — Check whether an Elastic IP is attached to an EC2 Instance or not.
* **Install Apache Web Server** — Check whether Apache Web Server is installed in EC2 Instance or not.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.