I have an Amazon instance. This instance has two interfaces. Each interface has two elastic ips. So, in total, this instance has 4 elastic ips.
I would like to know how I can get the associated private ip given a public ip or the assoicate public ip given a private ip.
For example, say my instance has these public - private ips:
80.0.0.0 - 10.0.0.0
80.0.0.1 - 10.0.0.1
80.0.0.2 - 10.0.0.2
80.0.0.3 - 10.0.0.3
I would like to know if there is a way to do something like
aws ip-mapping 80.0.0.0
With this returning 10.0.0.0
Or alternatively, something like:
curl http://169.254.169.254/latest/meta-data/network/interfaces/ip-mapping/80.0.0.0/
What is the best way to find the mapping between a private ip and a public ip or a public ip and a private ip for amazon instances using elastic ips in vpc?
Thanks!