Elastic IP for NAT gateways

0

Why EIP is needed for NAT gateway. It should be attached with a static public IP to connect with IGW but why elastic IP specifically?

Jehan
asked 2 months ago200 views
2 Answers
1
Accepted Answer

An Elastic IP is used because it allows you to detach the IP address from the NAT Gateway and then reuse it again for something else that is public-facing - even another NAT Gateway. This is useful because many organisations use your IP address as a (very blunt!) security mechanism to allow access to their applications; so having the ability to migrate the Elastic IP from one NAT Gateway to another is very useful.

If we were to use a Public IP for NAT Gateway that IP address would go back into the larger pool of available IP addresses when a NAT Gateway is decommissioned. Then you have no opportunity to reuse it which might cause you pain. As it is, if you don't want to reuse an Elastic IP you can release it anyway.

profile pictureAWS
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed a month ago
1

An Elastic IP address is a public IPv4 address, which is reachable from the internet.

This is required to assign a public IP to a Nat gateway.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html

profile picture
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions