matt
matt

Reputation: 3

how to calculate number of nodes?

I'm wondering how to calculate number of nodes in CIDR network? for example if the CIDR network is 11.13.0.0/16 How many nodes can be accommodated in this CIDR network? Any help would be appreciatet

Upvotes: 0

Views: 4785

Answers (2)

ChrisWue
ChrisWue

Reputation: 19050

In general terms thats 2^(32-bits_set_in_mask) addresses. As sarnold pointed out some of those can't be used for nodes.

Upvotes: 1

sarnold
sarnold

Reputation: 104080

Typically you'll have a broadcast address, so that's one address removed. You'll also typically have a router/default gateway, so that's often one more address removed. So that leaves 2^(32-16)-2==65534 IP addresses free for other use. If you want to subnet that further, you'll lose one more IP per subnet, since each subnet will have its own broadcast range.

Upvotes: 1

Related Questions