Course contentsShow
← Cloud and Infrastructure
Lesson 190 of 2,9894. Cloud Networking BasicsFree lesson

Elastic IP Addresses

Learn about static public IP addresses that can be assigned to cloud resources for persistent internet addressing.

Elastic IP Addresses

What you'll learn: How to use static public IP addresses that stay with your cloud resources even when they restart.

What Is an Elastic IP?

An Elastic IP (EIP) is a static, public IPv4 address that you can allocate to your cloud account and assign to resources like virtual machines. Unlike the dynamic public IPs that are randomly assigned when you launch an instance, an Elastic IP remains constant—it doesn't change when you stop and restart your resource.

Think of it like getting a permanent phone number for your business instead of a temporary one that changes every time you close and reopen your shop. Your customers (internet users) can always reach you at the same number (IP address).

Why Use Elastic IPs?

When you launch a VM in a public subnet with an internet gateway attached, it typically gets a random public IP. But if you stop and restart that instance, it receives a different public IP. This breaks any external connections or DNS records pointing to the old address.

Elastic IPs solve this by giving you a persistent public address that you can:

  • Reassign to different instances instantly
  • Keep mapped to DNS records without changes
  • Retain in your account even when not attached to anything

How They Work

You allocate an Elastic IP to your cloud account (it comes from the provider's pool of public addresses). Then you associate it with a specific resource, like an EC2 instance. If that instance fails, you can quickly remap the Elastic IP to a backup instance—no DNS changes needed.

Key Takeaway: Elastic IPs provide stable, persistent public addresses for cloud resources, enabling reliable internet connectivity and fast failover without changing your public-facing IP address.