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
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, for example nano
:
sudo nano /etc/netplan/01-netcfg.yaml
fail.over.ip.address
with your failover IP address:
network:ethernets:ens18:addresses:- [ "fail.over.ip.address/32" ]nameservers:addresses: [ "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 performances (https://www.scaleway.com/en/docs/console/account/reference-content/scaleway-network-information/#dns-cache-servers)routes:- to: defaultvia: 62.210.0.1- to: 62.210.0.1/32via: fail.over.ip.addressscope: linkversion: 2
sudo netplan apply
/etc/network/interfaces
with a text editor of your choice, for example, nano
:
sudo nano /etc/network/interfaces
fail.over.ip.address
with your failover IP address:
auto eth0iface eth0 inet staticaddress fail.over.ip.addressnetmask 255.255.255.255pointopoint 62.210.0.1gateway 62.210.0.1
/etc/resolv.conf
:
sudo nano /etc/resolv.conf
nameserver 51.159.47.28nameserver 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
sudo ifup eth0
/etc/sysconfig/network-scripts/ifcfg-eth0
with a text editor of your choice, for example, nano
:
sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0
fail.over.ip.address
with your failover IP address and virtual:mac:address
with the virtual MAC of the VM:
DEVICE=eth0BOOTPROTO=noneONBOOT=yesUSERCTL=noIPV6INIT=noPEERDNS=yesTYPE=EthernetNETMASK=255.255.255.255IPADDR=fail.over.ip.addressGATEWAY=62.210.0.1DNS1=51.159.47.28 # Replace the IP of the DNS cache server with the one located in the same physical location as your machine for optimal performances (https://www.scaleway.com/en/docs/console/account/reference-content/scaleway-network-information/#dns-cache-servers)DNS2=51.159.47.26ARP=yesHWADDR=virtual:mac:address
/etc/sysconfig/network-scripts/route-eth0
as follows, then save and exit the text editor:
62.210.0.1 dev eth0default via 62.210.0.1 dev eth0
sudo ifup eth0
Connect to the desktop of your VM in the virtual console, then open the network settings of your server.
Enter the following information in the network adapter configuration:
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.