변군이글루

[명령어] sipcalc 명령어 본문

* 리눅스

[명령어] sipcalc 명령어

변군 변군이글루 2021. 6. 3. 22:31
728x90
반응형

리눅스 sipcalc 명령어

sipcalc 패키지 설치

$ yum install -y sipcalc

sipcalc 사용 예제

### 192.168.0.0/24 서브넷 정보
$ sipcalc 192.168.0.0/24
-[ipv4 : 192.168.0.0/24] - 0

[CIDR]
Host address            - 192.168.0.0
Host address (decimal)  - 3232235520
Host address (hex)      - C0A80000
Network address         - 192.168.0.0
Network mask            - 255.255.255.0
Network mask (bits)     - 24
Network mask (hex)      - FFFFFF00
Broadcast address       - 192.168.0.255
Cisco wildcard          - 0.0.0.255
Addresses in network    - 256
Network range           - 192.168.0.0 - 192.168.0.255
Usable range            - 192.168.0.1 - 192.168.0.254

-

### 192.168.0.0/24 서브넷을 25 서브넷으로 나누기
$ sipcalc 192.168.0.0/24 -s 25
-[ipv4 : 192.168.0.0/24] - 0

[Split network]
Network                 - 192.168.0.0     - 192.168.0.127
Network                 - 192.168.0.128   - 192.168.0.255

-

### 세부 정보 표시
$ sipcalc 192.168.0.0/24 -s 25 -u
-[ipv4 : 192.168.0.0/24] - 0

[Split network - verbose]
-[ipv4 : 192.168.0.0/24] - 0

[CIDR]
Host address            - 192.168.0.0
Host address (decimal)  - 3232235520
Host address (hex)      - C0A80000
Network address         - 192.168.0.0
Network mask            - 255.255.255.128
Network mask (bits)     - 25
Network mask (hex)      - FFFFFF80
Broadcast address       - 192.168.0.127
Cisco wildcard          - 0.0.0.127
Addresses in network    - 128
Network range           - 192.168.0.0 - 192.168.0.127
Usable range            - 192.168.0.1 - 192.168.0.126

-
-[ipv4 : 192.168.0.0/24] - 0

[CIDR]
Host address            - 192.168.0.128
Host address (decimal)  - 3232235648
Host address (hex)      - C0A80080
Network address         - 192.168.0.128
Network mask            - 255.255.255.128
Network mask (bits)     - 25
Network mask (hex)      - FFFFFF80
Broadcast address       - 192.168.0.255
Cisco wildcard          - 0.0.0.127
Addresses in network    - 128
Network range           - 192.168.0.128 - 192.168.0.255
Usable range            - 192.168.0.129 - 192.168.0.254

-

-
### 클래스 표시
$ sipcalc 192.168.0.0/24 -s 25 -u -c
-[ipv4 : 192.168.0.0/24] - 0

[Classful]
Host address            - 192.168.0.0
Host address (decimal)  - 3232235520
Host address (hex)      - C0A80000
Network address         - 192.168.0.0
Network class           - C
Network mask            - 255.255.255.0
Network mask (hex)      - FFFFFF00
Broadcast address       - 192.168.0.255

[Split network - verbose]
-[ipv4 : 192.168.0.0/24] - 0

[Classful]
Host address            - 192.168.0.0
Host address (decimal)  - 3232235520
Host address (hex)      - C0A80000
Network address         - 192.168.0.0
Network class           - C
Network mask            - 255.255.255.0
Network mask (hex)      - FFFFFF00
Broadcast address       - 192.168.0.255

-
-[ipv4 : 192.168.0.0/24] - 0

[Classful]
Host address            - 192.168.0.128
Host address (decimal)  - 3232235648
Host address (hex)      - C0A80080
Network address         - 192.168.0.0
Network class           - C
Network mask            - 255.255.255.0
Network mask (hex)      - FFFFFF00
Broadcast address       - 192.168.0.255

-

-

명령어 사용법

$ sipcalc --help
sipcalc 1.1.6

Usage: sipcalc [OPTIONS]... <[ADDRESS]... [INTERFACE]... | [-]>

Global options:
  -a, --all                     All possible information.
  -d, --resolve                 Enable name resolution.
  -h, --help                    Display this help.
  -I, --addr-int=INT            Added an interface.
  -n, --subnets=NUM             Display NUM extra subnets (starting from
                                the current subnet). Will display all subnets
                                in the current /24 if NUM is 0.
  -u, --split-verbose           Verbose split.
  -v, --version                 Version information.
  -4, --addr-ipv4=ADDR          Add an ipv4 address.
  -6, --addr-ipv6=ADDR          Add an ipv6 address.

IPv4 options:
  -b, --cidr-bitmap             CIDR bitmap.
  -c, --classful-addr           Classful address information.
  -i, --cidr-addr               CIDR address information. (default)
  -s, --v4split=MASK            Split the current network into subnets
                                of MASK size.
  -w, --wildcard                Display information for a wildcard
                                (inverse mask).
  -x, --classful-bitmap Classful bitmap.

IPv6 options:
  -e, --v4inv6                  IPv4 compatible IPv6 information.
  -r, --v6rev                   IPv6 reverse DNS output.
  -S, --v6split=MASK            Split the current network into subnets
                                of MASK size.
  -t, --v6-standard             Standard IPv6. (default)

Address must be in the "standard" dotted quad format.
Netmask can be given in three different ways:
 - Number of bits    [/nn]
 - Dotted quad       [nnn.nnn.nnn.nnn]
 - Hex               [0xnnnnnnnn | nnnnnnnn]

Interface must be a valid network interface on the system.
If this options is used an attempt will be made to gain the address
and netmask from the specified interface.

Replacing address/interface with '-' will use stdin for reading further
arguments.

Report bugs to <simon@routemeister.net>.
728x90
반응형
0 Comments
댓글쓰기 폼