sipcalc で CIDR 計算を行う
コマンドラインでサクッと CIDR 計算するのに便利
Example
% sipcalc 172.20.136.96/27
-[ipv4 : 172.20.136.96/27] - 0
[CIDR]
Host address - 172.20.136.96
Host address (decimal) - 2887026784
Host address (hex) - AC148860
Network address - 172.20.136.96
Network mask - 255.255.255.224
Network mask (bits) - 27
Network mask (hex) - FFFFFFE0
Broadcast address - 172.20.136.127
Cisco wildcard - 0.0.0.31
Addresses in network - 32
Network range - 172.20.136.96 - 172.20.136.127
Usable range - 172.20.136.97 - 172.20.136.126
-
Manual
sipcalc - IP subnet calculator
http://www.routemeister.net/projects/sipcalc/sipcalc-man.html
Repository
sii/sipcalc: Sipcalc is an advanced ip calculator supporting both IPv4 and IPv6.
https://github.com/sii/sipcalc
Version
% sipcalc --version
sipcalc 1.1.6
Written by Simon Ekstrand.
Copyright (C) 2003-2013 Simon Ekstrand.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.