官方網站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.38
Host 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:0000
Compressed 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.0
Host 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)

 

By tony

自由軟體愛好者~喜歡不斷的思考各種問題,有新的事物都會想去學習嘗試 做實驗並熱衷研究 沒有所謂頂天的技術 只有謙虛及不斷的學習 精進專業,本站主要以分享系統及網路相關知識、資源而建立。 Github http://stnet253.github.io

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料