- In this example, We will use this IP Block 98.126.9.40/29
- Navigate to the network scripts directory
a. [root@AT16-693 ~]# cd /etc/sysconfig/network-scripts Locate the network interface file by typing ls
a. In this example, the network interface file is call ifcfg-eth0
b.- 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 - 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.
- Restart the network service in order to activate it
- # service network restart
- # service network restart
- Use the command ifconfig to see if all the IPs are bound
a. - Done!
- Please submit a ticket if you require assistance.