Subnet Mask Questions Continued :)

MallowGirl12

Member
Jul 18, 2012
49
0
0
What subnet mask should be applied to the class B
address 172.31.0.0 to give at least 120 usable hosts
per subnet with the maximum possible number of
subnets? Hope this question is fine to ask again :hmm:
 

ScottMac

Moderator<br>Networking<br>Elite member
Mar 19, 2001
5,471
2
0
Give us your best answer and how you got it; then we have an idea of what you know and how you apply it.

Most folks here are into doing someone else's homework. ;-}
 

alkemyst

No Lifer
Feb 13, 2001
83,967
19
81
You'd need to pick the subnet mask that gives you at least that many hosts.

From the way I do it is I know /24 = 256 (technically 254 usable hosts). So since I would need 120 hosts I need to work up, /25 = 128 (126 usable) and /26 = 64 (62 usable). /25 would be the best selection.

At /25 and higher your network address is further subnetted within the range.

a 192.168.1.0 /25 also leaves a 192.168.1.128 /25 range as well.
 

ch33zw1z

Lifer
Nov 4, 2004
37,989
18,336
146
I would do it like alky. subnet to 255.255.255.128, 126 usable hosts with 2^9 subnets.
 

serpretetsky

Senior member
Jan 7, 2012
642
26
101
What subnet mask should be applied to the class B
address 172.31.0.0 to give at least 120 usable hosts
per subnet with the maximum possible number of
subnets? Hope this question is fine to ask again :hmm:
ip address and subnet masks are easier to understand in binary than in decimal notation. if you dont understand binary to decimal conversion i suggest you read up on it.

The fact that its a class B address and that the actual ip address itself is irrelevant to the question. The main info you need to know is your trying to maximize the number of subnets and you have 120 hosts that need unique ip addresses.


What have you read so far on subnets and where are you having trouble?
 

MallowGirl12

Member
Jul 18, 2012
49
0
0
i did visit that website, but the videos of them are not working after accepting the agreement, otherwise its a good website.
Serpretetsky i have problems in itendifying IP addresses and how to find their usable hostage and subnet mask. Its the only thing i find difficult in for an exam, so thats why i joined this forum to recieve some help. Cheers
 
Last edited:

Ghiedo27

Senior member
Mar 9, 2011
403
0
0
The subnet mask gives you all of the info you need to take any IP address and figure out a lot about the subnet it's on. Let's take an example question from subnettingquestions.com :
Which subnet does host 10.0.93.159 with a subnet mask of 255.255.240.0 belong to?
Let's start with the subnet mask. A binary 1 in the mask means that's a network number in the IP address and a binary 0 means that it's part of the host range. A 255 in decimal means that those parts are all 1s, so you can just copy over the IP address directly on those octets (groups of 8 bits between the periods). So right off the bat you know that the IP address for the network is 10.0.<something>.

We need to figure out what 240 is in binary. Once you know how many bits you have you can determine how many hosts are in the range. Decimal 240 translates to 11110000 in binary. A single bit can be on or off, so that can represent two numbers- in this case IP addresses. So every time you add a 1 or a 0 you double the amount of numbers you can get. Two binary digits can make a 0, 1, 2, or a 3. Three binary digits can give you those four plus 4, 5, 6, and 7- etc.

So to figure out the total amount of addresses you can get from a certain number of host bits (the zeros in the subnet mask) you just multiply by 2 for every 0. Since there are four 0s the number of hosts will be 2x2x2x2 or 16. It's important to remember that you count by 16 in the correct field. In our case we started in the 3rd octet with 240 so that's where we count by 16. We already know the address starts with 10.0, so we'll start there.

10.0.0.0, 10.0.16.0, 10.0.32.0, 10.0.48.0, 10.0.64.0, 10.0.80.0, 10.0.96.0

There, we went past the host's address of 10.0.93.159. Counting by 16 like that (which we got from the subnet mask) has given us our range for the subnet. 10.0.80.0 - 10.0.95.255 (the range goes all of the way to just before the start of the next subnet). Now, we know the Network number and we know the broadcast address for the network (the very last address is the broadcast address for a network).

We still need to figure out the number of hosts in the subnet. We can use the same multiply by 2 method from before, but we have to count the zeros from the last octet and remember the network address and the broadcast address. We have 4 zeros from the 3rd octer and 8 from the last octet, so 12 zeros in total. 2x2x2x2x2x2x2x2x2x2x2x2 or 4096. After subtracting 2 for the network and broadcast addresses that leaves 4094 valid host addresses.

Now we know a lot about that subnet by just using those 2 numbers.
 

MallowGirl12

Member
Jul 18, 2012
49
0
0
Thank You, I hope You guys will really help me as much as u can on this topic, i'm already starting to get the hang of it from your answers, i got a retake exam to do this august, there will be some subnet mask questions 2 to do , so hope its fine to post questions on these for help , most addresses are not available on the internet/youtube, so I post them here as well
 

alkemyst

No Lifer
Feb 13, 2001
83,967
19
81
That's part of what this subforum is for. Personally I like answering these types of questions as it reinforces my own knowledge.

Since March 2011, I have taken the three CCNP Route and Switch tests, CCNA-Wireless and CCNA-Voice. I am currently working on CCNP-Voice.

I was awarded with "Most Professional Development" for our FY2012 year end.

My goal is to hone my skills and shoot for CCIE-R&S by 2015
 

MallowGirl12

Member
Jul 18, 2012
49
0
0
Thank You Alkemyst for understanding So I hope u guys can continue helping me on this topic as it's the hardest one from the exam paper I will be retaking everyones answers have been helpful
 

Mungla

Senior member
Dec 23, 2000
843
0
71
The best method to visualize subnetting, in my opinion, is the powers of 2 table. There are some good examples on Google if you search. Everything makes sense once you understand some basics of binary and then also visualize the table. The testing centers for most Cisco exams give you a dry erase tablet and marker. This chart was pretty much the only thing I needed to write down for my original CCNA exam.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |