官方網站http://www.routemeister.net/projects/sipcalc/
安裝
wget http://www.routemeister.net/projects/sipcalc/files/sipcalc-1.1.6.tar.gz tar zxvf sipcalc-1.1.6.tar.gz cd sipcalc-1.1.6 ./configure make && make install
使用方式
查看網卡資訊
sipcalc enp0s3
-[int-ipv4 : enp0s3] - 0
[CIDR] Host address - 192.168.1.38Host address (decimal) - 3232235814
Host address (hex) - C0A80126
Network address - 192.168.1.0
Network mask - 255.255.255.0
Network mask (bits) - 24
Network mask (hex) - FFFFFF00
Broadcast address - 192.168.1.255
Cisco wildcard - 0.0.0.255
Addresses in network - 256
Network range - 192.168.1.0 - 192.168.1.255
Usable range - 192.168.1.1 - 192.168.1.254
查看ipv6網段
sipcalc 2400:8902:0000:0000:0000:0000:0000:0000/64
-[ipv6 : 2400:8902:0000:0000:0000:0000:0000:0000/64] - 0
[IPV6 INFO] Expanded Address - 2400:8902:0000:0000:0000:0000:0000:0000Compressed address - 2400:8902::
Subnet prefix (masked) - 2400:8902:0:0:0:0:0:0/64
Address ID (masked) - 0:0:0:0:0:0:0:0/64
Prefix address - ffff:ffff:ffff:ffff:0:0:0:0
Prefix length - 64
Address type - Aggregatable Global Unicast Addresses
Network range - 2400:8902:0000:0000:0000:0000:0000:0000 -
2400:8902:0000:0000:ffff:ffff:ffff:ffff
查看網段的詳細資訊
sipcalc --all 192.168.1.0/24
-[ipv4 : 192.168.1.0/24] - 0
[Classful] Host address - 192.168.1.0Host address (decimal) - 3232235776
Host address (hex) - C0A80100
Network address - 192.168.1.0
Network class - C
Network mask - 255.255.255.0
Network mask (hex) - FFFFFF00
Broadcast address - 192.168.1.255 [CIDR] Host address - 192.168.1.0
Host address (decimal) - 3232235776
Host address (hex) - C0A80100
Network address - 192.168.1.0
Network mask - 255.255.255.0
Network mask (bits) - 24
Network mask (hex) - FFFFFF00
Broadcast address - 192.168.1.255
Cisco wildcard - 0.0.0.255
Addresses in network - 256
Network range - 192.168.1.0 - 192.168.1.255
Usable range - 192.168.1.1 - 192.168.1.254 [Classful bitmaps] Network address - 11000000.10101000.00000001.00000000
Network mask - 11111111.11111111.11111111.00000000 [CIDR bitmaps] Host address - 11000000.10101000.00000001.00000000
Network address - 11000000.10101000.00000001.00000000
Network mask - 11111111.11111111.11111111.00000000
Broadcast address - 11000000.10101000.00000001.11111111
Cisco wildcard - 00000000.00000000.00000000.11111111
Network range - 11000000.10101000.00000001.00000000 -
11000000.10101000.00000001.11111111
Usable range - 11000000.10101000.00000001.00000001 -
11000000.10101000.00000001.11111110 [Networks] Network - 192.168.1.0 - 192.168.1.255 (current)