Overview
What is IPNetwork?
IPNetwork : Computes your netmask, cidr, subnet, supernet and network
In depth
A closer look at IPNetwork
The IPNetwork application was developed to be a small command line utility which will take care of complex network, ip, netmask, subnet, cidr calculation. It works with IPv4,it is written in C# and has a light and clean API and is fully unit tested.Usage: ipnetwork [-inmcbflu] [-d cidr|-D] [-h|-s cidr|-S|-w|-W|-x|-C network|-o network] networks ...Print options-i : network-n : network address-m : netmask-c : cidr-b : broadcast-f : first usable ip address-l : last usable ip address-u : number of usable ip addressesParse options-d cidr : use cidr if not provided (default /32)-D : use default cidr (ClassA/8, ClassB/16, ClassC/24)Actions-h : help message-s cidr : split network into cidr subnets-w : supernet networks into smallest possible subnets-W : supernet networks into one single subnet-x : list all ipadresses in networks-C network : network contain networks-o network : network overlap networksnetworks : one or more network addresses(1.2.3.4 10.0.0.0/8 10.0.0.0/255.0.0.0 ...)Example 1Display ipnetwork informations :c:\> ipnetwork 10.0.0.0/8IPNetwork : 10.0.0.0/8Network : 10.0.0.0Netmask : 255.0.0.0Cidr : 8Broadcast : 10.255.255.255FirstUsable : 10.0.0.1LastUsable : 10.255.255.254Usable : 16777214Example 2Split network into cidrc:\> ipnetwork -s 9 10.0.0.0/8IPNetwork : 10.0.0.0/9Network : 10.0.0.0Netmask : 255.128.0.0Cidr : 9Broadcast : 10.127.255.255FirstUsable : 10.0.0.1LastUsable : 10.127.255.254Usable : 8388606--IPNetwork : 10.128.0.0/9Network : 10.128.0.0Netmask : 255.128.0.0Cidr : 9Broadcast : 10.255.255.255FirstUsable : 10.128.0.1LastUsable : 10.255.255.254Usable : 8388606Example 3supernet networks into smallest possible subnetsC:\>ipnetwork -w 192.168.0.0/24 192.168.1.0/24IPNetwork : 192.168.0.0/23Network : 192.168.0.0Netmask : 255.255.254.0Cidr : 23Broadcast : 192.168.1.255FirstUsable : 192.168.0.1LastUsable : 192.168.1.254Usable : 510Example 4supernet networks into smallest possible subnetsc:\> ipnetwork -w 192.168.0.0/24 192.168.2.0/24IPNetwork : 192.168.0.0/24Network : 192.168.0.0Netmask : 255.255.255.0Cidr : 24Broadcast : 192.168.0.255FirstUsable : 192.168.0.1LastUsable : 192.168.0.254Usable : 254--IPNetwork : 192.168.2.0/24Network : 192.168.2.0Netmask : 255.255.255.0Cidr : 24Broadcast : 192.168.2.255FirstUsable : 192.168.2.1LastUsable : 192.168.2.254Usable : 254Example 5supernet networks into smallest possible subnetsC:\>ipnetwork -W 192.168.0.0/24 192.168.129.0/24IPNetwork : 192.168.0.0/16Network : 192.168.0.0Netmask : 255.255.0.0Cidr : 16Broadcast : 192.168.255.255FirstUsable : 192.168.0.1LastUsable : 192.168.255.254Usable : 65534Example 6Split network into cidr, display full network onlyC:\>ipnetwork -i -s 12 10.0.0.0/8 | grep -v \-\-IPNetwork : 10.0.0.0/12IPNetwork : 10.16.0.0/12IPNetwork : 10.32.0.0/12IPNetwork : 10.48.0.0/12IPNetwork : 10.64.0.0/12IPNetwork : 10.80.0.0/12IPNetwork : 10.96.0.0/12IPNetwork : 10.112.0.0/12IPNetwork : 10.128.0.0/12IPNetwork : 10.144.0.0/12IPNetwork : 10.160.0.0/12IPNetwork : 10.176.0.0/12IPNetwork : 10.192.0.0/12IPNetwork : 10.208.0.0/12IPNetwork : 10.224.0.0/12IPNetwork : 10.240.0.0/12Example 7Test if an ip is contained in a networkC:\>ipnetwork -C 10.0.0.1 10.0.0.0/8 10.0.1.0/2410.0.0.1/32 contains 10.0.0.0/8 : False10.0.0.1/32 contains 10.0.1.0/24 : FalseExample 8Test if a network overlap another networkC:\>ipnetwork -o 10.0.0.1/24 10.0.0.0/8 10.0.1.0/2410.0.0.0/24 overlaps 10.0.0.0/8 : True10.0.0.0/24 overlaps 10.0.1.0/24 : FalseExample 9remove one ip from a class and regroup them into the smallest possible networkC:\> ipnetwork -i -s 32 192.168.0.0/24 \| grep -v \-\- \| awk "{print $3;}" \| grep -v 192.168.0.213/32| xargs ipnetwork -i -w \| grep -v \-\-IPNetwork : 192.168.0.224/27IPNetwork : 192.168.0.216/29IPNetwork : 192.168.0.214/31IPNetwork : 192.168.0.212/32IPNetwork : 192.168.0.208/30IPNetwork : 192.168.0.192/28IPNetwork : 192.168.0.128/26IPNetwork : 192.168.0.0/25
Verdict
Should you download IPNetwork?
IPNetwork runs on
Windows 10/11
and is available under the
Freeware
license
— the installer is 54 KB.
We’ve catalogued it under
Networking.
✓
Verified clean. Every IPNetwork build on SoftLookup is scanned for viruses, spyware, adware, trojans and backdoors. We re-test on every update.
Sponsored
At a glance
IPNetwork specifications
- Publisher
-
Luke Skywalker
- Last updated
- Nov 28, 2023
- License
- Freeware
- Operating system
- Windows 10/11
- File size
- 54 KB
- Price
- Free
- Page views
- 441
Help fellow users decide. Share your experience with IPNetwork.