Categories
Linux

OVH: How to add Additional IP Addresses (IP Alias) on Ubuntu 16.04 / 18.04

Adding additional IP addresses in OVH is rather unconventional and the guide they point to in their mail is non-existent. The process, fortunately, is simple:

  1. ssh to the server as root
  2. cd /etc/systemd/network/
  3. vi *-default.network
  4. Add the new IP address after the original IPv4 Address
    DHCP=no
    Address=Main_IP/24
    Address=Failover_IP/32
  5. Save and close the file
  6. Reboot the server

You should now be able to ssh to the server using the new IP Address (which OVH likes to call Failover IP Address) in addition to the old one.
Repeat the process for any additional IP addresses.
Note: I have tested it on two different OVH Servers (in France & Canada) for Ubuntu 16.04 and Ubuntu 18.04.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.