✳ snet
Simple, easy to use, CLI based subnetting calculator/tool built in Go
Installation
Linux
curl -LJO https://github.com/thompsonbear/snet/releases/latest/download/snet
chmod +x snet
sudo mv snet /usr/bin
Windows
- Download snet.exe
- Add snet.exe to path
- Run sysdm.cpl / Advanced System Settings
- Advanced Tab > Environment Variables...
- Select variable "path" and select Edit
- Add the desired install location for snet.exe
- Move snet.exe to the path location previously specified
Usage
Address with Mask Bits
snet <options> <host-address>/<mask-bits>
snet -b 192.168.20.10/23
Address with Subnet Mask
snet <options> <host-address> <subnet-mask>
snet -b 192.168.20.10 255.255.254.0
Sample Output
Prefix Network Useable Hosts Broadcast Mask
192.168.20.10/23 192.168.20.0 192.168.20-21.1-254 192.168.21.255 255.255.254.0
Options
-a, -all
- Display ALL possible networks within the specified subnet.
-b, -borderless
- Display with a BORDERLESS table.
-c, -count
- Display ip ranges with host count.
-h, -help
-s, -simple
- Display ip ranges without sub-range notation.