简体   繁体   中英

AWS Elastic IP not in subnet?

So I have a domain on AWS and an EC2 instance. I am trying to add an elastic IP to the EC2 instance but when I try to do that it says 'IP address not in subnet' What does this mean and how do I fix it? I would appreciate some help!

An Elastic IP address maps a Public IP address to a Private IP address.

When associating an Elastic IP, you must supply either :

  • An Instance ID, or
  • A Network Interface ID, or
  • A Private IP address

Your IP address not in subnet error suggests that it is trying to associated a Public IP address with a Private IP address that is not in a subnet.

If your instance has only one network interface, it is easiest to specify the Instance ID.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM