Beruflich Dokumente
Kultur Dokumente
BRKCRT-1594
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
1
Key elements in successful execution of the subnetting procedure No math required, start with the Answer Use the answer to execute the subnetting procedure Implementing the classful subnetting procedure using the Reverse Engineering any IP Addressing scheme The magic of application in the real world Extending our IP Subnetting knowledge into Classless schemesVLSM and CIDR Variable Length Subnet Masking Classless Inter-Domain Routing (Address Summarization, Supernetting, IP Address Aggregation)
BRKCRT-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
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-1594_c1
Cisco Confidential
Why are IP Subnetting skills so important in the real world? It is what makes it relevant to you and your situation that makes
it important
BRKCRT-1594_c1
Cisco Confidential
BRKCRT-1594_c1
Cisco Confidential
BRKCRT-1594_c1
Cisco Confidential
BRKCRT-1594_c1
Cisco Confidential
BRKCRT-1594_c1
Cisco Confidential
The first byte may be the most important to you right now
BRKCRT-1594_c1
Cisco Confidential
Correct Classification is the first critical KEY element of mastering IP subnetting (and finding the Answer)
Class A 1-127 B 128-191 C 192-223 D 224-239 E 240-255
1
BRKCRT-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
10
BRKCRT-1594_c1
Cisco Confidential
11
BRKCRT-1594_c1
Cisco Confidential
12
Network Number
Host Number
Where you draw the line will ultimately lead you to the Answer
BRKCRT-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
13
BRKCRT-1594_c1
Cisco Confidential
14
BRKCRT-1594_c1
Cisco Confidential
15
All bits in the address to the left of the line are set to a binary 1
This identifies the 1 Network portion of the address and you are left with 2 Host portion of the address (set to 0s by default) The network portion of the address is MASKED with 1s
BRKCRT-1594_c1
Cisco Confidential
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
2
BRKCRT-1594_c1
Cisco Confidential
17
1 2
BRKCRT-1594_c1
Cisco Confidential
18
1 2
BRKCRT-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
19
BRKCRT-1594_c1
Cisco Confidential
20
BRKCRT-1594_c1
Cisco Confidential
21
BRKCRT-1594_c1
Cisco Confidential
22
23
BRKCRT-1594_c1
Cisco Confidential
24
BRKCRT-1594_c1
Cisco Confidential
25
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-1594_c1
Cisco Confidential
26
BRKCRT-1594_c1
Cisco Confidential
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-1594_c1
Cisco Confidential
28
q
128 =
+q
64
+q =
32 =
+ q
16 =
+ q
8=
+ q
4=
+ q
2=
+q
1
The top row will represent subnet mask values during the subnetting process
BRKCRT-1594_c1
Cisco Confidential
29
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-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
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-1594_c1
Cisco Confidential
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-1594_c1
Cisco Confidential
32
Classification
A, B or C + class boundary (default mask)
33
Classify the address!!! Identify the class A-B-C 2 Draw the initial Line Fill in the default mask information Obtain information about your network How many total subnet are to be included? On a single subnet, what is the maximum number of hosts allowed? Create a custom subnet mask for the entire network Accomplished by moving the Line to the right 2 New Subnet Mask number is left of the Line Position The Line Position provides the Answer 4 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 5 Subnet addresses | Range of host IDs | Broadcast addresses
BRKCRT-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
34
Cisco Confidential
35
Subnetting Example 1
Base Address:
1
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-1594_c1
Cisco Confidential
36
Octet 1
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-1594_c1
Cisco Confidential
37
Octet 1
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-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
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-1594_c1
Cisco Confidential
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-1594_c1
Cisco Confidential
40
Maximum 200 hosts per subnetthere are 254 address available in Octet 4 alone (8 bits) and we have 10 bits to use Always use your host requirement to check your work when following the classful subnetting procedure
BRKCRT-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
41
Classify the address!!! Identify the class A-B-C 2 Draw the initial Line Fill in the default mask information Obtain information about your network How many total subnet are to be included? 57 On a single subnet, what is the maximum number of hosts allowed? 200 Create a custom subnet mask for the entire network Accomplished by moving the Line to the right 2 New Subnet Mask number is left of the Line Position The Line Position provides the Answer 4 Look in the Magic BoxFind the number directly below the chosen mask valueThis is the Magic Number will give you everything you need to complete the process 5
Subnet addresses | Range of host IDs | Broadcast addresses
BRKCRT-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
42
128
192
224
240
248
252
254
255
q 128 255
q 64 127
q 32 63 64
q 16 31
q 8 15
q 4
7
q 2 3
q 1 1 4
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-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
43
Allocating the Subnet, Host, and Broadcast Addresses Using 4 , the Magic Number
Subnet Address
Host IP Range
Broadcast Address
BRKCRT-1594_c1
Cisco Confidential
44
BRKCRT-1594_c1
Cisco Confidential
45
172.16.0.0- 88.0
BRKCRT-1594_c1
Cisco Confidential
46
Octet 1
Octet 2
Octet 3
Octet 4
BRKCRT-1594_c1
Cisco Confidential
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
CIDR Notation in the second octet: CIDR Notation in the third octet: CIDR Notation in the fourth octet:
/9 /17 /25
BRKCRT-1594_c1
Cisco Confidential
48
BRKCRT-1594_c1
Cisco Confidential
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-1594_c1
Cisco Confidential
50
4. Given a network number and a static subnet mask, what are the valid subnet numbers?
BRKCRT-1594_c1
Cisco Confidential
51
BRKCRT-1594_c1
Cisco Confidential
52
BRKCRT-1594_c1
Cisco Confidential
53
BRKCRT-1594_c1
Cisco Confidential
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-1594_c1
Cisco Confidential
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 255
q 64 127
q 32 63
q 16 31
q 8 15
q 4 7
q 2 3
q 1 1
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 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 Two Hosts
Subnet Mask for this Problem Is (Solution) 255.255.255.252 /30 mask
BRKCRT-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
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 255
q 64 127
q 32 63
q 16 31
q 8 15
q 4 7
q 2 3
q 1 1
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-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
59
BRKCRT-1594_c1
Cisco Confidential
60
172.16.0.0- 88.0
BRKCRT-1594_c1
Cisco Confidential
61
172.16.0.0- 88.0
BRKCRT-1594_c1
Cisco Confidential
62
BRKCRT-1594_c1
Cisco Confidential
63
BRKCRT-1594_c1
Cisco Confidential
64
So How Do We Do It?
EASY
128 192 224 240 248 252 254
Octet 4
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-1594_c1
Cisco Confidential
65
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-1594_c1
Cisco Confidential
66
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-1594_c1
Cisco Confidential
67
1 2 3 4
BRKCRT-1594_c1
Cisco Confidential
68
5 6 7 8 9 10 11 12 24
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
BRKCRT-1594_c1
Cisco Confidential
69
BRKCRT-1594_c1
Cisco Confidential
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-1594_c1
Cisco Confidential
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-1594_c1 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
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-1594_c1
Cisco Confidential
73
Octet 1
Octet 2
Octet 3
Octet 4
BRKCRT-1594_c1
Cisco Confidential
74
BRKCRT-1594_c1
Cisco Confidential
75
Connecting Professionals
BRKCRT-1594_c1
Cisco Confidential
76
BRKCRT-1594_c1
Cisco Confidential
77
Recommended Reading
Continue your Networkers at Cisco Live learning experience with further reading from Cisco Press Check the Recommended Reading flyer for suggested books
78
Dont forget to activate your Cisco Live and Networkers Virtual account for access to all session materials, communities, and on-demand and live activities throughout the year. Activate your account at any internet station or visit www.ciscolivevirtual.com.
Cisco Confidential
BRKCRT-1594_c1
79
Visit the Cisco Store in the World of Solutions, where you will be asked to enter this Session ID code
Check the Recommended Reading brochure for suggested products available at the Cisco Store
BRKCRT-1594_c1
Cisco Confidential
80
BRKCRT-1594_c1
Cisco Confidential
81