How to implement virtual IPs on AWS?

10,304

I found a solution to this, it involves using the ec2-associate-address command line utility.

One would have to setup check scripts; and upon failure use ec2-associate-address to take over the elastic IP address. This only works with Elastic IPs (unfortunately) and is the closest I can get on AWS with virtual IPs.

More information is here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html

Share:
10,304

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin almost 2 years

    Is it possible to create floating IPs within Amazon? More specifically within the VPC? If so, how can I do this? Their documentation doesn't seem to point me in the right direction. The best I could find was this: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ElasticNetworkInterfaces.html

    You can create an ENI, attach it to an instance, detach it from an instance, and attach it to another instance. An ENI's attributes follow the ENI as it is attached or detached from an instance and reattached to another instance. When you move an ENI from one instance to another, network traffic is redirected to the new instance.

    But that can't be a real solution...

    • Dusan Bajic
      Dusan Bajic over 10 years
      I see... thanks for the pointer (I can't help you though, but check ELB, it might be the way to go).
    • Rico
      Rico over 10 years
      What are you trying to design for ? Mysql Fault tolerance/redundancy ?