# Subnetting question...

dadaji
Posts:

**96**Member ■■□□□□□□□□
.... although I am learning it for 70-291 and hence it is in this section.

Which subnet does the host 10.155.254.236/20 belong to?

My answer: 10.155.128.0

The answer given: 10.155.240.0

Can someone explain? By the way, this question is from subnettingquestions.com

I am totally confused and trying to get my head around it.

Thank you.

Which subnet does the host 10.155.254.236/20 belong to?

My answer: 10.155.128.0

The answer given: 10.155.240.0

Can someone explain? By the way, this question is from subnettingquestions.com

I am totally confused and trying to get my head around it.

Thank you.

#### Welcome

We're proud to offer IT and security pros like you access to one of the largest IT and security certification forums on the web.

## Quick Links

#### Categories

- 109.7K All Categories
- 107 Welcome Center
- 15 Announcements
- 3 Forum Rules of Engagement
- 57 Introduce Yourself
- 31 TechExams Support
- 87.4K Certification Preparation
- 131 Check Point: CCSA & CCSE
- 32.8K Cisco
- 21.5K CCNA & CCENT
- 368 CCDA & CCDP
- 8.9K CCNP
- 1.7K CCIE
- 400 Cloud Certifications
- 149 Amazon Web Services (AWS)
- 6 Azure
- 102 CCSP
- 73 Cloud+ & Cloud Essentials
- 15.3K CompTIA
- 5K A+
- 219 CASP+
- 84 CySA+
- 966 Linux+
- 4.4K Network+
- 22 PenTest+
- 259 Project+
- 3.8K Security+
- 329 Server+
- 248 Other CompTIA Certifications
- 1.2K EC-Council
- 583 CHFI
- 599 CEH
- 1.3K GIAC
- 26 IAPP
- 951 ISACA
- 9 CRISC
- 262 CISA
- 669 CISM
- 4.2K (ISC)²
- 581 CISSP
- 32 CSSLP
- 3.6K SSCP
- 921 Juniper
- 718 LPI, Red Hat & Linux Foundation
- 18.5K Microsoft
- 132 MCSA 2016 / MCSE 2016
- 158 Windows 10 exams
- 139 Windows 8 exams
- 1.4K Windows 7 exams
- 1.6K MCSA / MCSE on Windows 2012 General
- 2.3K MCTS / MCITP on Windows 2008 General
- 828 Exchange Server & Office Communications Server Exams
- 528 Other Microsoft Electives
- 350 MCSA/MCSE: Security
- 300 Microsoft Developers Certifications
- 483 SQL Server exams
- 141 Offensive Security: OSCP & OSCE
- 2K Other Security Certifications
- 331 Virtualization Certifications
- 231 Citrix Certifications
- 94 VMware
- 1.9K Other Certifications
- 6 Business Analyst Certifications
- 387 CWNP Certifications
- 857 ITIL Certifications
- 212 Project Management Certifications
- 84 Apple Mac OS X Certifications
- 62 Novell Certification
- 81 Oracle Certifications
- 52 Sun Microsystems Java Certification
- 112 Storage Certifications
- 6.6K General Certification
- 17.5K Education & Development
- 30 Colleges & Schools
- 27 Educational Resources
- 17.4K IT Jobs / Degrees
- 29 Professional Development
- 72 Cybersecurity
- 2 Cloud Security & IoT
- 8 OWASP
- 25 Security Awareness & Training
- 27 Security News & Breaches
- 19.9K General
- 9 Conferences & Events
- 10 Computer Gaming
- 3 Data Center
- 38 Classifieds
- 25 For Sale
- 4 Wanted (ISO)
- 8 Help Wanted
- 10 Just for Fun
- 17.4K Off-Topic
- 9 Scripting
- 2 Show Us Your Tech!
- 6 Troubleshooting
- 2.4K Virtualization

## Comments

1,800Member ■■■■■■■■□□Break out the octets you don't have to touch, so out of /20 that's the first 2 (/16)

So now we know it has to be 10.155.x.x . Since the mask does not touch the 4th octet for the sake of the question it can be ignored, you answer will hinge on the 3rd octet (allowing for trick answers using the subnet/broadcast address).

What's the subnet mask for 4 bits? .240 (128+64+32+16)

Subtract this from 256, = 16 . You now know that this network demarcs on the 3rd octet in periods of 16. So it's 10.155.0.0 - 10.155.15.255 , 10.155.16.0-10.155.31.255 etc. The quick way to get all the way up to the address in question is divide 16 into the 3rd octet, and pick the last number that it divides into evenly.

254/16 .. the closest evenly divided number is 240 (15 times 16). This is the 3rd octet of your subnet.

Finally following the basic/classical rules for subnetting:

Subnet number = 10.155.240.0

1st Usable address = 10.155.240.1

Last usable address = 10.155.255.254

Broadcast = 10.155.255.255

Your address falls within this range.

897Memberhttp://www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

Quest for 11K pages read in 2011

Page Count total to date - 1283

4,212Member ■■■■■■■■□□255.255.11110000.0

Remember there are 4 octets, and 8 bits in each one. All 8 bits being a 1 corresponds to 255, which is why I simplified the first 2 octets.

Now you need to find the value of the last bit borrowed, or the position weight of the last one. In this case it is 16 because there are 4 bits in the third octet turned on. (they have the weights of 128, 64, 32 and 16. 16 is the last so it is the one we want)

This is your counter. Every network address will 16 higher than the previous, so lets start writing out our network addresses.

10.155.0.0

10.155.16.0

10.155.32.0

10.155.48.0

..... Keep increasing by 16...

10.155.208.0

10.155.224.0

10.155.240.0

10.155.256.0 (This one doesn't actually exist, but would be the next in line and can help make finding the broadcast address easier.)

Once you have built this list, I think it is pretty clear to tell that 10.155.254.236 is going to fall in between 10.155.240.0 and 10.155.256.0 which means that it will fall in the 10.155.240.0 subnet.

Hope this helps. I'm not a perfect subnetter, and am in a very similar boat as you. I can usually do the problems, but I do have to walk through them step by step.

Some other helpful hints.

The reason that we are adding 16 to the third octet, is becuase that is where the first host bit (the first 0) is found. If the subnet mast was a /28 or 255.255.255.140 then we would be adding 16 to the 4th octet. Remember to write it the easy way 255.255.255.11110000 now the network addresses would still increase by 16, but this time in the 4th octet.

Also remember that the value that is added is always found by determining the positional weight of the last 1.

Decide what to be and go be it.2,333Member ■■■■■■■□□□mostsubnetting questions is to look at the subnet mask first. A /20 or a 255.255.240.0 will increment its subnets by 16. The quick math on that is 256-240. You know that subnetting will start on the third octet because it is the first octet that isnt 255.So, with the original network ID of 10.155.0.0, count in increments of 16 in the third octet.

10.155.0.0

10.155.16.0

10.155.32.0

10.155.48.0

10.155.......

10.155.......

and so on until...

10.155.224.0

10.155.240.0

It is not possible to have a 10.155.256.0 so the host is in range 10.155.240.0 - 10.155.255.255.

96Member ■■□□□□□□□□1,800Member ■■■■■■■■□□You can work in binary which is the simplest but most time consuming or you can practice this 'trick' until it's 2nd nature, once you get the sequence straight you'll be subnetting with ease.

96Member ■■□□□□□□□□I started out with binary from the MS Press book and I can do binary pretty well. But it takes a long time and in the exams, there is not much time to spend on this doing the binary way. SO I decided on the http://www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html method.

I am stumped by one more question.

Can someone explain me this in detail please? Its taken from the same thread as above.

What if they give me the subnet mask in dotted decimal?

If you're lucky and they give you a mask in dotted decimal format then you should have an even easier time. All you need again is your block size.

Let's say they have given a mask of 255.255.255.248 and you wish to know the block size. Here's the technique:

1. Starting from the left of the mask find which is the first octet to NOT have 255 in it.

2. Subtract the number in that octet from 256 to get your block size e.g. above it is 256 - 248 = block size of 8.

3. Count up from zero in your block size in the octet identified in step 1 as you have learned above (the example above would be in the last octet).

Another example is a mask of 255.255.192.0 - you would simply count up in 256 - 192 = 64 in the third octet.

One more example is 255.224.0.0 - block size is 256 - 224 = 32 in the second octet.

Also how would you go about solving the following using the above method, it will help me a lot.

What valid host range is the IP address 172.23.146.221 255.255.254.0 a part of?

Thank you again.

4,212Member ■■■■■■■■□□You will probably have less than 5 subnetting questions on this test. So person A will do those 5 questions in 1:40, while it takes you a whopping 10-15 minutes. You have I think 2 hours to answer roughly 40 questions, which allows you 3 minutes per question. So you are still ok. Don't be in such a hurry that you make stupid mistakes.

Decide what to be and go be it.2,333Member ■■■■■■■□□□You already know the answer to this, I think you're just making the process complicated for yourself.

Ask yourself these questions:

What increment will my subnets count by?

Which is the first octet that isnt 255? (from left to right)

96Member ■■□□□□□□□□The valid host range is 172.23.146.1 - 172.23.147.254

Can someone confirm this?

Thank you.

2,333Member ■■■■■■■□□□You are correct. Now, how did you get to that answer?