My customer accountContact SalesWebmailOVHcloud Blog

Welcome to OVHcloud.

Log in to order, manage your products and services, and track your orders

Log in

Configure a failover IP with Ubuntu

Configure a failover IP with Ubuntu

Objective

You may need to configure a failover IP address on your instances, for one of the following reasons:

  • you have a large number of websites on your instance,
  • you host international projects,

In order to do this you can either buy or import a failover IP address for your Public Cloud instances.

However failover IPs will not be automatically configured on your instance.

This guide explains how to configure your instance's network interface so that a failover IP can be allocated to it.

Requirements

Instructions

Configuring the interface

  • Edit the configuration file with the following command:
vi /etc/network/interfaces
  • Add the following lines to the end of the file:
auto ethX:Y
iface ethX:Y inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.255
broadcast xxx.xxx.xxx.xxx

|# Variables|#Values| |X|main interface number (usually eth0 )| |xxx.xxx.xxx.xxx|failover IP to configure| |Y|the number of the alias (starting at 0 and then 1 etc. depending on the number of IPs there are to configure)|

If you have many IPs to allocate, they must be added on the same line: by increasing the value of Y (the alias number)

Restarting the network services

  • Restart the network services with the command:
service networking restart

Go further

Migrating a failover IP

Join our community of users on https://community.ovh.com/en/.


Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.


These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community