IP-Subnet-Manager is a Linux-based command-line tool that simplifies the process of adding and managing IP addresses within /24 subnets. This script automates IP address configuration, making it easy to handle large-scale deployments and network administration tasks.
- Validates input IP addresses
- Adds IP addresses within the specified /24 subnet
- Provides feedback on the success or failure of each operation
- Compatible with most Linux distributions
- Linux operating system with a configured network interface
ip
command available on the system (usually part of theiproute2
package)- sudo privileges for the user running the script
- Clone the repository:
git clone https://github.com/yourusername/IP-Subnet-Manager.git
- Navigate to the project folder:
cd IP-Subnet-Manager
- Make the script executable:
chmod +x add_subnet_ips.sh
- Prepare a text file containing a list of IP addresses, one per line.
- Run the script:
./add_subnet_ips.sh
- When prompted, enter the path to the IP list file.
- The script will loop through the IP addresses, validate them, and add the corresponding /24 subnet to the system.
- If the process is successful, the script will output a confirmation message.
Contributions are welcome! If you'd like to contribute, please fork the repository and make your changes. Then submit a pull request with a detailed description of your proposed changes.
This project is licensed under the MIT License.