'AWS EC2 instance having multiple addresses

Is it possible for my AWS instance to have multiple public IPs? I already tried associating Elastic IP but.. When I went inside my server and executed curl ifconfig.me, it only returns 1 IP address



Solution 1:[1]

You can attach several ENIs to a single machine.

Each ENI can also have several IP v4 addresses, and for each of them you can attach one Elastic?IP.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html

Different ENIs are seen on the host as different network cards, so you will need to explicitly route the traffic to one or another to see the public IP?changing on ifconfig.me

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Floh