Navigate to the network interface configuration folder using the following command:
cd /etc/sysconfig/network-scripts
Create a new virtual interface with:
nano ifcfg-eth0:0
The file will be created and opened with the text-editor “nano”. Now the following paragraphs must be added:
DEVICE=eth0:0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.51.100.42
NETMASK=255.255.255.255
systemctl restart network
or
sudo reboot
See the video:https://youtu.be/-Y5LXdpnEYY
Followed by: Contabo VPS