{"id":15584,"date":"2018-08-13T21:26:43","date_gmt":"2018-08-13T21:26:43","guid":{"rendered":"http:\/\/blog.taragana.com\/?p=15584"},"modified":"2018-10-14T12:18:43","modified_gmt":"2018-10-14T12:18:43","slug":"ovh-how-to-add-additional-ip-addresses-ip-alias-on-ubuntu-16-04-18-04","status":"publish","type":"post","link":"https:\/\/blog.taragana.com\/ovh-how-to-add-additional-ip-addresses-ip-alias-on-ubuntu-16-04-18-04-15584","title":{"rendered":"OVH: How to add Additional IP Addresses (IP Alias) on Ubuntu 16.04 \/ 18.04"},"content":{"rendered":"

Adding additional IP addresses in OVH is rather unconventional and the guide they point to in their mail is non-existent. The process<\/a>, fortunately, is simple:<\/p>\n

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

    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.
    \nRepeat the process for any additional IP addresses.
    \nNote: I have tested it on two different OVH Servers (in France & Canada) for Ubuntu 16.04 and Ubuntu 18.04.<\/p>\n","protected":false},"excerpt":{"rendered":"

    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: ssh to the server as root cd \/etc\/systemd\/network\/ vi *-default.network Add the new IP address after the original IPv4 Address DHCP=no Address=Main_IP\/24 Address=Failover_IP\/32 Save and close the file Reboot the […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[39,78,109],"_links":{"self":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/15584"}],"collection":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/comments?post=15584"}],"version-history":[{"count":1,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/15584\/revisions"}],"predecessor-version":[{"id":15817,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/15584\/revisions\/15817"}],"wp:attachment":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/media?parent=15584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/categories?post=15584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/tags?post=15584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}