How to Bind Additional IPs to Network Interface Card - CentOS
This article explains the process of binding multiple IP addresses to the Network Interface Card (NIC) on a CentOS Dedicated Server. This process is a helpful tool for a number of applications, notably Apache-based website hosting.
We only bind the primary server IP as our clients have many use-case for how they like to use their IP's. In this demonstration, you would need to add the additional IP's to the server by editing the following location:
Start by SSH your server and running the following command:
# cd /etc/sysconfig/network-scripts/ifcfg-eth0-range0
Now copy this file to create the virtual interfaces for additional IPs
# cp ifcfg-eth0 ifcfg-eth0:0
# cp ifcfg-eth0 ifcfg-eth0:1
# cp ifcfg-eth0 ifcfg-eth0:2
# cp ifcfg-eth0 ifcfg-eth0:3
# cp ifcfg-eth0 ifcfg-eth0:4
Open the file “ifcfg-eth0:0“ to view the contents:
Simply edit the subsequent virtual interfaces, following this formula, to bind the additional IPs to the NIC (Only Changes need to be made to the DEVICE and IPADDR assignments):
You have now successfully added the additional server IPs to the public NIC and they are ready for use.
Was this answer helpful?
WHMCS requires a setting on the MySQL or MariaDB server for the SQL Mode. To verify this, log...
This article provides a guide for Rebooting a Linux-based VPS or Dedicated Server Using the SSH...
Enable browser caching to reduce website loading times, by taking advantage of caching of...
On the Linux systems there are three standard commands that show the information about last...
This article demonstrates the process of chmod file and subfolder permissions per directory,...