Add CentOS IP (Bulk)
Hello, dear reader.
In this article, we will explain in detail how to add bulk IPs on a CentOS Server. In this way, you can add an IP Block without any problems with the method explained, Generally cPanel, Plesk Panels etc. are added manually one by one in the panels or CentOSIt must be quite difficult to add in .
For example, you will be able to add all IP Addresses in the block as ( 1.1.1.10 /24 ) in bulk.
First of all, as a first step, we enter the Network Folder with the code below;
cd /etc/sysconfig/network-scripts
After applying our code above, we create the settings file in which we will create the IP Range with the code below;
nano ifcfg-eth0-range0
After editing the codes below according to your needs, paste them into the created file using the copy-paste logic or manually, save and exit;
IPADDR_START=YOUR MAIN PAGE+1
IPADDR_END=OUR ENSONIP
CLONENUM_START=0
NETMASK=255.255.255.0
(This value may vary depending on your Subnet block.)
After the above code, we finally update the Adapter with the command below and our IP Block is added without any problems.
ifup eth0
To see that it works properly, ifconfig
You can test it by using the command.
See you in our next new article, don't forget these places are very valuable 🙂 🙂 🙂
This is a nice article, well done…