Binding multiple IPs to one interface in Centos 6

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
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Installing htop

htop is an interactive process viewer for Linux, which is a powerful alternative to the...

Bind Multiple IP Addresses to a Single Network Interface Card (NIC)

This tutorial demonstrates how to bind multiple IP addresses to a single NICI'll be using LAN...

Clear Memory Cache on Linux Server

By default the Linux OS has a very efficient memory management process that should be freeing any...

Set the time on a Linux server

Log into the server via SSHAt the shell prompt run the following command:date MMDDHHmmYYYYFor...

Check your disk usage in Linux

A good way to check your disk usage for folders on your Linux server is via shell.Download...