Knowledgebase - Binding multiple IPs to one interface in Centos

Our Client Portal

Portal Home > Knowledgebase > Dedicated Servers > Binding multiple IPs to one interface in Centos

Binding multiple IPs to one interface in Centos

The steps to add additional IP's to one network card / interface in Centos are as follows:

1.) Login into the server as the root user
2.) Navigate to /etc/sysconfig/network-scripts directory
3.) Assuming that the network interface name is eth0, cp ifcfg-eth0 as ifcfg-eth0:1
4.) Edit the ifcfg-eth0:1 file and change the DEVICE parameter to DEVICE=eth0:1
5.) Change the other parameters in the NEW file such as IPADDR to the new IP address.
6.) Repeat this process for each additional IP but remember to change the interface name each time e.g. ifcfg-eth0:2

After adding your additional IP's restart the network service: service network restart

Add to Favourites Add to Favourites

Was this answer helpful?

Print this Article Print this Article

Also Read
IP and DNS information (Views: 13079)
IP and DNS information (Views: 13079)

Recent News
Knowledgebase Articles
It is now possible to temporarily suspend the monitoring of Managed Dedicated Se...
Please Note: In order to reset your Centos password you will need KVM access to ...
As of Java version 7 onwards, the Java development team continue to make securit...
Live Chat

Need a helping hand?

We've got a lot of solutions to choose from so why not let one of our experts help!

Live Chat

Find this popup annoying?

If so, we're very sorry! You can prevent further invitations by selecting "YES" below