Bobcares

OVH Failover IP Setup in Ubuntu | Guide

by | Feb 21, 2024

Learn more about OVH Failover IP Setup in Ubuntu. Our OVH Support team is here to help you with your questions and concerns. configure failover IP addresses on OVHCloud instances

How to Setup Failover IP addresses on OVHCloud instances in Ubuntu

OVHCloud offers users the flexibility to manage and configure their services. This puts the responsibility of ensuring proper functionality on the customers. A key feature offered by OVHCloud is the failover Ips. It allows users to associate multiple IP addresses with a single network interface.

How to setup Failover IP addresses on OVHCloud instances in Ubuntu

This comes in handy for international services or hosting multiple websites. Today, we will look at adding and configuring failover IP addresses on OVHCloud instances running Ubuntu 20.04.

Before diving into the configuration steps, we have to make sure we have the following:

  • An OVHCloud account
  • A Public Cloud instance
  • A failover IP block or a failover IP address
  • Root/administrative access via SSH or GUI access to the instance

Configuration Steps

  1. To begin with, open the network configuration file:

    sudo nano /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg

  2. Then, add the following line to the file and save it:

    network: {config: disabled}

    This will create a configuration file preventing automatic network changes.

  3. Next, verify the network interface name as seen here:

    ip a

  4. Then, open the network configuration file:

    sudo nano /etc/netplan/cloud-init.yaml

  5. Now, we have to add the failover IP address as seen in this example without replacing existing lines:

    version: 2
    ethernets:
    NETWORK_INTERFACE:
    dhcp4: true
    match:
    macaddress: fa:xx:xx:xx:xx:63
    set-name: NETWORK_INTERFACE
    addresses:
    - IP_FAILOVER/32

    Then, save and exit after adding all failover IP addresses.

  6. Now, test the configuration with:

    sudo netplan try

    If successful, we can apply changes with:

    sudo netplan apply

  7. Now, repeat these steps for each failover IP address.

    For example:

    network:
    version: 2
    ethernets:
    eth0:
    addresses:
    - 164.132.150.95/32
    nameservers:
    addresses:
    - 1.1.1.1
    search: []
    optional: true
    routes:
    - to: 0.0.0.0/0
    via: 51.255.79.254
    on-link: true

    The “on-link: true” option is key for functionality.

With the above steps, we can easily configure failover IP addresses on OVHCloud instances running Ubuntu 20.04.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In brief, our Support Experts demonstrated how to setup failover IP addresses on OVH instances in Ubuntu.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF