# Still confused on how to get block size

JockVSJock
Posts:

**1,118**Member
Ok, I'm still working on subnetting here. Here is a question from subnetting.org that I'm lost on:

I'm still confused on how to do the blocking for this problem. I did the following:

Tried to get the block size by subtracting 32 - 21. The 21 is the prefix notation.

I get 11

Once I convert the ip address and subnet into binary, I get the following network address: 172.16.0.0

Then I tried to add the 11 into the third octect to create by subnets:

172.16.0.0

172.16.11.0

172.16.22.0

This can't be correct because the answer has 172.16.16.1 and that is falls under the 2nd subnet...

Question:You have the following subnetted network: 172.16.0.0/21. You need to assign your router the first usable host address on the third subnet. What address would you use?

172.16.16.1

Answer:

I'm still confused on how to do the blocking for this problem. I did the following:

Tried to get the block size by subtracting 32 - 21. The 21 is the prefix notation.

I get 11

Once I convert the ip address and subnet into binary, I get the following network address: 172.16.0.0

Then I tried to add the 11 into the third octect to create by subnets:

172.16.0.0

172.16.11.0

172.16.22.0

This can't be correct because the answer has 172.16.16.1 and that is falls under the 2nd subnet...

***Freedom of Speech, Just Watch What You Say*** Example, Beware of CompTIA Certs (Deleted From Google Cached)

"Its easier to deceive the masses then to convince the masses that they have been deceived."

-unknown

"Its easier to deceive the masses then to convince the masses that they have been deceived."

-unknown

0

#### Welcome!

#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

## Quick Links

#### Categories

- 109.1K All Categories
- 73 Welcome Center
- 10 Announcements
- 2 Forum Rules of Engagement
- 35 Introduce Yourself
- 25 TechExams Support
- 87K Certification Preparation
- 129 Check Point: CCSA & CCSE
- 32.7K Cisco
- 21.5K CCNA & CCENT
- 367 CCDA & CCDP
- 8.9K CCNP
- 1.7K CCIE
- 379 Cloud Certifications
- 142 Amazon Web Services (AWS)
- 6 Azure
- 94 CCSP
- 73 Cloud+ & Cloud Essentials
- 15.3K CompTIA
- 5K A+
- 216 CASP+
- 79 CySA+
- 960 Linux+
- 4.4K Network+
- 20 PenTest+
- 259 Project+
- 3.8K Security+
- 327 Server+
- 247 Other CompTIA Certifications
- 1.2K EC-Council
- 581 CHFI
- 592 CEH
- 1.3K GIAC
- 22 IAPP
- 930 ISACA
- 5 CRISC
- 251 CISA
- 665 CISM
- 4.1K (ISC)²
- 546 CISSP
- 30 CSSLP
- 3.5K SSCP
- 916 Juniper
- 709 LPI, Red Hat & Linux Foundation
- 18.5K Microsoft
- 125 MCSA 2016 / MCSE 2016
- 157 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
- 349 MCSA/MCSE: Security
- 299 Microsoft Developers Certifications
- 482 SQL Server exams
- 133 Offensive Security: OSCP & OSCE
- 2K Other Security Certifications
- 322 Virtualization Certifications
- 231 Citrix Certifications
- 85 VMware
- 1.8K Other Certifications
- 385 CWNP Certifications
- 853 ITIL Certifications
- 212 Project Management Certifications
- 84 Apple Mac OS X Certifications
- 62 Novell Certification
- 80 Oracle Certifications
- 52 Sun Microsystems Java Certification
- 112 Storage Certifications
- 6.6K General Certification
- 17.4K Education & Development
- 17 Colleges & Schools
- 21 Educational Resources
- 17.3K IT Jobs / Degrees
- 17 Professional Development
- 40 Cybersecurity
- 2 Cloud Security & IoT
- 7 OWASP
- 14 Security Awareness & Training
- 10 Security News & Breaches
- 19.8K General
- 8 Computer Gaming
- 1 Data Center
- 23 Classifieds
- 15 For Sale
- 2 Wanted (ISO)
- 6 Help Wanted
- 5 Just for Fun
- 17.4K Off-Topic
- 4 Scripting
- Show Us Your Tech!
- 3 Troubleshooting
- 2.4K Virtualization

## Comments

74Member ■■□□□□□□□□I found this info on this site....worked well for...

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

61Member ■■□□□□□□□□subnet 0.0 | 8.0 |

16.0ect....first host 0.1 | 8.1 |

16.1last host 7.254 | 15.254 | 23.254

broadcast 7.255 | 15.255 | 23.255

1,118MemberOk, so I can't subtract the prefix number (/21). I have to convert to the subnet mask number and then subtract from 32, correct?

I'll have to practice some more and post my results back.

"Its easier to deceive the masses then to convince the masses that they have been deceived."

-unknown

61Member ■■□□□□□□□□I made i mistake in the table, subnet 24.0 comes after 16.0, not 32. \

There are many ways to subnet, I have never tried doing it that way so I'll let someone more knowledgeable to reply on that part.

1,118MemberIf the number is < 7 then subtract 8

If the number is < 15 and >= 8 then subtract 16

If the number is < 31 and >= 24 then subtract 32

"Its easier to deceive the masses then to convince the masses that they have been deceived."

-unknown

61Member ■■□□□□□□□□You will always subtract from 256. To find the number that you need to subtract just look at the CIDR notation that is given.

For example... If we have a

172.16.10.66/27, we see that the subnet comes out to be 255.255.255.224To find your interesting octet, which is where the subnetting is taking place, line up the IP address and the subnet mask..

172 .16 .10 .66255.255.255.

224Now, subtract 224 from 256, you get 32. So you line up the subnets starting from 0, adding 32.

0,32,64,96,128,160... ect

From there you can fill out the host ranges, and broadcasts. The very first ip (network address) and last (broadcast) cannot be used as a valid host.

(this table skips networks 0 and 32)Network

172.16.10.64

172.16.10.96

172.16.10.128

172.16.10.160

First Host

172.16.10.65

172.16.10.97

172.16.10.129

172.16.10.161

Last Host

172.16.10.94

172.16.10.126

172.16.10.158

172.16.10.190

Broadcast

172.16.10.95

172.16.10.127

172.16.10.159

172.16.10.191

Hope i explained well enough. I highly recommend Todd Lammle's way of subnetting!

801MemberI see the /21 is less than 24, putting it in the 3rd octet. I go with a magic number from there:

16+5=21

I need to move 5 bits over in the 3rd octet: 128, 64, 32, 16,

4, 2, 18,So, now I know my subnets will just be an increment of 8.xxx which leads to:

subnet 1: xxx.xxx.0.0 - xxx.xxx.7.255

subnet 2: xxx.xxx.8.0 - xxx.xxx.15.255

subnet 3: xxx.xxx.16.0 - xxx.xxx.23.255

Etc.

Essentially, this is just shifting your focus from the 4th octet to the 3rd which made things a little easier for me. I x'ed out the first two octets as they don't matter because were only focusing on the 3rd octet (/21). You can drop in your 172.16.x.x as in your example and it works out just the same.

On a side note, in your logic you missed the 8 bits to an octet. So, 32-21 = 11 which is 3+8. 8 being the 4th octet and if you count 3 from right to left in the 3rd octet, your next number is the 8 bit (... 8,4,2,1), like the example above.

Next up: eventually the RHCE and to start blogging again.

Control Protocol; my blog of exam notes and IT randomness291MemberMy apologies but this is false from the beginning.

if IP address is 172.16.0.0/21 , you should substract the default value of class B (/16) from the given value(/21) in order to find how many

subnet bits borrowed.

So, 21-16 = 5 bits. Now, where to begin the subnetting?

Look, 172.16.x.x is the class B IP address by default. The default subnet mask for the class B is 255.255.0.0, however, it will change due to

subnetting.

the illustration for the class B is (network.network.host.host)

The result ? we had borrowed 5 bits. That does mean beginning from the left of the third octet because first and the second is for network thats why those should remain as they are, 11111000 is equal to 128+64+32+16+8 = 248

This leads us from 255.255.0.0 to 255.255.248.0

So,then we should substract this 248 from 256(the whole) in order to find the block size. And it is 8.

In this case, the first subnet will be 172.16.0.0, the second will be 172.16.8.0 the third will be 172.16.16.0 up to 172.16.240.0(included)

How many subnets do we have? 21-16 = 5 --> 2^5 = 32 lets verify this below

172.16.0.0

172.16.8.0

172.16.16.0

172.16.24.0

.

.

.

.

.

.

.

172.16.240.0

how many host bits per subnet? lets open the resulted subnet . 11111111.11111111.11111000.00000000

So, how many zeroes do you count? 3 bits on the third octet and 8 bits on the last octet resulted in 2^11 = 2048 host bits per subnet

Now your answer, lets get back to third subnet

if subnet zero rule is enabled, the first and the last subnet are counted as well.

172.16.0.0 --> the first subnet

( )

( ---- block size = 8 )

( )

172.16.8.0 --> the second subnet

172.16.16.0 --> the third subnet

172.16.24.0 --> the forth subnet

Thats why the valid hosts are

172.16.16.1through 172.16.23.254 on the third subnetMonster PC specs(Packard Bell VR46) : Intel Celeron Dual-Core 1.2 GHz CPU , 4096 MB DDR3 RAM, Intel Media Graphics (R) 4 Family with IntelGMA 4500 M HD graphics.5 year-old laptop PC specs(Toshiba Satellite A210) : AMD Athlon 64 x2 1.9 GHz CPU, ATI Radeon X1200 128 MB Video Memory graphics card, 3072 MB 667 Mhz DDR2 RAM. (1 stick 2 gigabytes and 1 stick 1 gigabytes)

587Member ■■■□□□□□□□Bit

1

1

1

1

1

1

1

1

Mask

128

192

224

240

248

252

254

255

Block size

128

64

32

16

8

4

2

1

hth

74Member ■■□□□□□□□□http://www.techexams.net/forums/ccna-ccent/38772-subnetting-made-easy.html

The main thing to get here is your barriers. The Octet is divided into four parts divided by a (.) or barrier...think of the "period" as a barrier.

at the end of the 1st peroid, or barrier is decimal # 8

at the end of the 2nd period, or barrier is decimal # 16

at the end of the 2nd period, or barrier is decimal # 24

at the end of the 2nd period, or barrier is decimal # 32

Now, whatever your /# or CIDR is, simply deduct that # from the next or upcoming barrier #, then use your power of 2's table. whatever you're left with after subtracting your CIDR # from your next barrier #, your block or increment will be that number x'S the power of 2.

Lets take for instance

/26

You know that your next barrier number is 32....remember...8, 16, 24, 32so in this instance, you simply subtract 26 from 32 which leaves you with 6

Now go to your power of 2's table... 2^6 = 64

64 is your block or increment

Very fast and easy way of determining your block if you have the CIDR.

Now, if your not given the CIDR or slash # and you're given a subnet mask address instread, you simply convert the address into binary and count all of the 1's in the Octet that has 0's. For instance in the subnet mask

255.255.255.240, after you convert this address to binary, it will look like this: 11111111.11111111.11111111.11110000. You now have 28 Network bit, subtract that from your next barrier which is 32, and you're left with 4. You then go to your power of 2 table.... 2^4 =16

While we're here, you can use the binary address to figure out how many hosts and subnets you can get. Simply count the number of 1's in the last octet, then use your power of 2 tables. So you have four 1's... 2^4 = 16 for a total of 16 subnets. Likewise, to find out the number hosts per subnet, add up the # of zero's in that last octet and again use your power of 2 tables..in this case you have "four" zero's left... so 2^4 = 16 hosts per subnet.16 is your block or increment #

This should work until you become familiar with the process and can memorize some of the helpful charts that guys have posted.

Anyone, please free free to critique what I've just posted, as I'm very new to subnetting and I certainly wouldn't want to mislead anyone.

186Membere.g

If it was a /27, the last bit you would have turned on. i.e the 27th bit along would be the 32 bit, thats your increment.

Alternatively:

If your mask is a /24 or above: Deduct from 32 and do the powers of 2 against the remainder.

If your mask is a /16 or above do the same but deduct from 24.

If your mask is a /8 or above again the same but deducting from 16.

e.g /29 : 32 -29= 3. 2^3 = increment of 8 in the last octet.

e.g. /19: 24 -19= 5. 2^5= increment of 32 in the 3rd octet.

e.g. /10: 16 -10= 6. 2^6= increment of 64 in the 2nd octet.

1,118MemberIf that is the case, then why for the following:

172.16.78.137/19

I take 24 - 19 which is 5, because that is the next bit to turn on is /24, right?

If I put this ip and subnet into the subnet calculator. It shows a block size of 32 with 8 subnets for the network.

EDIT: I keep screwing this up, I meant 256 - 224, which is a block size of 32.

"Its easier to deceive the masses then to convince the masses that they have been deceived."

-unknown

186MemberCorrect - a /19 would give you increments of 32.

The 19th bit turned on has a placement binary placement value of 32.

Or

24-19 = 5.....2^5 = an increment of 32

Or

256 - 224 = 32.

1,118MemberFirst I found the block size. First, need to subtrack the last octect which is 240 from 256.

This gives us 16, so this is the block size.

Then I break the following ip address down:

192.168.24.0

255.255.255.240

11000000.10101000.00011000.00000000

11111111.11111111.11111111.11110000

N: 192.168.24.0

FH: 192.168.24.1

LH: 192.168.24.14

B: 192.168.24.15

This is where I'm still getting confused. My first valid network address is 192.168.24.0.

From here I add 16 to the last octect, correct?

192.168.24.0

192.168.24.16

192.168.24.32

192.168.24.48

192.168.24.64

192.168.24.80

I think I count up to the fourth address, which is 192.168.24.48 and then assign the last valid ip address, correct?

thanks

"Its easier to deceive the masses then to convince the masses that they have been deceived."

-unknown

801MemberGenerally, I just see that the 28 is 4 bits more than /24 and start counting up blocks by 16.

Next up: eventually the RHCE and to start blogging again.

Control Protocol; my blog of exam notes and IT randomness703Bannedyour 11 is your hosts 2^11 = 2048

377MemberIts these i'm really struggling with 254 class B subnets

Question:Which subnet does host 172.16.89.2 255.255.254.0 belong to?Answer:172.16.88.0587Member ■■■□□□□□□□2. Default mask for Class B is 255.255.0.0

The intersting octet here is x.x.254.0

A 255.255.254.0 mask gives you a block size of 2 in the third octet

Starting at zero, count up the subnets in increments of 2(in the third octet)

172.16.0.0

172.16.2.0

171.16.4.0

172.16.6.0

etc

etc

etc till you get to the subnet in which 172.16.89.2 belongs to (172.16.88.0)

This particular address is in this range -

Network - 172.16.88.0

1st Host - 172.16.88.1

Last host - 172.16.89.254

Broadcast - 172.16.89.255

Next network - 172.16.90.0

Does this help???

377MemberThink I need to take a break.

Will post how I get on.

Thank you

703BannedWith an example:

172.16.89.6 255.255.254.0

We know two things

1) this is a class b address

2) we'll be working in the 3rd octet - this is because all the 255's arent usable the highest value in 1 octet is 255

since it is 254 we HAVE 1+8 available bits for hosts 2^9 = 512-2 so 510 hosts per subnet

now on to the network part

256 - 254 = 2 which is our block size (how big our sub-nets are - just reminder that our next total increment is the next subnet)

172.16.88.0 - 172.16.89.254

172.16.90.0 - 172.16.91.254 etc

so how many subnets does this give us?

lets look at what we've borrowed.

original class is /16 + 7 = 23 so this is a /23

7 ones added onto the original class

2^7 = 128 total networks with 510 hosts per network

I hope this clears it up

I personally dont like Lammle's method of subnetting.

74Member ■■□□□□□□□□556Member377MemberOne thing thats confusing me now (is and this may seem silly so bare with me)

I think you only count the subnet bits as the subnets, so say you borrow to subnet bits you have 4 subnets and not 2 bits plus the 16bits already in the mask by default?

74Member ■■□□□□□□□□377MemberGonna knock out about 10 practice sessions a day to try and keep it fresh

703Banned/16 + 2 = /18 which would be 255.255.192.0 see you've "borrowed" two bits from the third octet? 255.255.0.0 defines the octet you're working in since 255.255.0.0 says we cant "work" in the first two octets we MUST work in the third.

Just remember your default classes. /8 /16 /24

/8 = we're subnetting in the second octet

/16 third

/24 fourth

etc and pay attention to the type of address and the subnet mask.

I WILL agree with everyone that you need to pick ONE method and stick with it. I went through a lot of methods trying to learn subnetting and if you just sit back and relax you will see that it is all a big pattern. (SEE BELOW)

You may also want to try drawing a chart?

so in this example say:

172.16.88.9

255.255.254.0

7 bits turned on so we count down the list till we see 254 so we know this is the right mask and then we count across to 7 which is 128 which is our # of subnets so since we're in the third octet and we have 7 on that must mean we have 9 0's for hosts so count across 9 spaces which is 512-2 = 510 and there is your answer:

128 1

192 2

224 3

240 4

248 5

252 6

254 7

2 4 8 16 32 64 128 256 512 1024 2048 4096

===============

if you're wondering why we have to go 256-subnet mask to find our block size it's simply because a single octet holds 0 - 255 or 256 possible values. So say for instance you didnt know the block size but knew we had 128 subnets.... 256/128 = 2 it's all relative.

Keep practicing you'll get it.

74Member ■■□□□□□□□□This^ good info! Here's also a full chart that will help illustrate what he's saying. Also for those seasoned networkers, the ruler in Figure B, is excellent for planning out networks:

IP subnetting made easy | TechRepublic

daz, check out the Figure C chart...capitlizes on what drkat was saying.

703Banned1,118MemberI didn't get this correct

I though the block size was 16 (256 - 240) and got the following for the network address:

Network - 192.168.4.240

1st host - 192.168.26.240

"Its easier to deceive the masses then to convince the masses that they have been deceived."

-unknown

703Banned

192.168.4.0Your router needs to be assigned the first valid host address of the 2nd subnet on network 192.168.4.0/28. What address would you assign?

255.255.255.240

256 - 240 = 16

192.168.4.0 network valid hosts= 1 - 14 .15 broadcast

192.168.4.16 network valid hosts 17 - 30 .31 broadcast

second subnet first host is .17

192 = class C

255.255.255.240 = 4th octet we're working in