You can configure a unique gateway for your virtual machines, allowing them to move between hypervisors without changing their network configuration.
- IP address of the unique gateway:
62.210.0.1
Your opinion helps us make a better documentation.
When you install your server with a virtualization solution like Proxmox, you can create multiple virtual machines on the physical server. This setup allows you to have separate environments for different services (e.g., mail and web services) or to optimize the server’s performance by running several virtual machines.
To communicate on the internet, each of your virtual machines needs an IP address. You can use failover IPs to have additional IP addresses available for your server.
You can configure a unique gateway for your virtual machines, allowing them to move between hypervisors without changing their network configuration.
62.210.0.1
To complete the actions presented below, you must have:
Find below examples of network interface configurations on different distributions inside a virtual machine:
Since the release of version 18.04 (Bionic Beaver), Ubuntu has used Netplan for configuring network interfaces. For older releases, refer to the Debian configuration.
/etc/netplan/01-netcfg.yaml
in a text editor of your choice:
sudo nano /etc/netplan/01-netcfg.yaml
<failover_IP>
with your failover IP address:
network:version: 2ethernets:ens18:addresses:- <failover_IP>/32nameservers:addresses: [ "51.159.47.28", "51.159.47.26" ]routes:- to: defaultvia: 62.210.0.1- to: 62.210.0.1/32via: <failover_IP>scope: link
sudo netplan apply
sudo nano /etc/network/interfaces
<failover_IP>
with your failover IP address:
auto eth0iface eth0 inet staticaddress <failover_IP>netmask 255.255.255.255pointopoint 62.210.0.1gateway 62.210.0.1
sudo nano /etc/resolv.conf
nameserver 51.159.47.28nameserver 51.159.47.26
sudo ifup eth0
sudo systemctl restart networking
sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0
<failover_IP>
with your failover IP address and <virtual_MAC>
with the virtual MAC of the VM:
DEVICE=eth0BOOTPROTO=noneONBOOT=yesUSERCTL=noIPV6INIT=noPEERDNS=yesTYPE=EthernetNETMASK=255.255.255.255IPADDR=<failover_IP>GATEWAY=62.210.0.1DNS1=51.159.47.28DNS2=51.159.47.26ARP=yesHWADDR=<virtual_MAC>
sudo nano /etc/sysconfig/network-scripts/route-eth0
62.210.0.1 dev eth0default via 62.210.0.1 dev eth0
sudo ifup eth0
Control Panel → Network & Internet → Change Adapter Options
<failover_IP>
255.255.255.255
62.210.0.1
51.159.47.28
51.159.47.26
Replace the IP of the DNS cache server with the one located in the same physical location as your machine for optimal performance. Check the IPs for each data center
Your opinion helps us make a better documentation.