Is there a bash script or tool to automatically bind a list of IPv4 addresses to an Ubuntu server quickly?
For example, let's say I have a text file named /root/iplist.txt
and in iplist.txt, I have one IP per line:
... and so on, until .30 let's say. How do I automatically bind that list of individual IPv4 addresses to the Ubuntu server?
I am aware of the ip command to bind a CIDR block (ip addr add 184.108.40.206/24 for example) however I am not sure how to quickly bind a range of individual IPs.
I know how to do this in CentOS with ifcfg-eth1-range0
but it doesn't appear this feature is available in Ubuntu...
I am sure this topic will come in handy for a lot of other people as I was only able to find tutorials on how to do this with CentOS despite my hours of researching I was not able to find anything for Ubuntu. So I am adding the appropriate tags to this post
Thanks for any help,