Skip to content

rahul4tech/range-ips-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Add IP Ranges On Ubuntu Workstation / Server

This is script to assign IPv4 IP addresses ranges to specific interface on Ubuntu. You can assign multiple ranges at once. The scripts adds ranges to network interface and, also, commands to /etc/rc.local file so network interface would be updated after server restart.

How to Use

You can run this script remotely on any Ubuntu based Linux machine using following command:

bash <(curl -s -L https://raw.githubusercontent.com/rahul4tech/range-ips-ubuntu/master/range-creator.sh)

If you want to run this script locally, use these commands:

wget https://raw.githubusercontent.com/rahul4tech/range-ips-ubuntu/master/range-creator.sh && chmod +x range-creator.sh
./range-creator.sh

Please follow these rules when you want to add IPs:

  • At first scripts Will Show You All Interfaces;
  • Write or paste all new ranges in a list format(e.g. 191.101.0.0/25) and press ctrl+d;
  • The script will ask to enter network interface;
  • IP addresses will be added to network interface and to /etc/rc.local file.

About

Ubuntu - Assign IPv4 IP addresses ranges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages