Warning: session_start(): open(/var/cpanel/php/sessions/alt-php74/sess_d5fd2c21eb9ca1080eab8968fb62ae13, O_RDWR) failed: No such file or directory (2) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358

Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/alt-php74) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358
Configure Network Ubuntu Extra IP To Server Configuration On Ubuntu

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
				
			
Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp

Related Posts

Recent Posts