# Can someone explain this subnetting question to me ?

kevincuomo
Registered Users Posts:

**3**■□□□□□□□□□
How did they get this answer.. I worked it out and it doesn't come out to that..

I just don't understand how they went from .16 to .23 ?

**Q****uestion:***What is the last valid host address on the subnet 10.16.0.0/13?***Answer:**10.23.255.254I just don't understand how they went from .16 to .23 ?

#### Categories

- All Categories
- 388 Welcome Center
- 82 Announcements
- 10 Forum Rules of Engagement
- 218 Introduce Yourself
- 59 TechExams Support
- 88.7K Certification Preparation
- 131 Check Point: CCSA & CCSE
- 33K Cisco
- 21.6K CCNA & CCENT
- 370 CCDA & CCDP
- 9K CCNP
- 7 Cisco CyberOps
- 1.7K CCIE
- 541 Cloud Certifications
- 199 Amazon Web Services (AWS)
- 40 Azure
- 120 CCSP
- 79 Cloud+ & Cloud Essentials
- 15.5K CompTIA
- 5K A+
- 245 CASP+
- 114 CySA+
- 974 Linux+
- 4.4K Network+
- 35 PenTest+
- 266 Project+
- 3.9K Security+
- 335 Server+
- 252 Other CompTIA Certifications
- 1.2K EC-Council
- 586 CHFI
- 627 CEH
- 1.4K GIAC
- 47 IAPP
- 1K ISACA
- 29 CRISC
- 284 CISA
- 707 CISM
- 4.3K (ISC)²
- 666 CISSP
- 35 CSSLP
- 3.6K SSCP
- 926 Juniper
- 737 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
- 537 Other Microsoft Electives
- 349 MCSA/MCSE: Security
- 300 Microsoft Developers Certifications
- 485 SQL Server exams
- 161 Offensive Security: OSCP & OSCE
- 2K Other Security Certifications
- 345 Virtualization Certifications
- 231 Citrix Certifications
- 104 VMware
- 1.9K Other Certifications
- 15 Business Analyst Certifications
- 391 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
- 114 Storage Certifications
- 6.7K General Certification
- 18K Education & Development
- 64 Colleges & Schools
- 93 Educational Resources
- 17.7K IT Jobs / Degrees
- 76 Professional Development
- 393 Cybersecurity
- 19 Auditing & Compliance
- 16 Cloud Security & IoT
- 15 Cryptography & PKI
- 38 Cybersecurity Management
- 5 Data Science & Machine Learning
- 9 Forensics
- 8 ICS/SCADA Security
- 35 Incident Response
- 8 Linux Security
- 11 OWASP
- 33 Pentesting
- 44 Security Awareness & Training
- 53 Security News & Breaches
- 11 Windows Security
- 20.2K General
- 35 Conferences & Events
- 22 Computer Gaming
- 7 Data Center
- 86 Classifieds
- 52 For Sale
- 6 Wanted (ISO)
- 16 Help Wanted
- 17 Just for Fun
- 19 Networking
- 17.5K Off-Topic
- 21 Scripting
- Show Us Your Tech!
- 26 Troubleshooting
- 2.4K Virtualization

## Comments

20■□□□□□□□□□11111111.

11111000.00000000.00000000You can draw the line right before the 3rd 0 to find out the block size.

11111|000Starting from the right, we start at 1, and keep doubling it until we get passed our imaginary line we drew to find the block size. Since there is 3 0's, we'll go from 1 -> 2 -> 4 and then to get passed the line, it will go to 8.

8 is the block size.

On the 10.16.0.0/13 subnet,

The network ID is 10.16.0.0

The broadcast address is 10.23.255.255

The valid host ranges from 10.16.0.1 through 10.23.255.254

To answer your question, if we add the block size of 8 to .16, we will get .24. The broadcast address is 1 less than this (10.23.255.255), which makes the last valid host 10.23.255.254.

Let me know if any of that doesn't make sense and I'll see if I can clarify better.

88■□□□□□□□□□Systems Support Specialist

Associate of Arts Computer Information System

Certifications: CompTIA A+, Network+, Microsoft Technology Associate: Networking Fundamentals

2018 Goals:CompTIA Security+,CompTIA CySA+20■□□□□□□□□□The binary conversion is easy if you can remember 1 number. 128

Start with 128, then halve it over and over until you get 1.

128 64 32 16 8 4 2 1

To translate a binary to decimal, place the binary byte (8 bits / 8 1's and 0's) underneath, one bit at a time.

For example, if we wanted to know what 10110110 is in decimal form, we'll place it underneath.

12864321684211

0

1

1

0

1

1

0

The rest is an addition problem. Anything with a 1 underneath gets added together. So 128+32+16+4+2, which equals 182.

So 10110110 in decimal form is 182. All 0's would be 0. All 1's would be 255. (128+64+32+16+8+4+2+1 = 255)

---

To go the other way around, from decimal to binary, we also start at 128 and halve it until we get 1

128 64 32 16 8 4 2 1

This time though, we put a decimal number on top, starting at 128. The decimal needs to be 255 or under since we are only working with 8 bits. Lets use 155.

155

1286432168421So you need to ask yourself, is your decimal (155) greater/equal to, or fewer then 128. If its greater, we subtract 128 from 155, and then put a 1 underneath. Then we take whatever 155-128 is (which is 27) and move it to the next number over, and do the same thing.

155

27

12864321684211

Since 27 is less than 64, we write a 0 underneath, then move 27 over again, and keep doing this until 27 is greater than the number underneath. 27 is greater than 16, so we subtract 16 from 27 to get 11, and put a 1 underneath.

155

27

27

27

11

12864321684211

0

0

1

We keep doing this until we get to 0.

155

27

27

27

11

3

3

1

12864321684211

0

0

1

1

0

1

1

So 155 in binary form is 10011011. To check our work, we add everything that has a 1 underneath together, and we should get back to our original decimal number of 155. (128+16+8+2+1) which it does add back up to 155.

I hope this helps.

88■□□□□□□□□□Systems Support Specialist

Associate of Arts Computer Information System

Certifications: CompTIA A+, Network+, Microsoft Technology Associate: Networking Fundamentals

2018 Goals:CompTIA Security+,CompTIA CySA+3■□□□□□□□□□So the usable Hosts are from 17 - 22 ?

And can I break this up into different subnets further still staying in the second octet?

Example: 10.24.255.54 to 10.31.255.54?

88■□□□□□□□□□Systems Support Specialist

Associate of Arts Computer Information System

Certifications: CompTIA A+, Network+, Microsoft Technology Associate: Networking Fundamentals

2018 Goals:CompTIA Security+,CompTIA CySA+20■□□□□□□□□□The usable hosts is from 10.16.0.1 to 10.23.255.254

Because the block size is 8 and we're working with the 2nd octet, we know that the subnets are

10.0.0.0

10.8.0.0

10.16.0.0

10.24.0.0

10.32.0.0

and so on.

The above addresses are the network ID's. The immediate address before the next subnet is the broadcast address. Everything inbetween is a valid host in that subnet.

So in your question, we're working with the 10.16.0.0 subnet. We know the block size is 8, and we know that the next subnet is 10.24.0.0.

Subtracting 1 from 10.24.0.0 is 10.23.255.255, this is our broadcast address.

So since we know our network ID is 10.16.0.0, and our broadcast address is 10.23.255.255, everything inbetween is a valid host.

10.16.0.1 - 10.23.255.254

To answer your next question, yes, you can break it up into smaller subnets. You would need to know how many different subnets you need, and how many hosts per subnet.

For example, right now your example of 10.16.0.0 subnet is a CIDR /13. If you had a business that had say, 8 different departments, and you wanted each department to have it's own subnet, you could do so by adding bits to the CIDR. You will know how many bits to add depending on how many subnets you want to add.

You start at 2, and then double that until the result is more than the number of subnets you want.

So 2 -> 4 -> 8. It jumped 3 times, so we add 3 bits to the /13, to make it a /16. In this specific example this doesn't really matter because no business will ever come close to 65,534 devices on a single subnet (probably), but to find the number of hosts available per subnet, you will draw an imaginary line at /16.

1111111.1111111

|.00000000.00000000Then from the right side, you start with the number 2, and double that each time you move left 1 digit. (2 -> 4 -> 8 -> 16, etc.) until you get to your line. If you have a calculator, you can do 2 to the power of however many 0's you have. In this case 2^16 = 65,536, then you subtract 2 for the host ID and broadcast address for 65,534 hosts per subnet.

To summarize. Going from a /13 to /16 would give you 8 subnets with each of the 8 having 65,534 valid hosts.

@Techie

CIDR is your subnet mask. Classful subnet masks aren't used anymore, so instead we use CIDR's.

A subnet mask of 255.0.0.0 is a CIDR of /8 because there is 8 bits.

A subnet mask of 255.255.0.0 is a CIDR of /16 because there is 16 bits.

For example, a CIDR of /20 would look like this.

11111111 . 11111111 . 11110000 . 00000000

It would be 20 1's, and the rest 0s.

Now you just do your binary to decimal conversion to find out the subnet mask in decimal form.

so 11111111.11111111.11110000.00000000 is equal to 255.255.240.0

When you are given a CIDR, just break it up into octets, and go from there.

52■■□□□□□□□□/0 /1 /2 /3 /4 /5 /6 /7 /8

/8 /9 /10 /11 /12 /13 /14 /15 /16

/16 /17 /18 /19 /20 /21 /22 /23 /24

/24 /25 /26 /27 /28 /29 /30 /31 /32

256 128 64 32 16 8 4 2 1 -Network size

0 255 127 63 31 15 7 3 1 -Wildcard address

0 2 4 8 16 32 64 128 256 -Number of subnets

254 126 62 30 14 6 2 0 0 -Number of hosts per subnet

0 128 192 224 240 248 252 254 255 -Subnet address

Network ID - First IP address

Broadcast ID - Last IP address

Usable IP Range - (Network ID + 1) through (Broadcast ID - 1)

I apologize for the formatting, but this makes everything easier for me

3■□□□□□□□□□Would be nice to be able to do this in my head without writing it out!

88■□□□□□□□□□Associate of Arts Computer Information System

Certifications: CompTIA A+, Network+, Microsoft Technology Associate: Networking Fundamentals

2018 Goals:CompTIA Security+,CompTIA CySA+