> For the complete documentation index, see [llms.txt](https://ysfang82.gitbook.io/development-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ysfang82.gitbook.io/development-notes/aws-notes/service/networking/eip-eni.md).

# EIP & ENI

### **EIP**

**Introduction**

* A static IPv4 address on AWS. Can attach to / detach from EC2 / NAT / ELB

**Scenario**

* Migrate on-premises instances with static trusted IP addresses to AWS
  * Bring the address range to AWS, it appears in your account as an address pool.
  * Create Elastic IP addresses from your Bring Your Own IP (BYOIP) address prefix and use them with AWS resources such as EC2 instances, Network Load Balancers, and NAT Gateways.

### [**ENI**](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html)

**Introduction**

* A virtual network card in VPC

**Scenario**

* Can assign multiple IPs to an EC2 instance for
  * Host multiple websites by using multiple SSL certificates. Associating each certificate with a specific IP address.
  * Operate network appliances, such as firewalls or load balancers, that have multiple IP addresses for each network interface.
  * Redirect internal traffic to a standby instance in case your instance fails, by reassigning the secondary IP address to the standby instance.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ysfang82.gitbook.io/development-notes/aws-notes/service/networking/eip-eni.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
