12 Subnetting

dimerusticΔίκτυα και Επικοινωνίες

23 Οκτ 2013 (πριν από 3 χρόνια και 10 μήνες)

146 εμφανίσεις

Subnetting
NetworkHost
Shariaty
Shariaty
Shariaty
Shariaty
Shariaty
SeyedAli
HajHossein
SeyedArman
HajEbrahim
Seyed
Naser
Subnetting
Shariaty
Seyed
Naser
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
NetworkHost
Shariaty
Shariaty
Shariaty
Shariaty
Shariaty
SeyedAli
HajHossein
SeyedArman
HajEbrahim
Seyed
Naser
Subnetting
Shariaty
Seyed
Naser
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
NetworkHost
ShariatySeyed
ShariatyHaj
ShariatySeyed
ShariatyHaj
Shariaty
Seyed
Ali
Hossein
Arman
Ebrahim
Naser
Subnetting
Shariaty
Seyed
Naser
We Break up a large family into 2 small families.
How?
By extending the network portion.
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Subnetting
Example
Same Network.
11000000
10101000
00110110
11000001
...
11000000
10101000
00110110
10111010
...
Different Networks.
11000000
10101000
00110110
11000001
...
11000000
10101000
00110110
10111010
...
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Subnetting
Q.Yourcompanyhasthe10.0.0.0networkandyouneedfive
subnets.Youwishtohaveasmanyaddressesavailableforhosts
aspossible.
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q.Yourcompanyhasthe10.0.0.0networkandyouneedfive
subnets.Youwishtohaveasmanyaddressesavailableforhosts
aspossible.
Class ? A
NetworkHost
00001010 .00000000 . 00000000 . 00000000
So
NetworkHost
00001010 .00000000 . 00000000 . 00000000
NetworkHost
00001010 .
000
00000 . 00000000 . 00000000
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q.Yourcompanyhasthe10.0.0.0networkandyouneedfive
subnets.Youwishtohaveasmanyaddressesavailableforhosts
aspossible.
NetworkHost
00001010 .
000
00000 . 00000000 . 00000000
New Subnet Mask ?
New Subnet Mask ?
NetworkHost
11111111 .
111
00000 . 00000000 . 00000000
255.224.0.0
OR
Q.Yourcompanyhasthe10.0.0.0networkandyouneedfive
subnets.Youwishtohaveasmanyaddressesavailableforhosts
aspossible.
NetworkHost
00001010 .
000
00001010 .
001
00001010 .
010
00001010 .
011
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
10.0.0.0 /11
10.32.0.0 /11
10.64.0.0 /11
10
.
96
.
0
.
0
/
11
00001010 .
011
00001010 .
100
00001010 .
101
00001010 .
110
00001010 .
111
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
10
.
96
.
0
.
0
/
11
10.128.0.0 /11
10.160.0.0 /11
10.192.0.0 /1110.224.0.0 /11
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q.Yourcompanyhasthe10.0.0.0networkandyouneedfive
subnets.Youwishtohaveasmanyaddressesavailableforhosts
aspossible.
NetworkHost
00001010 .
000
00001010 .
001
00001010 .
010
00001010 .
011
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
10.0.0.0 /11
10.32.0.0 /11
10.64.0.0 /11
10
.
96
.
0
.
0
/
11
Letsanalyzethe3
rd
Subnet…
00001010 .
011
00001010 .
100
00001010 .
101
00001010 .
110
00001010 .
111
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
10
.
96
.
0
.
0
/
11
10.128.0.0 /11
10.160.0.0 /11
10.192.0.0 /1110.224.0.0 /11
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q.Yourcompanyhasthe10.64.0.0/11networkandyouneedto
analyzethisnetwork.
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q.Yourcompanyhasthe10.64.0.0/11networkandyouneedto
analyzethisnetwork.
NetworkHost
00001010 . 01000000 . 00000000 . 00000000
Network ID: 10.64.0.0
Network
Host
Network
Host
00001010 . 01011111 . 11111111. 11111111
Broadcast Address: 10.95.255.255
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q.Yourcompanyhasthe10.64.0.0/11networkandyouneedto
analyzethisnetwork.
NetworkHost
00001010 . 01000000 . 00000000 . 00000001
First IP address: 10.64.0.1
Network
Host
Network
Host
00001010 . 01011111 . 11111111. 11111110
Last IP address: 10.95.255.254
NetworkHost
00001010 . 010xxxxx. xxxxxxxx. xxxxxxxx
Number of Available IP addresses: 2^21-2=2,097,150
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. Given that you have 172.16.0.0network range, Subnet this
network so that 500usable host addresses per subnet exist?
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. Given that you have 172.16.0.0network range, Subnet this
network so that 500usable host addresses per subnet exist?
Class ? B
So and
NetworkHost
10101100 . 00010000 .00000000 . 00000000
NetworkHost
10101100 . 00010000 .
0000000
0 . 00000000
So and
NetworkHost
10101100 . 00010000 .00000000 . 00000000
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. Given that you have 172.16.0.0network range, Subnet this
network so that 500usable host addresses per subnet exist?
New Subnet Mask ?
NetworkHost
10101100 . 00010000 .
0000000
0 . 00000000
Q. Given that you have 172.16.0.0network range, Subnet this
network so that 500usable host addresses per subnet exist?
Q. Given that you have 172.16.0.0network range, Subnet this
network so that 500usable host addresses per subnet exist?
Q.Yourcompanyhasthe172.16.2.0/23networkandyouneed
toanalyzethisnetwork.
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q.Yourcompanyhasthe172.16.2.0/23networkandyouneed
toanalyzethisnetwork.
Network ID: 172.16.1.0
NetworkHost
10101100 . 00010000 . 00000010 . 00000000
Network
Host
Broadcast Address: 172.16.3.255
Network
Host
10101100 . 00010000 . 00000011 . 11111111
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q.Yourcompanyhasthe172.16.2.0/23networkandyouneed
toanalyzethisnetwork.
First IP Address: 172.16.1.1
NetworkHost
10101100 . 00010000 . 00000010 . 00000001
Network
Host
Last IP Address: 172.16.3.254
Network
Host
10101100 . 00010000 . 00000011 . 11111110
Number of Available IP addresses: 2^9-2=510
NetworkHost
10101100 . 00010000 . 0000001x. xxxxxxxx
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Usable Addresses Decimal MaskPrefix
/24
255.255.255.252
1022
/26
6
Exercise
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Usable Addresses Decimal MaskPrefix
254255.255.255.0/24
2255.255.255.252/30
1022255.255.252.0/22
62255.255.255.192/26
6255.255.255.248/29
Exercise
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Exercise
Same Subnet?Mask2nd
IP Address1st
IP Address
255.255.255.192192.168.0.100192.168.0.5
/25192.168.0.100192.168.0.5
255.255.254.0172.16.34.120172.16.35.7
255.255.224.010.6.20.20010.5.20.217
/23192.168.1.0192.168.0.255
255
.
255
.
224
.
0
175
.
25
.
190
.
49
175
.
25
.
197
.
13
255
.
255
.
224
.
0
175
.
25
.
190
.
49
175
.
25
.
197
.
13
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Exercise
Same Subnet?Mask2nd
IP Address1st
IP Address
N255.255.255.192192.168.0.100192.168.0.5
Y/25192.168.0.100192.168.0.5
Y255.255.254.0172.16.34.120172.16.35.7
N255.255.224.010.6.20.20010.5.20.217
Y/23192.168.1.0192.168.0.255
N
255
.
255
.
224
.
0
175
.
25
.
190
.
49
175
.
25
.
197
.
13
N
255
.
255
.
224
.
0
175
.
25
.
190
.
49
175
.
25
.
197
.
13
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Exercise
Usable Hosts Each# of SubnetsMask Giving OutMask Given
/27/24
255.255.255.252/24
64255.255.240.0
126255.255.252.0
256255.0.0.0
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Exercise
Usable Hosts Each# of SubnetsMask Giving OutMask Given
308/27/24
264255.255.255.252/24
6264255.255.255.192255.255.240.0
1268255.255.255.128255.255.252.0
65534256255.255.0.0255.0.0.0
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
CCNA Exam Question
Q.YouhaveasingleClassCIPaddressandapoint-to-point
seriallinkthatyouwanttoimplementVLSMon.Whichsubnet
maskisthemostefficientforthispointtopointlink?
A.255.255.255.0
B.255.255.255.240
C.
255
.
255
.
255
.
252
C.
255
.
255
.
255
.
252
D.255.255.255.248
E.255.255.255.254
F.None of the other alternatives apply
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
CCNA Exam Question
Q.YouhaveasingleClassCIPaddressandapoint-to-point
seriallinkthatyouwanttoimplementVLSMon.Whichsubnet
maskisthemostefficientforthispointtopointlink?
A.255.255.255.0
B.255.255.255.240
C.
255
.
255
.
255
.
252
C.
255
.
255
.
255
.
252
D.255.255.255.248
E.255.255.255.254
F.None of the other alternatives apply
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
VLSM (Variable Length Subnet Mask) / SLSM (Single Length Subnet Mask)
Class Full / Classless
NetworkMask
192.168.100.0/24
10.0.0.0/8
172.16.0.0
/16
NetworkMask
10.10.10.0/24
10.10.11.0/24
10.10.12.0
/24
172.16.0.0
/16
10.10.12.0
/24
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. Given that you have 13.13.13.0/24network range, Subnet
this network so that :
1st
Network : 126 Usable IP Address available
2nd
Network: 62 Usable IP Address available
3rd
Network:14 Usable IP Address available
4th
Network:2 Usable IP Address available
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. Given that you have 13.13.13.0/24network range, Subnet this
network so that 126 usable host addresses per subnet exist?
2^h-2>=126 So h=7 thenn=1
New Subnet Mask:
/
25
or
255
.
255
.
255
.
128
NetworkHost
13.13.13.
0
0000000
New Subnet Mask:
/
25
or
255
.
255
.
255
.
128
NetworkHost
Doted Decimal
13.13.13.
0
0000000
13.13.13.0/25
13.13.13.
1
000000013.13.13.128/25
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. Given that you have 13.13.13.128/25network range, Subnet
this network so that 62 usable host addresses per subnet exist?
2^h-2>=62 So h=6 thenn=1
New Subnet Mask:
/
26
or
255
.
255
.
255
.
192
NetworkHost
13.13.13. 1
0
000000
New Subnet Mask:
/
26
or
255
.
255
.
255
.
192
NetworkHost
Doted Decimal
13.13.13. 1
0
000000
13.13.13.128/26
13.13.13. 1
1
00000013.13.13.192/26
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. Given that you have 13.13.13.192/26network range, Subnet
this network so that 14 usable host addresses per subnet exist?
2^h-2>=14 So h=4 thenn=2
New Subnet Mask:
/
28
or
255
.
255
.
255
.
240
NetworkHost
13.13.13. 11
00
0000
New Subnet Mask:
/
28
or
255
.
255
.
255
.
240
NetworkHost
Doted Decimal
13.13.13. 11
00
0000
13.13.13.192/28
13.13.13. 11
01
000013.13.13.208/28
13.13.13. 11
10
0000
13.13.13.224/28
13.13.13. 11
11
0000
13.13.13.240/28
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. Given that you have 13.13.13.208/28network range, Subnet
this network so that 2 usable host addresses per subnet exist?
2^h-2>=2 So h=2 thenn=2
New Subnet Mask:
/
30
or
255
.
255
.
255
.
252
NetworkHost
13.13.13. 1101
00
00
New Subnet Mask:
/
30
or
255
.
255
.
255
.
252
NetworkHost
Doted Decimal
13.13.13. 1101
00
00
13.13.13.208/30
13.13.13. 1101
01
00
13.13.13.212/30
13.13.13. 1101
10
00
13.13.13.216/30
13.13.13. 1101
11
00
13.13.13.220/30
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. Given that you have 13.13.13.208/28network range, Subnet
this network so that 2 usable host addresses per subnet exist?
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Supernetting
Supernetting
isthemethodforcombingtwoormore
contiguousnetworkaddressspacestosimulateasingle,
larger,addressspace.
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. You have four static routes for the networks below in your
router. You need to efficiently summarize it to one static route.
1st
IP Address: 10.128.0.0 /11
2nd
IP Address: 10.160.0.0 /11
3rd
IP Address: 10.192.0.0 /11
4th
IP Address: 10.224.0.0 /11
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. You have four static routes for the networks below in your
router. You need to efficiently summarize it to one static route.
1st
IP Address: 10.128.0.0 /11
2nd
IP Address: 10.160.0.0 /11
3rd
IP Address: 10.192.0.0 /11
4th
IP Address: 10.224.0.0 /11
Network
Host
Network
Host
00001010
.
1
00
00001010
.
1
01
00001010
.
1
10
00001010
.
1
11
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
00000 . 00000000 . 00000000
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. You have four static routes for the networks below in your
router. You need to efficiently summarize it to one static route.
1st
IP Address: 10.128.0.0 /11
2nd
IP Address: 10.160.0.0 /11
3rd
IP Address: 10.192.0.0 /11
4th
IP Address: 10.224.0.0 /11
Network
Host
Network
Host
00001010 . 1
00001010 . 1
00001010 . 100001010 . 1
0000000 . 00000000 . 00000000
0100000 . 00000000 . 00000000
1000000 . 00000000 . 000000001100000 . 00000000 . 00000000
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir
Q. You have four static routes for the networks below in your
router. You need to efficiently summarize it to one static route.
1st
IP Address: 10.128.0.0 /11
2nd
IP Address: 10.160.0.0 /11
3rd
IP Address: 10.192.0.0 /11
4th
IP Address: 10.224.0.0 /11
NetworkHost
00001010
.
1
0000000
.
00000000
.
00000000
00001010
.
1
0000000
.
00000000
.
00000000
New NetID: 10.128.0.0
NetworkHost
11111111 . 10000000 . 00000000 . 00000000
New Subnet Mask: /9or 255.128.0.0
Instructor: Ali Shariaty
www.alishariaty.ir
www.rayka-co.ir
www.rayka-co.ir