ipcalc is a Linux package that can automatically calculate the address, netmask, wildcard, network address, broadcast address and more.
It can be installed under Ubuntu with the command
apt install ipcalc
To use it is simple, for example to calculate the subnet for 192.168.0.0/25 we enter:
ipcalc -n 192.168.0.0/25
ipcalc -n 127.0.0.1/8 Address: 127.0.0.1 01111111. 00000000.00000000.00000001 Netmask: 255.0.0.0 = 8 11111111. 00000000.00000000.00000000 Wildcard: 0.255.255.255 00000000. 11111111.11111111.11111111 => Network: 127.0.0.0/8 01111111. 00000000.00000000.00000000 HostMin: 127.0.0.1 01111111. 00000000.00000000.00000001 HostMax: 127.255.255.254 01111111. 11111111.11111111.11111110 Broadcast: 127.255.255.255 01111111. 11111111.11111111.11111111 Hosts/Net: 16777214 Class A, Loopback
I enter -n to avoid colour formatting in my terminal window.
Leave a Reply