This Python script helps you find free IP addresses within a given subnet or VLAN. It uses ICMP echo requests (ping) to check the availability of IP addresses.
- Python 3.x
ipaddress
module (usually included in Python standard library)concurrent.futures
module (usually included in Python standard library)
-
Clone the repository or download the script file.
-
Run the script using Python:
python free_ip_finder.py
-
Follow the on-screen prompts to choose the option and specify the number of IPs needed.
This option finds free IP addresses within a specified management subnet.
This option finds free IP addresses within specified data VLANs.
The script sends ICMP echo requests (pings) to each IP address within the specified range. If an IP address responds, it's considered unavailable. If an IP address does not respond within a timeout period, it's considered available and added to the list of free IPs.
- The script uses ICMP echo requests, so make sure ICMP traffic is allowed in your network environment.
- The availability of IP addresses may depend on various factors such as network configuration, firewall rules, and device availability.