An IP address of EC2 instance gets changed after the restart

后端 未结 5 828
臣服心动
臣服心动 2020-12-18 05:52

I am running an EC2 Linux instance. For some maintenance purposes I shutdown the instance and started it again. However, EC2 IP has changed now.

How to keep an IP ad

5条回答
  •  粉色の甜心
    2020-12-18 06:33

    If you don't want your IP affffdress to be changed after stopping and starting your EC2 Instance, use Elastic IP. For more reference on how to use Elastic IP:
    https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html

提交回复
热议问题