General Topics

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration file is called “50-cloud-init.yaml” and is located in /etc/netplan.

Determine Ubuntu NIC interface

    
     ifconfig
    
   
Connect to your server via SSH and run the following command:

Create Ubuntu configuration Network file

Edit Ubuntu Network file using your favorite editor like nano

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

Now, edit the file with the content below, replacing INTERFACE_NAME MAC_ADDRESS and FAILOVER_IP:

    
         version: 2
    ethernets:
        INTERFACE_NAME:
            dhcp4: true
            match:
                macaddress: MAC_ADDRESS
            set-name: INTERFACE_NAME
            addresses:
            - FAILOVER_IP/32

    
   
Save and close the file. You can test the configuration with the following command:

Apply changes to Ubuntu Network

    
     netplan apply
    
   
XsoftHost Support

Share

Recent Posts

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago

How to Uninstall cloudlinux and covert back to centos cpanel server

CloudLinux supports all the hardware supported by RHEL/CentOS, with few exceptions. Exceptions are usually hardware…

6 years ago