ipcalc
| 10-Jul-2009 | Posted by Sonia Hamilton under Iptables, Networking |
ipcalc – a tool I used to use years ago but had forgotten about.
sudo aptitude install ipcalc
% ipcalc 192.168.1.0/26 Address: 192.168.1.0 11000000.10101000.00000001.00 000000 Netmask: 255.255.255.192 = 26 11111111.11111111.11111111.11 000000 Wildcard: 0.0.0.63 00000000.00000000.00000000.00 111111 => Network: 192.168.1.0/26 11000000.10101000.00000001.00 000000 HostMin: 192.168.1.1 11000000.10101000.00000001.00 000001 HostMax: 192.168.1.62 11000000.10101000.00000001.00 111110 Broadcast: 192.168.1.63 11000000.10101000.00000001.00 111111 Hosts/Net: 62 Class C, Private Internet
Share This
There is also sipcalc and subnetcalc.
there is an iphone app as well. no need to force fiddly maths upon yourself.
hurray for ipv6 with /64′s for everything.