# Subnetting question...

dadaji
Member Posts:

**96**■■□□□□□□□□
.... 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.

#### Categories

- 111.7K All Categories
- 319 Welcome Center
- 66 Announcements
- 6 Forum Rules of Engagement
- 181 Introduce Yourself
- 51 TechExams Support
- 88.5K Certification Preparation
- 131 Check Point: CCSA & CCSE
- 32.9K Cisco
- 21.6K CCNA & CCENT
- 370 CCDA & CCDP
- 9K CCNP
- 7 Cisco CyberOps
- 1.7K CCIE
- 524 Cloud Certifications
- 192 Amazon Web Services (AWS)
- 35 Azure
- 119 CCSP
- 78 Cloud+ & Cloud Essentials
- 15.5K CompTIA
- 5K A+
- 244 CASP+
- 112 CySA+
- 973 Linux+
- 4.4K Network+
- 34 PenTest+
- 266 Project+
- 3.9K Security+
- 332 Server+
- 251 Other CompTIA Certifications
- 1.2K EC-Council
- 586 CHFI
- 625 CEH
- 1.4K GIAC
- 46 IAPP
- 1K ISACA
- 27 CRISC
- 284 CISA
- 706 CISM
- 4.3K (ISC)²
- 660 CISSP
- 35 CSSLP
- 3.6K SSCP
- 926 Juniper
- 736 LPI, Red Hat & Linux Foundation
- 18.6K Microsoft
- 150 MCSA 2016 / MCSE 2016
- 161 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
- 536 Other Microsoft Electives
- 349 MCSA/MCSE: Security
- 300 Microsoft Developers Certifications
- 485 SQL Server exams
- 160 Offensive Security: OSCP & OSCE
- 2K Other Security Certifications
- 345 Virtualization Certifications
- 231 Citrix Certifications
- 104 VMware
- 1.9K Other Certifications
- 14 Business Analyst Certifications
- 390 CWNP Certifications
- 873 ITIL Certifications
- 220 Project Management Certifications
- 85 Apple Mac OS X Certifications
- 62 Novell Certification
- 81 Oracle Certifications
- 52 Sun Microsystems Java Certification
- 113 Storage Certifications
- 6.7K General Certification
- 17.9K Education & Development
- 61 Colleges & Schools
- 88 Educational Resources
- 17.6K IT Jobs / Degrees
- 66 Professional Development
- 351 Cybersecurity
- 19 Auditing & Compliance
- 15 Cloud Security & IoT
- 14 Cryptography & PKI
- 36 Cybersecurity Management
- 5 Data Science & Machine Learning
- 9 Forensics
- 8 ICS/SCADA Security
- 24 Incident Response
- 7 Linux Security
- 11 OWASP
- 32 Pentesting
- 41 Security Awareness & Training
- 52 Security News & Breaches
- 9 Windows Security
- 20.1K General
- 31 Conferences & Events
- 21 Computer Gaming
- 7 Data Center
- 81 Classifieds
- 49 For Sale
- 6 Wanted (ISO)
- 16 Help Wanted
- 15 Just for Fun
- 13 Networking
- 17.5K Off-Topic
- 20 Scripting
- Show Us Your Tech!
- 20 Troubleshooting
- 2.4K Virtualization

## Comments

1,799■■■■■■■■□□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.

897http://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,214■■■■■■■■□□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,333■■■■■■■□□□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.

96■■□□□□□□□□1,799■■■■■■■■□□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.

96■■□□□□□□□□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,214■■■■■■■■□□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,333■■■■■■■□□□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)

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

Can someone confirm this?

Thank you.

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