How to Bind Multiple IPs in Centos

  1. In this example, We will use this IP Block 98.126.9.40/29

  2. Navigate to the network scripts directory
    a. [[email protected] ~]# cd /etc/sysconfig/network-scripts

  3. Locate the network interface file by typing ls
    a. In this example, the network interface file is call ifcfg-eth0
    b.

  4. Create a file /etc/sysconfig/network-scripts/ifcfg-eth0-range0 if this doesn’t exist, or just add to it if you already have it, the following lines
    a.
    b. where: IPADDR_START is the first IP and IPADDR_END is the last IP in the range. CLONENUM_START is the number that will be assigned to the first IP alias interface

    c. Please note that 98.126.9.42 is not the starting IP because that IP is bound to the main interface labeled ifcfg-eth0

  5. If you need to add more ranges of IPs then just use a different file for ex. ifcfg-eth0-range1, for each one of the ranges. You need to be careful and use the proper CLONENUM_START to not overwrite other aliases.

  6. Restart the network service in order to activate it
    1. service network restart

  7. Use the command ifconfig to see if all the IPs are bound
    a.
  8. Done!
  9. Please submit a ticket if you require assistance.

 

 

Share This Post

Related content

Knowledge Base Krypt

Veeam vCloud Connect Quick Guide

Veeam Cloud Connect User Guide Go to Backup Infrastructure > Service Providers > Add Service Provider 2. Add VPLS Veeam

Knowledge Base Krypt

IP test for each Datacenter

Lax10IP Standard Network: 67.229.79.250IP Premium Network: 98.126.41.162IP CN2-GIA Network: 98.126.229.2 SIN1IP Standard Network: 43.252.120.130IP Premium Network: 103.233.82.251 SV7IP Premium Network: