IP Tool is a Python-based command-line utility for working with IP addresses. It provides various functionalities such as converting binary IP to decimal IP, determining IP class and private/public status, calculating possible subnets, and more.
This is a command-line tool that performs various operations on IPv4 addresses, including:
- Converting a binary IP address to a dotted decimal notation IP address
- Converting an IP address to binary
- Finding the network address from an IP address and subnet mask
- Finding the network address from an IP/CIDR notation
- Calculating possible subnetting from an IP range
- Determining the IP class and private/public status
- Displaying all information for an IP address and subnet
-
Clone this repository to your local machine.
-
git clone https://github.com/Blindsinner/IPv4-tool-for-beginner.git
To use the command-line interface, navigate to the directory containing the ip_tool.py
script and run:
python ip_tool.py
Enter the binary IP address: 11000000.10101000.00000001.00000001 Decimal IP: 192.168.1.1
Enter the IP address: 192.168.1.1 11000000.10101000.00000001.00000001
Enter the IP address: 192.168.1.1 Enter the subnet mask: 255.255.255.0 Network address with CIDR Notation: 192.168.1.0/24
Enter the IP address/CIDR: 192.168.1.1/24 Network address: 192.168.1.0 IP Subnet Mask: 255.255.255.0
Enter the IP network: 192.168.1.0 Enter the subnet mask or CIDR: 27 Possible Number of Subnets: 32
Enter the IP address: 192.168.1.1 According to first octet: Class C, Private
Follow the on-screen prompts to perform various IP-related tasks. With GIU: (https://github.com/Blindsinner/IP-Toolkit)
If you would like to contribute to this project, please feel free to submit a pull request or open an issue on GitHub.
This project is licensed under the MIT License.