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
posta 2 mesi fa210 visualizzazioni
2 Risposte
1
Risposta accettata

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
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
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
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande