← 返回命令列表

Linux command

sipcalc 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Calculate subnet

sipcalc [192.168.1.0/24]

Split network into /26 subnets

sipcalc -s [26] [192.168.1.0/24]

IPv6 address

sipcalc [2001:db8::1/64]

Show all info

sipcalc -a [192.168.1.100/24]

Interface addresses

sipcalc [eth0]

CIDR bitmap output

sipcalc -b [192.168.1.0/24]

Classful info

sipcalc -c [10.0.0.0]

Convert Cisco wildcard to netmask

sipcalc -w [0.0.0.255]

IPv6 reverse DNS

sipcalc -r [2001:db8::1/48]

说明

sipcalc is an advanced IP subnet calculator that handles both IPv4 and IPv6 addresses. Given an address with a prefix length or netmask, it displays the network address, broadcast address, host range, and other details in both CIDR and traditional netmask notation. The subnet splitting option (-s) divides a network into smaller subnets at a specified prefix length, showing all resulting ranges. Interface mode accepts a network interface name instead of an address, reading the system's configured addresses for analysis. The -b option adds binary representations for bit-level understanding of subnet boundaries.

参数

-a
Give all possible information about an address or interface.
-b
Display CIDR based bitmaps (IPv4).
-c
Display classful address information (IPv4).
-d
Enable name resolution.
-e
Display v4inv6 address information (IPv6).
-i
Display CIDR address information (default IPv4).
-n _NUM_
Display NUM extra subnets starting from the current subnet.
-r
Display IPv6 reverse DNS information.
-s _MASK_
Split IPv4 network into subnets of MASK size.
-S _MASK_
Split IPv6 network into subnets of MASK size.
-t
Display standard IPv6 address information (default IPv6).
-u
Verbose mode for network splitting.
-w
Convert Cisco wildcard (inverse mask) to regular netmask.
-4 _ADDR_
Explicitly add an IPv4 address.
-6 _ADDR_
Explicitly add an IPv6 address.

FAQ

What is the sipcalc command used for?

sipcalc is an advanced IP subnet calculator that handles both IPv4 and IPv6 addresses. Given an address with a prefix length or netmask, it displays the network address, broadcast address, host range, and other details in both CIDR and traditional netmask notation. The subnet splitting option (-s) divides a network into smaller subnets at a specified prefix length, showing all resulting ranges. Interface mode accepts a network interface name instead of an address, reading the system's configured addresses for analysis. The -b option adds binary representations for bit-level understanding of subnet boundaries.

How do I run a basic sipcalc example?

Run `sipcalc [192.168.1.0/24]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a do in sipcalc?

Give all possible information about an address or interface.