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. [root@AT16-693 ~]# 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

Billing

Cancel Account Credit Invoice

Cancel Account Credit Invoice This section will explain how to cancel credit invoices. Please login to my.krypt.com. >> Go to

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