0

curl http://169.254.169.254/latest/meta-data/public-ipv4 will fetch the floating ip for the primary interface eth0. But I want to fetch the secondary interface floating ip.

is there way to fetch the floating ip of eth1 ?

ramesh k
  • 23
  • 6
  • Have you tried `http://169.254.169.254/latest/meta-data/network/interfaces/macs/mac/public-ipv4s` (replace **mac** with the actual mac address of the ENI) – jellycsc Mar 17 '22 at 15:53
  • @jellycsc There is no network available – ramesh k Mar 17 '22 at 16:17
  • ' curl http://169.254.169.254/latest/meta-data -------------------> ami-id ami-launch-index ami-manifest-path block-device-mapping/ hostname instance-action instance-id instance-type local-hostname local-ipv4 placement/ public-hostname public-ipv4 public-keys/ reservation-id' – ramesh k Mar 17 '22 at 16:32

0 Answers0