Académique Documents
Professionnel Documents
Culture Documents
BRKCRT-3335
Glenn Tapley
Learning @ Cisco
July 2011
BRKCRT-3335
Cisco Public
Agenda
Setting the stage
Why the mastery of IP Subnetting skills is so important in the real world What we knowor think we know, can be a factor in our mastery Key elements in successful execution of the subnetting procedure No math required, start with the Answer
Seek to understand the keys and you will be rewarded with a skill that will serve you everyday Be willing to practice on your own if you dont use it, you WILL lose it Fill out your session evaluation
BRKCRT-3335
Cisco Public
BRKCRT-3335
Cisco Public
BRKCRT-3335
Cisco Public
BRKCRT-3335
Cisco Public
BRKCRT-3335
Cisco Public
BRKCRT-3335
Cisco Public
The first byte may be the most important to you right now
BRKCRT-3335
Cisco Public
BRKCRT-3335
Cisco Public
10
BRKCRT-3335
Cisco Public
11
BRKCRT-3335
Cisco Public
12
Where you draw the line will ultimately lead you to the Answer
BRKCRT-3335 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public
13
BRKCRT-3335
Cisco Public
14
BRKCRT-3335
Cisco Public
15
All bits in the address to the left of the line are set to a binary 1
This identifies the Network portion of the address and you are left with portion of the address (set to 0s by default) Host
BRKCRT-3335
Cisco Public
16
The default mask is the number of bits that are reserved by the address classDefault Line position
Using the default mask will accommodate only one network subnet in the relative class
A custom Subnet Mask can be defined by an Administrator to accommodate many network subnets
Hmmm Maybe by moving the Line? You guessed it!
BRKCRT-3335
Cisco Public
17
1 2
BRKCRT-3335
Cisco Public
18
1 2
BRKCRT-3335 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public
19
BRKCRT-3335
Cisco Public
20
BRKCRT-3335
Cisco Public
21
BRKCRT-3335
Cisco Public
22
Class A
Class B Class C
10.0.0.0
172.16.0.0 192.168.0.0
10.255.255.255
172.31.255.255 192.168.255.255
23
BRKCRT-3335
Cisco Public
24
BRKCRT-3335
Cisco Public
25
128
q 128
255
Octet 1
192
q 64
127
224
q 32
63
240
q 16
31
Octet 2
248
q 8
15
252
q 4
7
254
q 2
3
255
q 1
1
Octet 3
Octet 4
BRKCRT-3335
Cisco Public
26
BRKCRT-3335
Cisco Public
27
q
128
q
64
q
32
q
16
q
8
q
4
q
2
q
1
Then create the box around it, leaving room for a top and bottom row
BRKCRT-3335
Cisco Public
28
128 0
192
224
240
248
252
254
255
q
128 =
+q
64
+q =
32 =
+q
+ q + q + q +q 16 = 8= 4= 2= 1 =
The top row will represent subnet mask values during the subnetting process
BRKCRT-3335
Cisco Public
29
128
192
224
240
248
252
254
255
q
128
=
255
64
=
127
32
=
63
16
=
31
=
15
=
7
=
3
=
1
+
0
The numbers in the bottom row are used to determine the number of subnets the IP scheme allows
Always add 1 to this number to account for the zero subnet to get an accurate total of networks
BRKCRT-3335 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public
30
128
192
224
240
248
252
254
255
q 128
255
q 64
127
q 32
63
q 16
31
q 8
15
q 4
7
q 2
3
q 1
1
BRKCRT-3335
Cisco Public
31
128
192
224
240
248
252
254
255
q 128
255
q 64
127
q 32
63
q 16
31
q 8
15
q 4
7
q 2
3
q 1
1
BRKCRT-3335
Cisco Public
32
BRKCRT-3335
Cisco Public
33
Look in the Magic Box Find the number directly below the chosen mask value This is the Magic Number will give you everything you need to complete the process Subnet addresses | Range of host IDs | Broadcast addresses
BRKCRT-3335
Cisco Public
34
Cisco Public
35
Subnetting Example 1
Base Address:
Sample design indicates accommodation of 57 subnets (Including WAN) with no more than 200 hosts per subnet (Including router interfaces)
57 is the key factor here. We need to support at least 57 subnets
BRKCRT-3335
Cisco Public
36
q 128 255
q 64 127
q 32 63
q 16 31
q 8 15
q 4 7
q 2 3
q 1 1
BRKCRT-3335
Cisco Public
37
q 128 255
q 64 127
q 32 63
q 16 31
q 8 15
q 4 7
q 2 3
q 1 1
6
BRKCRT-3335 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public
38
Magic Calculation:
Octet 1 Octet 2
q 128 255
q 64 127
q 32 63
q 16 31
q 8 15
q 4 7
q 2 3
q 1 1
BRKCRT-3335
Cisco Public
39
q 128 255
q 64 127
q 32 63
q 16 31
q 8 15
q 4 7
q 2 3
q 1 1
64
BRKCRT-3335
Cisco Public
40
BRKCRT-3335
Cisco Public
41
Look in the Magic BoxFind the number directly below the chosen mask value This is the Magic Number will give you everything you need to complete the process
Subnet addresses | Range of host IDs | Broadcast addresses
BRKCRT-3335
Cisco Public
42
128
q 128 255
192
q 64 127
224
q 32 64 63
240
q 16 31
248
q 8 15
252
254
q 2 3
255
q 1 1 4
q 4
7
The Answer we have been seeking is 4, defined by the mask or line position, it is the Block Size Increment Value for all subnets, host ranges and broadcast addresses.
It will increment 64 times (64 x 4 = 256) in our example
BRKCRT-3335 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public
43
Allocating the Subnet, Host, and Broadcast Addresses Using 4 , the Magic Number
Subnet Address
Host IP Range
Broadcast Address
BRKCRT-3335
Cisco Public
44
Octet 1
Octet 2
Octet 3
Octet 4
BRKCRT-3335
Cisco Public
45
172.16.0.0- 88.0
172.16.220.0
172.16.140.0- 180.0
172.16.92.0- 136.0
BRKCRT-3335
Cisco Public
46
Octet 1
Octet 2
Octet 3
Octet 4
BRKCRT-3335
Cisco Public
47
Magic Box for CIDR Notation and Other Advanced IP Subnetting Concepts
128
q 128
192
q 64
224
q 32
240
q 16
248
q 8
252
q 4
254
q 2
255
q 1
/9 /17
/10 /18
/11 /19
/12 /20
/13 /21
/14 /22
/15 /23
/16 /24
/25
/26
/27
/28
/29
/30
/31
/32
BRKCRT-3335
Cisco Public
48
BRKCRT-3335
Cisco Public
49
Octet 1
Octet 2
Octet 3
Octet 4
Second octet will not change since the mask is in the third at /21 To reverse engineer, simply start incrementing by 8 until you come to the range the specified host lives in:
0, 8, 16, 24, 32, 40. (done)
BRKCRT-3335
Cisco Public
50
BRKCRT-3335
Cisco Public
51
BRKCRT-3335
Cisco Public
52
BRKCRT-3335
Cisco Public
53
BRKCRT-3335
Cisco Public
54
Understanding VLSM
Instead of creating a single subnet mask to accommodate your total IP subnet number (working from the left)
Identify a subnet mask for each subnet individually (work from the right side)
Move the line as far to the right as you can, while leaving just enough room for the hosts on that subnet Use the bottom row of the Magic Box to complete this task Use the Magic Box separately for each physical subnet
BRKCRT-3335
Cisco Public
55
VLSM Problem 1
128 will be the Mask in the 4th Octet
Octet 4
128
192
224
240
248
252
254
255
q 128
q 64
q 32
q 16
q 8
q 4
q 2
q 1
255
127
63
31
15
56
VLSM Problem 2
252 will be the Mask in the 4th Octet
Octet 4
128
192
224
240
248
252
254
255
q 128
q 64
q 32
q 16
q 8
q 4
q 2
q 1
255
127
63
31
15
Using Network 10.0.0.0 Create a Mask for a Subnet Containing Two Hosts
Subnet Mask for this Problem Is (Solution) 255.255.255.252 /30 mask
BRKCRT-3335 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public
57
VLSM Problem 3
224 will be the Mask in the 4th Octet
Octet 4
128
192
224
240
248
252
254
255
q 128
q 64
q 32
q 16
q 8
q 4
q 2
q 1
255
127
63
31
15
58
VLSM Problem 4
254 will be the Mask in the 3rd Octet
Octet 3
Octet 4
254
255
128
192
224
240
248
252
254
255
q 512 1023
q 256 511
q 128 255
q 64 127
q 32 63
q 16 31
q 8 15
q 4 7
q 2 3
q 1 1
Using Network 10.0.0.0 Create a Mask for a Subnet Containing 300 Hosts
Subnet Mask for this Problem Is (Solution) 255.255.254.0 /23 mask
BRKCRT-3335 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public
59
BRKCRT-3335
Cisco Public
60
172.16.0.0- 88.0
172.16.184.0- 212.0
172.16.220.0 172.16.216.0 172.16.140.0- 180.0
172.16.92.0- 136.0
BRKCRT-3335
Cisco Public
61
172.16.0.0- 88.0
172.16.184.0- 212.0
172.16.220.0 172.16.216.0 172.16.140.0- 180.0
172.16.92.0- 136.0
BRKCRT-3335
Cisco Public
62
BRKCRT-3335
Cisco Public
63
BRKCRT-3335
Cisco Public
64
So How Do We Do It?
EASY
Octet 4
128
192
224
240
248
252
254
255
q 128 255
q 64 127
q 32 63
q 16 31
q 8 15
q 4 7
q 2 3
q 1 1
BRKCRT-3335
Cisco Public
65
128
192
224
240
248
252
254
255
q 128 255
q 64 127
q 32 63
q 16 31
q 8 15
q 4 7
q 2 3
q 1 1
BRKCRT-3335
Cisco Public
66
128
192
224
240
248
252
254
255
q 128 255
q 64 127
q 32 63
q 16 31
q 8 15
q 4 7
q 2 3
q 1 1
BRKCRT-3335
Cisco Public
67
1
2 3 4
Host Range 172.16.140.1 .140.126 172.16.140.129 .140.254 172.16.141.1 .140.126 172.16.141.129 - .141.254
BRKCRT-3335
Cisco Public
68
5 6 7 8 9
Subnet ID 172.16.142.0 172.16.142.64 172.16.142.128 172.16.142.192 172.16.143.0 172.16.143.64 172.16.143.128 172.16.143.192 and so on 172.16.147.192
Host Range 172.16.142.1 .142.62 172.16.142.65 .142.126 172.16.142.129 .142.190 172.16.142.193 .142.254 172.16.143.1 .143.62 172.16.143.65 .143.126 172.16.143.129 .143.190 172.16.143.193 .143.254 12 more subnets are built 172.16.147.193 .147.254
Broadcast Address 172.16.142.63 172.16.142.127 172.16.142.191 172.16.142.255 172.16.143.63 172.16.143.127 172.16.143.191 172.16.143.255 and you end up with 172.16.147.255
10
11 12
24
BRKCRT-3335
Cisco Public
69
BRKCRT-3335
Cisco Public
70
Check out
www.traceroute.org/#USAscroll down to route servers where you can telnet to a live Cisco BGP router and view the complete BGP table
BRKCRT-3335
Cisco Public
71
What Is CIDR?
Global Internet
210.40.8.0/22
CE
Customer Edge Network Requires 4 Class C Addresses 210.40.8.0/24 210.40.9.0/24 210.40.10.0/24 210.40.11.0/24
BRKCRT-3335 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public
72
= = = = = = = =
. . . . . . . .
. . . . . . . .
. . . . . . . .
0 0 0 0 0 0 0 0
Common Bits
There are 21 bits which all of the networks have in common Therefore, the best summary address would be:
BRKCRT-3335
Cisco Public
73
Octet 1
Octet 2
Octet 3
Octet 4
BRKCRT-3335
Cisco Public
74
BRKCRT-3335
Cisco Public
75
Recommended Reading
Continue your Networkers at Cisco Live learning experience with further reading from Cisco Press
Check the Recommended Reading flyer for suggested books
76
BRKCRT-3335
Cisco Public
77
BRKCRT-3335
Cisco Public
78
BRKCRT-3335
Cisco Public
79
Thank you.
BRKCRT-3335
Cisco Public
80