Discussion Locked

Subnetting question

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi All,

I really need some help with this. I am currently studying for both the CCNA and W2K 70-216 exams. I am having the hardest time understanding subnetting.. I understand that the # following the slash (x.x.x.x/24) is the number of bits in the subnet.
I am looking for the simplest way possible to understand the other part of the question.. How do you find the number of hosts, networks, and the ip addresses for the hosts (ie.. the ranges)?
I have looked on the net and in the CCNA study guide that I bought and I don't really understand it. Can someone please help me?

Thanks in a advance.
Mike

3 replies

by rawright

The site mentioned above looks good, and I'd check it out. But in brief, an IP address has two parts - the network address and the host address. The number following the slash is the number of bits used to identify the network number, counting from the most significant bit. Since the full address always contains 32 bits (written as four decimal numbers separated by dots), 32 minus this number tells you the number of bits available to identify hosts on that particular network. For example, the network 10.0.0.0/8 indicates that the first 8 bits make up the network address, leaving 24 bits for identifying host. This network would have 2^24 host addresses available. In reality, though, the first and last address in that range are not available, as the first identifies the network number and the last in the range is used for broadcasts to the entire network.

Mathematically, if you AND the IP address of a machine with the network's subnet mask, the result is the network number. Subtracting that result from the address yields the host number. The subnet mask consists of as many 1s as the slashed number, starting from the left. If you have a network of 192.168.0.0/16, the subnet mask is 11111111.11111111.00000000.00000000 or 255.255.0.0 in decimal notation. This network has available 2^16-2 = 65534 addresses for hosts. The IP address 192.168.0.0 is the network number, and 192.168.255.255 is the broadcast address.

Subnetting is handy for breaking up large networks. Suppose that you have a network, 192.168.0.0/16 that you want to break up for management purposes. Using a subnet mask of 255.255.192.0 on all the hosts breaks them up into 4 subnets, as you've borrowed 2 bits of the hosts address range to create subnets. Now you'll have 192.168.0.0, 192.168.64.0, 192.168.128.0, and 192.168.192.0 internal segments each with 16382 host addresses available.

I hope this is helpful... But do go through the tutorial on the site above.

by that_guy

Here's a pretty simple table that should help you:

Subnets / Users Bits
2 1
4 2
8 3
16 4
32 5
64 6
128 7
256 8

Given that the following bits are numbered right to left for users:
8 7 6 5 4 3 2 1
x x x x x x x x

and left to right for subnets:
1 2 3 4 5 6 7 8
x x x x x x x x

The number of bits and how they are taken is determined by whether it is a "Subnet" or a "user" question. If it is a user question, count the bits from the right making the correct number of bits zeros. Keep in mind that you must add 2 to the requested number of users to account for Network ID and Broadcast numbers. If it is a subnet question, turn the correct number of bits into ones to find the network mask.

This discussion is closed to new replies.