How to configure IP aliasing
Find out how to add Additional IP addresses to your VPS configuration
Objective
IP aliasing refers to a special network configuration for certain OVHcloud services. Additional IPs allow you to associate multiple IP addresses with a single network interface.
This guide explains how to add Additional IP addresses to your network configuration.
Information regarding OVHcloud service administration and how to find appropriate assistance
When using OVHcloud guides, please be aware of the following conditions:
- User instructions aim to provide as many details as possible but cannot cover individual use cases. You might need to adapt the pertinent actions to your requirements.
- The OVHcloud ecosystem is built for flexibility and freedom of choice. Customers are therefore responsible for the secure and proper configuration of their services. To prevent data loss, we strongly recommend to apply backup strategies to all your important data.
- Our guides and tutorials may reference third-party software or services in combination with OVHcloud solutions. The technical support provided by OVHcloud does not include the configuration of systems or products outside of our responsibility. This includes but is not limited to:
- Operating systems and user interfaces (Windows, Debian, Plesk, etc.).
- Any other third-party software (FTP clients, email software, etc.).
- Services offered by other providers (DNS, APIs, user interfaces, etc.).
To receive the appropriate assistance for any issues you might experience, follow these guidelines:
- You seek personalized advice or you would like to discuss a topic that is not covered in detail by our documentation?
Join the OVHcloud Community to search for your topic and reach out to other users. - You need to report an incident regarding your OVHcloud service or you are experiencing difficulties in the OVHcloud Control Panel?
Create a support request in our Help Centre. - You require professional assistance for your project or you need help with tasks outside our support scope?
Visit our partner portal to search for experts who are familiar with OVHcloud solutions. - You are looking for more detailed information regarding our support levels and Professional Services?
Please visit our web pages for OVHcloud support levels and OVHcloud Professional Services.
You can participate in improving our documentation:
- You would like to share feedback to improve a guide page or you want to report insufficient information on a specific page?
Use the "Was this page helpful?" buttons at the bottom of the page to let us know. - You would like to propose a specific documentation update?
Use the "Edit this page" function, available at the bottom of the page and in the sidebar.
Requirements
- A Virtual Private Server in your OVHcloud account
- An Additional IP address
- Administrative access (sudo) via SSH or GUI to your server
- Basic networking and administration knowledge
Additional IP addresses are currently unavailable for Virtual Private Servers in Local Zones.
Instructions
The following sections contain the configurations for the most commonly used distributions/operating systems. The first step is always to log in to your server via SSH or a GUI login session (RDP for a Windows VPS). The examples below presume you are logged in as a user with elevated permissions (Administrator/sudo).
Concerning different distribution releases, please note that the proper procedure to configure your network interface as well as the file names may have been subject to change. We recommend consulting the manuals and knowledge resources of the respective OS versions if you experience any issues.
The following terminology is used in code examples and instructions throughout this guide:
In the examples below, we will use the nano text editor. With some operating systems, you will need to install it first. If this is the case, you will be prompted to do so. You can, of course, use the text editor of your choice.
Select the tab corresponding to your operating system.
Debian 11
Step 1: Disable automatic network configuration
Open the following file path with a text editor:
Enter the following line, then save and exit the editor:
Creating this configuration file will prevent changes to your network configuration from being made automatically.
Step 2: Create a backup
By default, the configuration file is located in the path etc/network/interfaces.d.
In our example, our file is called 50-cloud-init, so we make a copy of the 50-cloud-init file using the following command:
In case of a mistake, you will be able to revert the changes, using the commands below:
Step 3: Edit the configuration file
The first step is to verify your network interface name with this command:
Next, open the network configuration file for editing with the following command:
To configure your Additional IP, you need to add a virtual interface or ethernet alias to your network interface. In our example, our interface is called eth0, so our first alias is eth0:0. Do this for each Additional IP you wish to configure.
Do not modify the existing lines in the configuration file, simply add your Additional IP to the file as follows, replacing NETWORK_INTERFACE, ID and ADDITIONAL_IP with your own values:
If you are configuring more than one Additional IP, your configuration file should look like this:
Configuration example:
Step 4: Restart the interface
Apply the changes with the following command:
Troubleshooting
First, restart your server from the command line or its GUI. If you are still unable to establish a connection from the public network to your alias IP and suspect a network problem, you need to reboot the server in rescue mode. Then you can set up the Additional IP address directly on the server.
Once you are connected to your server via SSH, enter the following command:
To test the connection, ping your Additional IP from the outside. If it responds in rescue mode, this likely indicates a configuration error. If, however, the IP is still not working, please inform our support teams by creating a support request for further investigations.
Go further
If you would like assistance using and configuring your OVHcloud solutions, please refer to our support offers.
Join our community of users.











