What are the subnet mask, first available host address of subnet one (NOT subnet zero), and the maximum number of hosts per subnet for the network below? (You need to allow for maximum number of hosts. Also, you can use subnet zero and all-ones subnet. RFC 1878)

Network ID: 129.209.0 .0

Subnets Required: 117

[Correct Answers] Subnet Mask:

1st Available Host Address of Subnet 1:


Max # of hosts/subnet: 510

How did it get this answer? I read it in the book but can't understand it. I am looking for a step by step and detailed answer.


2^7 = 128 subnets, assuming ip subnet-zero is enabled.

Since 2^6 is only 64, and we require 117, 6 bits is not enough for 117 subnets and we will borrow 7 bits.

Therefore 7 bits are in use for subnetting (2^7), and we can now display it in binary form:


That is our subnet mask, Take a look at the third octet, which is where we started borrowing bits. Since our starting address is class B address, we start subnetting in octet 3.

Now we take our network ID, and apply subnet number 1 to it. Remember, our subnetting takes place in the first 7 bits of octet 3:


This is the binary form of subnet 1, When applied to our network ID:

This is our subnetted network ID. For the first host, we simply increment our host bits (the last 9 binary bits):

or, in binary:


  • We have 9 bits for hosts available, 2^9 = 512 hosts, subtract 2 for network ID and broadcast number. This leaves 510 hosts per subnet.
  • Arin, this is the explanation. John T. knows what he is talking about. – Everett Nov 20 '10 at 21:46

You can calculate all this using some simple binary conversion, but I find the easiest is to just use a cheat sheet like the one on packetlife.net (search for IPv4 Subnetting)

So let me walk you through it:

The network would have a subnet mask of This would allow for 65536 addresses within that network.

You want to divide that up in 117 networks so 65536/117 gives you about 560 addresses per subnet.

The closest you can get to that is 512 addresses, the mask that gives you this is

Of these 512 addresses per subnet, only 510 are usable for addressing hosts. The first one is the network address and the last one is the broadcast address.

Now finally, you take the base network and apply that netmask. The first subnet (subnet 0) you get will end at, and so the next network will be . The first host of this network will be

  • Be cautious, you can't use any calculators (let alone subnet calculators) in most networking exams. – John T Nov 20 '10 at 21:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.