subnetting made ez. binary12864321684211286432168421 128 192224240248252254255sub mask cidr b...

23
Subnetting Made EZ

Upload: antonia-james

Post on 19-Dec-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

Subnetting Made EZ

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

Subnetting is a major part of your CCNA exam. The chart above will speed the time taken when answering subnetting questions you will encounter on your exam.

The following presentation will show you:

1. How to create the above chart.

2. How to use the chart when answer subnetting questions.

Binary

Sub Mask

CIDR

B Networks

C Networks

Host

Your subnetting chart made EZ foundation is remembering the row titles. The acronym I use to remember the row titles is: “Brian Says Class Has Been Canceled”. Feel free however, to use whatever you like.

Brian

Says

Class

Been

Canceled

Has

The title rows from top to bottom are as follows: “Binary”, “Sub Mask”, “CIDR”, “Host”, “B Networks”, & “C Networks”.

Binary

Sub Mask

CIDR

B Networks

C Networks

Host

Next complete the row titled “Binary”. The “Binary” row is going to use the same chart we used to convert decimal numbers to binary and vice versa.

128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

With our subnetting chart we focus on the 3rd and 4th octets of a TCP/IP address so we write this chart out twice.

Binary

Sub Mask

CIDR

B Networks

C Networks

Host

The row “Sub Mask” was abbreviated for subnet mask. To determine the subnet mask row, start with the number “128” it is easy to remember because it falls in line with “128” from the “Binary” row in the 3rd octet just above it.

128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

Then take the first column in “Sub Mask” row, which has a value of “128”, and add it to next column in the “Binary” row. In this case, the number is “64”. Adding these two together will determine the value of the “Sub Mask” row in the second column. 128 + 64 = 192.

128 192

Repeat this until you reach the end of the 3rd octet numeric value 255. You should be adding values: 192 + 32 = 224, 224 + 16 = 240, 240 + 8 = 248, 248 + 4 = 252, 252 + 2 = 254, & 254 + 1 = 255.

224 240 248 252 254 255

Then the line you just created gets copied from the 3rd octet into the 4th octet.

128 192 224 240 248 252 254 255

Binary

Sub Mask

CIDR

B Networks

C Networks

Host

Moving on to the row titled “CIDR”. It is always important to remember our TCP/IP addresses are 32 bits long, and with our chart we concentrate on the last 16 bits.

128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255 128 192 224 240 248 252 254 255

/25 /26 /27 /28 /29 /30 /31 /32/19 /20 /21 /22 /23 /24/12 /13 /14 /15 /16 /17 /18/5 /6 /7 /8 /9 /10 /11/3/2/1 /4

/25 /26 /27 /28 /29 /30 /31 /32/17 /18 /19 /20 /21 /22 /23 /24

“CIDR” row is simple count from 1 through 32. We drop 1 through 16 because these numbers are found in the first 2 octets. Then take 17 through 32 counting by 1 left to right.

Binary

Sub Mask

CIDR

B Networks

C Networks

Host

“Host” row is short for Host per Network. To start we need to add a row above the binary line in the 3rd octet. To create this, just double the previous number.

128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255 128 192 224 240 248 252 254 255

/25 /26 /27 /28 /29 /30 /31 /32/17 /18 /19 /20 /21 /22 /23 /24

Now, we have to take the numbers we just created in the 3rd octet, the numbers in the “Binary” row in the 4th octet, and subtracting 2 from each to calculate the number of host per network.

32768 16384 8192 4096 2048 1024 512 256

0126 62 30 14 6 2 032766 16382 8190 4094 2046 1022 510 254

Binary

Sub Mask

CIDR

B Networks

C Networks

Host

“B Networks” row is to answer questions when subnetting a Class B network address to determine how many networks are created.

128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255 128 192 224 240 248 252 254 255

/25 /26 /27 /28 /29 /30 /31 /32/17 /18 /19 /20 /21 /22 /23 /24

To create the “B Networks” row, take the numbers right to left from the “Host” row after dropping the first zero. Copy these numbers into the “B Networks” left to right.

32768 16384 8192 4096 2048 1024 512 256

0126 62 30 14 6 2 032766 16382 8190 4094 2046 1022 510 254

510 1022 2046 4094 8190 16382 - -0 2 6 14 30 62 126 254

You will not need to calculate the last 2 positions in this row because neither are capable of holding any host as you can see in the row above.

Check yourself 254 in Host is above 254 in B Networks

Binary

Sub Mask

CIDR

B Networks

C Networks

Host

“C Networks” row is to answer questions when subnetting a Class C network address to determine how many networks are created.

128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255 128 192 224 240 248 252 254 255

/25 /26 /27 /28 /29 /30 /31 /32/17 /18 /19 /20 /21 /22 /23 /24

To create the “C Networks” row, take the “B Networks” section in the 3rd octet and copy it to the 4th octet in “C Networks”.

32768 16384 8192 4096 2048 1024 512 256

0126 62 30 14 6 2 032766 16382 8190 4094 2046 1022 510 254

510 1022 2046 4094 8190 16382 - -0 2 6 14 30 62 126 254

You will not need to calculate the last 2 positions in this row because neither are capable of holding any host.

0 2 6 14 30 62 - -- - - - - - - -

In the “C Networks” row under the third octet will be blank because a Class C address will begin to be subnetted in the 4th octet.

Binary

Sub Mask

CIDR

B Networks

C Networks

Host

One last topic to understand with this chart is what to do when IP Subnet Zero is ENABLED. When IP Subnet Zero is ENABLED be sure to add 2 to the number of networks for both rows “B Networks” & “C Networks”

128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255 128 192 224 240 248 252 254 255

/25 /26 /27 /28 /29 /30 /31 /32/17 /18 /19 /20 /21 /22 /23 /24

32768 16384 8192 4096 2048 1024 512 256

0126 62 30 14 6 2 032766 16382 8190 4094 2046 1022 510 254

510 1022 2046 4094 8190 16382 - -0 2 6 14 30 62 126 254

0 2 6 14 30 62 - -- - - - - - - -

0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256Net ID

15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255Broadcast

Another chart I highly recommend creating is “Count by 16”. This will prove very helpful when determining Valid Hosts, Network IDs, and Broadcast Addresses.

Created by counting by 16 starting with 0, from left to right.

Then by taking the next Network ID subtract 1 and this will give you the Broadcast address for the previous network.

Now any IP address between the Network ID and Broadcast ID is a Valid Host.

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

1. How many host will I have per network using a /30 address? IP subnet zero has been configured.

Answer: 2

• Remember a /30 mask allows for 2 hosts per network, commonly used for serial connections. (Point to Point)

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

How many networks are created using a 192.168.0.0 with a subnet mask 255.255.255.224?

Answer: 8

IP Subnet Zero is applied.

You need to subnet 160.200.3.0 to support 30 site locations and as many hosts supported per subnet as possible. What CIDR would you recommend to use? (IP subnet zero is not applied.)

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

Answer: /21

You have been assigned the network of 191.5.5.0. How many hosts do you have using a mask of 255.255.240.0? IP subnet zero is applied.

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

Answer: 4094

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

Your company has a class C network address. The company requires 5 usable subnets. Each subnet mask must accommodate at least 18 hosts. Which subnet mask should you use? (IP subnet zero is not applied)

Answer: 255.255.255.224

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

Which of the following addresses is representative of a unicast address?

E. 172.31.128.255/18B. 255.255.255.255

D. 192.168.24.59/30C. FFFF.FFFF.FFFFA. 224.1.5.2

224.0.0.0 through 239.255.255.255 are Class D Address, designated for multicast.255.255.255.255 is TCP/IP Broadcast Address.This is a MAC Address that is a Broadcast as well.We will need to count by 4s. Shortcut use a multiple of 4 to get you close to target number!

40 44 48 52 56 60Net ID

43 47 51 55 59Broadcast

Net ID 192.0

Broadcast 255.255191.255127.25563.255

128.064.00.0 256.0

We will need to count by 64s in the 3rd octet. Don’t forget the fourth octet, a 0 in Network ID, and a 255 as a Broadcast Address. Example 64.0 minus 1 from both the third and forth octets to calculate the Broadcast is 63.255!!!!!

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

Consider the address 192.168.15.19/28, which of the following addresses are valid host addresses on this subnet? (Select two options.)

We will need to count by 16 to determine Network IDs & Broadcast IDs, to help us determine valid hosts

0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256Net ID

15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255Broadcast

B. 192.168.15.0 C. 192.168.15.29D. 192.168.15.16 E. 192.168.15.31A. 192.168.15.17

Next we will have to determine the network ID and the broadcast address for 192.168.15.19/28.

F. 192.168.15.35

What is the subnet work number of the IP address 159.56.219.56/21?

B. 159.56.219.0 C. 159.56.8.0D. 159.56.52.0 E. 159.56.216.0A. 159.56.0.0

F. 159.56.199.0

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

We will need to count by 8s in the 3rd octet. Don’t forget the fourth octet, a 0 in Network ID, and a 255 as a Broadcast Address. Example 224.0 minus 1 from the 3rd & 4th octets to calculate the Broadcast is 223.255!!! Net ID 224.0

Broadcast 223.255215.255207.255

216.0208.0200.0

159.56.219.56/21

Which of the following are valid host addresses given the IP address 135.205.0.0/19? IP subnet zero is not active. (Choose 3)

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

B. 135.205.40.0 C. 135.205.95.255D. 135.205.96.255 E. 135.205.80.100A. 135.205.20.100

F. 135.205.225.150

Net ID 96.0

Broadcast 127.25595.25563.25531.255

64.032.00.0 128.0 256.0224.0192.0160.0

255.255223.255191.255159.255

We will need to count by 32s in the 3rd octet. Don’t forget the fourth octet, a 0 in Network ID, and a 255 as a Broadcast Address. Example 224.0 minus 1 from the 3rd & 4th octets to calculate the Broadcast is 223.255!!!

IP subnet zero is not active.

Given the following list of available IP addresses you need to find which are valid on the 4 network given the network 159.56.0.0. This address space has already been divided by Brian into 16 equal subnets, because he said it would make it harder to figure out. Choose 3 IP addresses that meet the defined requirements. IP subnet has been applied.

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

B. 159.56.219.45 C. 159.56.8.0D. 159.56.52.0 E. 159.56.216.50A. 159.56.50.255

F. 159.56.63.1

Net ID 48.0

Broadcast 63.25547.25531.25515.255

32.016.00.0 64.0We will need to count by 16s in the 3rd octet. Don’t forget the fourth octet, a 0 in Network ID, and a 255 as a Broadcast Address. Example 16.0 minus 1 from the 3rd & 4th octets to calculate the Broadcast is 15.255!!!

IP subnet has been applied.

You have been assigned the task of configuring a serial interface of a router. You were given the IP addresses listed below, use the eighth IP address on the 12 network. 192.168.5.0/24 is the network used by your organization. They have chosen to subnet that network allowing 14 hosts per subnet. IP subnet zero is not active.

Binary 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1

128 192 224 240 248 252 254 255Sub Mask

CIDR

B Networks

C Networks

128 192 224 240 248 252 254 255

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

126 62 30 14 6 2 0 0

510 1022 2046 4094 8190 16382 - -

0 2 6 14 30 62 - -

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

32766 16382 8190 4094 2046 1022 510 254

0 2 6 14 30 62 126 254

- - - - - - - -

32768 16384 8192 4096 2048 1024 512 256

Host

B. 192.168.5.232 C. 192.168.5.201D. 192.168.5.200 E. 192.168.5.8A. 192.168.5.184

F. 192.168.5.162

0 16 32 48 64 80 96 112 128 144 160 176 192Net ID

15 31 47 63 79 95 111 127 143 159 175 191 223Broadcast

224

We will need to count by 16s in fourth octet. Using the value in the binary row the increment.

IP subnet zero is not active.

192 + 8 = 200

Congratulations

Practice

Watch the octet subnetting occurs

Remember if trying to find Network ID, Broadcast Address, or Valid Host you need to find your increment (the number in binary row)