Failover IP - Scaleway Dedibox

Failover IP Scaleway Dedibox - Overview

Failover IP addresses are additional IP addresses, available for Scaleway Dedibox Servers. They allow you to move an IP from one server to another without changing your whole configuration. Failover IPs can also be used as additional IP addresses to create virtual machines on your Scaleway Dedibox Server.

This documentation provides information on the following topics:

Requirements

Ordering a Failover IP for Scaleway Dedibox

1 . Connect yourself to your Scaleway Dedibox Console

2 . Click on Server in the IP failover in the menu on top of the page:

3 . The failover IP configuration page displays. Click Order IP Addresses

4 . A list of available /27 failover IP blocks and individual failover IPs displays.

  • Failover IP blocks are /27 IP subnets containing 32 IP addresses. These blocks are available for all Scaleway Dedibox servers that have the Business Service.

  • Individual IP addresses are additional IPs for Scaleway Dedibox servers. These IPs can be assigned to any Dedibox server in all datacenters. The number of available failover IPs per server may vary depending on the commercial offer.

5 . Choose one or several of the individual IPs or an IP block and click Command IP Failover

6 . The setup fees and the monthly rental fees for the selected IP address are shown, confirm by clicking Order:

Allocating a Failover IP

Once you have ordered a failover IP, you can configure it to be allocated to one of your Scaleway Dedibox Servers.

2 . Click on Server in the IP failover in the menu on top of the page:

3 . The failover IP configuration page displays. The available failover IPs are listed in the IP Failovers box, the available Dedibox servers are grouped per datacenter on the right. Drag and drop the failover IP onto one of the servers to allocate it to it:

4 . Click Update to confirm the failover IP configuration.

5 . A summary displays. Validate it by clicking Update:

Once validated, the routing table is being updated and the failover IP will be routed to the chosen server.

To change the destination of a failover IP, drag & drop it to the desired machine and update the configuration.

Configuring a Failover IP

A failover IP needs to be configured on the Scaleway Dedibox Server to make it reachable.
The configuration depends on the Operating System running on the machine.

Configuring a Failover IP on Ubuntu

On the latest LTS release of Ubuntu (Version 18.04 Bionic Beaver) you can configure the Failover IP using Netplan. If you prefer a more traditional configuration, refer to the Debian section of the documentation.

1 . Edit the file /etc/netplan/01-netcfg.yaml and configure static networking for your server.

2 . IP addresses in the configuration file have to be specified in CIDR notation. The netmask is /24 for the principal IP of the server and /32 for each failover IP.
Your configuration file should look like in the following example:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp1s0f0:
      addresses: [163.172.123.123/24, 212.83.123.123/32]
      gateway4: 163.172.123.1
      nameservers:
        addresses: [ "62.210.16.6", "62.210.16.7" ]

Note: The interface name for your primary interface may be different than enp1s0f0. You can use the ip link show command to determine the name of your public Internet interface.

3 . Save the configuration file once edited as required and quit the text editor. Then apply the configuration using the following command:

sudo netplan apply

Configuring a Failover IP on Debian

1 . Open the file /etc/network/interfaces in your favourite text editor.

2 . Edit the file and add the failover IP as shown in the following example:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
  	 address 195.154.123.123
  	 netmask 255.255.255.0
  	 gateway 195.154.123.1
auto eth0:0
iface eth0:0 inet static
     address ip_failover
     netmask 255.255.255.255

Note: The interface name of your server might be different depending on the hardware of the server. You can use the ip link show command to determine the name of your public Internet interface.

3 . Save the file and quit the editor.

4 . Bring the interface up using the ifup command:

ifup eth0:0

Configuring a Failover IP on CentOS

1 . Copy the default network configuration file to create an alias:

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0

2 . Open the file /etc/sysconfig/network-scripts/ifcfg-eth0:0 in your favourite text editor and modify it as in the following example:

DEVICE="eth0:0"
BOOTPROTO=static
IPADDR="my_failover_ip"
NETMASK="255.255.255.255"
ONBOOT=yes

3 . Save the file, exit the text editor and run the following command to reload the network configuration:

/etc/init.d/network restart

Configuring the Reverse DNS

Reverse DNS, or rDNS, is exactly the opposite of classic forward DNS as we know it. Forward DNS maps a hostname to an IP address. Reverse DNS means we are mapping the IP address to a hostname. This can be very useful, especially if you want to send emails from your Scaleway Dedibox.

1 . Click on Server, Network configuration in the menu:

2 . The network configuration page displays. Click the ⚙ icon (1) next to the failover IP address to update, to display the menu. Then on Edit reverse (2):

Note: You can edit multiple failover IPs at once, by clicking the Edit Reverses button.

3 . Enter the new reverse DNS entry for the failover IP and click Update:

Note: Make sure that a corresponding A-Record pointing to the IP address exists before editing the reverse DNS of an IP address.

Adding a Virtual MAC Address

Virtual MAC addresses are virtual interface identifiers and are required for virtualization. If you run multiple virtual machines on a physical Scaleway Dedibox Server, you can configure the MAC address of its virtual network interface to the virtual MAC associated to the failover IP to ensure network connectivity of the virtual machine.

Note: Virtual MAC addresses are only required for virtualization purposes. If you want to configure the failover IP as a second interface on the host OS, no virtual MAC is required.

1 . Click on Server, Server list to display the listing of your Scaleway Dedibox Servers:

2 . Select the Dedibox to configure from the server list and click on Manage.

3 . The server overview displays. Scroll down to the Network section of the page. Click + more info next to the IP address that you want to configure.

4 . Click Add Virtual MAC:

5 . The list of your failover IPs and their associated MAC addresses displays. Click on the ⚙ icon next to the failover IP you want configure.

6 . Choose a type for the virtual MAC address:

  • VMware: 00:50:56
  • Xen: 00:16:3e
  • KVM: 52:54:00

You can choose the type of virual MAC address of your preference. They differ only in the OUI-part of the address.

Creating Virtual MAC Groups

If you want to assign multiple failover IPs to one virtual machine, you can create virtual MAC groups. A virtual MAC group contains at least two failover IPs that share the same virtual MAC address.
Once the virtual MAC group is active, the IPs sharing the same MAC address are linked together. Moving one IP of the group will move automatically all IPs within the group from one Scaleway Dedibox Server to another.

Note: You need to have at least two failover IPs in your account to create a virtual MAC group.

1 . Make sure that at least two failover IPs are assigned to the Dedibox server that you want to edit.

2 . Click on Server, Server list to display the listing of your Scaleway Dedibox Servers:

3 . Select the Dedibox to configure from the server list and click on Manage.

4 . The server overview displays. Scroll down to the Network section of the page. Click + more info next to the IP address that you want to configure.

5 . Click Add Virtual MAC:

6 . The list of your failover IPs and their associated MAC addresses displays. Click on the ⚙ icon next to the failover IP you want configure.

7 . Click Use this MAC on another IP address in the pop-up menu.

8 . Select the IPs to share the MAC address with from the list of available IPs. Click OK to confirm.

The IPs are now linked together in a virtual MAC group and share the same virtual MAC address. They can be assigned to the same virtual machine to provide a multi-IP environment. When moving one of the IPs of the group to another server, all other IPs within the group are automatically to the same server.

To remove a failover IP from a virtual MAC group, click on > Delete virtual MAC address and generate a new MAC address as described in the Adding a Virtual MAC Address section.

Discover New Bare Metal Cloud servers

Deploy 100% dedicated servers that are billed by the hour and available in minutes.