Get the App
SLTechnology News&Howtos  ›  Servers  › 

Simple IP address Calculator using linux's ipcalc command

Shulou Source: shulou.com Published: 2022-06-02 16:15:51 10月04日 Update

This article mainly introduces the use of linux ipcalc command simple IP address calculator, the article is very detailed, has a certain reference value, interested friends must read it!

The full name of the ipcalc command is: Calculate IP information for a host (computing host's IP information)

The ipcalc command is a simple ip address calculator that can perform simple IP address calculation tasks.

Syntax format: ipcalc [parameters] [IP address]

Common parameters:

-b calculate the broadcast address from the given IP address and network mask-h display the hostname corresponding to the given IP address-m display the given IP address calculator network mask-p display the prefix of the given IP address-n calculate the network address from the given IP address and network mask-s quiet mode, do not display any error messages-help display help information

Reference example

Calculate the prefix for a given mask:

[root@linuxcool] # ipcalc-p 192.168.88.56 255.255.255.0

PREFIX=24

Calculate the network address given IP and network mask:

[root@linuxcool] # ipcalc-n 192.168.88.56 255.255.255.0

NETWORK=192.168.88.0

Given IP displays the corresponding hostname:

[root@linuxcool] # ipcalc-h 223.5.5.5

HOSTNAME=public1.alidns.com

Use multiple parameters to calculate the network mask, broadcast address, network address of a given IP:

[root@linuxcool] # ipcalc-m-b-n 119.29.29.29max 28

NETMASK=255.255.255.240

BROADCAST=119.29.29.31

NETWORK=119.29.29.16 above is all the contents of the simple IP address calculator using linux's ipcalc command. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Address network command calculator host information parameter content prefix reference help broadcast quiet value task full name interest multiple instance boy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker vpn Shulou Information Shulou Tech Info Microsoft