---
title: How to configure a Dedibox failover IP on CentOS
description: This page explains how to configure a Scaleway Dedibox failover IP on CentOS.
tags: dedibox network failover ip failover-ip centos
dates:
  validation: 2025-08-19
  posted: 2021-07-29
---
import Requirements from '@macros/iam/requirements.mdx'


This page shows you how to configure a [failover IP](/dedibox-ip-failover/concepts/#failover-ips) on Dedibox servers running on CentOS.

<Requirements />

- A Dedibox account logged into the [console](https://console.online.net)
- [Created](/dedibox/how-to/order-a-server/) a Dedibox dedicated server

## Failover IP configuration using the Network Manager

1. Connect to your server using SSH.
2. Use the **Network Manager** tool to configure the interface by running the command:
    ```sh 
    nmtui
    ```

    <Message type="note">
      On older CentOS/RHEL versions, you might be used to configuring the interfaces by adding a new network-scripts file in `/etc/sysconfig/network-scripts/`. This way of configuration has been deprecated starting from CentOS 7 and you should use the Network Manager to avoid configuration issues.
    </Message>
3. From the Network Manager interface, select **Edit a connection** and select the interface you want to add an alias to. Then Click **Edit...**.
4. Browse through the **Add ...** section to add another IP address.
5. Enter the details of your failover IP and save the settings to generate the configuration file.
6. Check the configuration file, to verify that the failover IP address has been added:
    ```
    cat /etc/sysconfig/network-scripts/ifcfg-ens192
    ...
    # Alias on the interface
    IPADDR1="62.120.123.123"
    PREFIX1="32"
    ```

    <Message type="note">
      Replace `ens192` with the name of your network interface.
    </Message>

## Manual configuration of a failover IP

<Message type="note">
  On recent versions of CentOS you should always prefer the configuration using the Network Manager tool. Manual configuration is not recommended for newer versions of CentOS (versions released after CentOS 6).
</Message>

1. Connect to your Dedibox using SSH.
2. Copy the default network configuration of your primary interface to create an alias:
    ```
    cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scrits/ifcfg-eth0:0
    ```
    <Message type="note">
      The file `ifcfg-eth0` might be named differently, depending on your network interfaces' name. Use `ifconfig` to determine the name of your network interface.
    </Message>
3. Open the file `/etc/sysconfig/network-scrits/ifcfg-eth0:0` in a text editor, for example, `nano`, and edit it as follows:
    ```
    NM_CONTROLLED="no"
    DEVICE="eth0:0"
    BOOTPROTO="static"
    IPADDR="my_failover_ip"
    NETMASK="255.255.255.255"
    ONBOOT="yes"
    ```
4. Bring up the interface using the following command:
    ```
    ifup eth0:0
    ```
