Easily Calculate Subnet Masks
An IP calculator that calculates network addresses, network classes, and other information.
The math behind IP addresses is complicated. Good IPv4 addresses start as 32-bit binary numbers, which are converted to 10 base numbers in four 8-bit fields. Decimal numbers are easier to manage than long binary strings.
Still, calculating address ranges, netmasks, and subnets is a bit difficult and error-prone, except for brainiacs that can do binary conversions in their heads. For the rest of us, answer ipcalc and ipv6calc.
ipcalc is for IPv4 networks and ipv6calc is for IPv6 networks. You must understand Classless Inter-Domain Routing (CIDR), as this is critical to IP addressing.
Both ipcalc and ipv6calc are available in most repositories of Linux distributions and BSD systems. See the procedure for each:
Após instalar o modo básico de calcular é:
The output will be
That is, it will display the data as:
- Address: Displays the address you searched for and the binary ID separated by octets;
- Wildcard: Indicates which parts of an IP address are available for examination.
- Netmask: Shows the mask;
- Broadcast: The last valid IP address for the network that has the IP you searched for.
And among other data and options that can be further expanded, see the command help for more information:
If you want to make consultations online, ipcalc makes the web version available at: http://jodies.de/ipcalc