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

  • ip addresses, centos, network, dedicated servers, virtual private servers
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Mounting Partitions in CentOS 5.x

This is a basic security tip that can be executed to help protect your system. This is not an...

Installation of SpamAssassin on DirectAdmin

In this guide I will be explaining how to install and configure SpamAssasin on a Direct Admin...

Installation Rootkit Hunter (rkhunter) on CentOS

  Rootkit Hunter (rkhunter) is a Unix-based tool that scans for rootkits, backdoors and possible...

Mounting Partitions in CentOS 5.x

This is a basic security tip that can be executed to help protect your system. This is not an...

Bandwidth allocation

Bandwidth is the amount of data that can be transferred to and from your account in one month....