Configuring IP Failover on a Compute Instance

Traducciones al Español
Estamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
Create a Linode account to try this guide with a $100 credit.
This credit will be applied to any valid services used during your first 60 days.

There’s always a small possibility that your Compute Instance may be powered off or become inaccessible, perhaps due to your own internal configuration issues or due to planned (or unplanned) maintenance. When this happens, any websites or services hosted on that Instance might also stop working. To configure services as highly available (and prevent them from going down), there are a few options you can consider:

  • IP failover: Routes an IP addresses’s traffic to a secondary Compute Instance in the event the original Instance goes down.
  • Load balancing: Load balancing solutions, such as Linode’s NodeBalancers or HAProxy, can route incoming requests to preconfigured backend Compute Instances. This provides quite a lot of flexibility for your own unique highly available setup.

This guide covers configuring IP failover to enable high availability. IP failover allows two Linode Compute Instances to share a single IP address, one serving as the primary and one serving as the secondary. If the primary Compute Instance becomes unavailable, the IP address will seamlessly failover to the secondary Compute Instance. Once the primary instance is back online, the IP address will fallback to that instance.

IP Sharing

Within Linode’s platform, IP failover is configured by enabling IP Sharing and manually installing and configuring software on both the primary and secondary Compute Instances. Linode’s IP Sharing feature has traditionally been implemented using keepalived and was available in limited data centers. New planned network infrastructure upgrades drop keepalived supported in favor of BGP routing using software like FRR. Review the list below to learn which data centers support IP Sharing.

Data CenterIP Sharing AvailabilitySoftware
Atlanta (Georgia, USA)Not supported-
Dallas (Texas, USA)Supported, IPv4 onlykeepalived
Frankfurt (Germany)*Partially supported, IPv4 onlykeepalived
Fremont (California, USA)Supported, IPv4 onlykeepalived
London (United Kingdom)Supported, IPv4 onlykeepalived
Mumbai (India)Not supported-
Newark (New Jersey, USA)Supported, IPv4 onlykeepalived
SingaporeSupported, IPv4 onlykeepalived
Sydney (Australia)Not supported-
Tokyo (Japan)Supported, IPv4 onlykeepalived
Toronto (Canada)Not supported-

* The Frankfurt data center is currently undergoing network infrastructure upgrades. During this time, a Compute Instance may be located on hardware that does not yet support IP Sharing. Once the upgrades are complete, IP Sharing will be configurable through BGP routing software like FRR instead of keepalived.

Note
IP failover for VLAN IP addresses is supported within every data center where VLANs are available. This feature does not depend on Linode’s IP Sharing feature and is configurable through keepalived.

Configuring IP Failover

To configure IP failover, follow the instructions for the software implementation method supported by your data center:

This page was originally published on


Your Feedback Is Important

Let us know if this guide made it easy to get the answer you needed.


Join the conversation.
Read other comments or post your own below. Comments must be respectful, constructive, and relevant to the topic of the guide. Do not post external links or advertisements. Before posting, consider if your comment would be better addressed by contacting our Support team or asking on our Community Site.