# How is IP address calculated?

## How is IP address calculated?

We can use the following formula to calculate the total number of IP addresses within a subnet by the known the amount of host bits in the subnet mask. Using the formula 2H, where H represents the host bit, we get the following results: Class A = 224 = 16,777,216 total IPs. Class B = 216 = 65,536 total IPs.

What is the formula of subnetting?

To calculate the number of possible subnets, use the formula 2n, where n equals the number of host bits borrowed. For example, if three host bits are borrowed, then n=3. 23 = 8, so eight subnets are possible if three host bits are borrowed.

How many IP addresses are in a 24?

254
Subnet Cheat Sheet – 24 Subnet Mask, 30, 26, 27, 29, and other IP Address CIDR Network References

/24 255.255.255.0 254
/23 255.255.254.0 510
/22 255.255.252.0 1,022
/21 255.255.248.0 2,046

### What is IP address notes?

An IP address is a unique address that identifies a device on the internet or a local network. IP stands for “Internet Protocol,” which is the set of rules governing the format of data sent via the internet or local network.

What are the types of IP address?

There are four different types of IP addresses: public, private, static, and dynamic. While the public and private are indicative of the location of the network—private being used inside a network while the public is used outside of a network—static and dynamic indicate permanency.

1. In the Windows search fields, type cmd, to open command prompt.
2. Press Enter.
3. Type ipconfig/all press Enter.