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
feita há 2 meses211 visualizações
2 Respostas
1
Resposta aceita

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
ESPECIALISTA
respondido há 2 meses
profile picture
ESPECIALISTA
avaliado há 2 meses
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
ESPECIALISTA
respondido há 2 meses
profile picture
ESPECIALISTA
avaliado há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas