Académique Documents
Professionnel Documents
Culture Documents
32 bits
Dotted
Decimal Network Host
172.18.0.1 172.16.0.1
172.18.0.2 172.16.0.2
HDR SADA DATA
10.13.0.0 192.168.1.0
10.13.0.1 172.17.0.1 172.17.0.2 192.168.1.1
32 bits
Dotted
Decimal Network Host
128
64
32
16
8
4
2
1
8
4
2
1
128
64
32
16
8
4
2
1
8
4
2
1
128
64
32
16
128
64
32
16
32 bits
Dotted
Decimal Network Host
64
32
16
8
4
2
1
128
64
32
16
8
4
2
1
128
64
32
16
8
4
2
1
64
32
16
8
4
2
1
128
128
Example
Decimal 172 16 122 204
Example 10101100 00010000 01111010 11001100
Binary
© 2001, Cisco Systems, Inc. BSCI v1.2—3-5
IP Address Classes
Class A: Network
Network Host
Host Host
Host Host
Host
Class B: Network
Network Network
Network Host
Host Host
Host
Class C: Network
Network Network
Network Network
Network Host
Host
Class D: Multicast
Class E: Research
Bits: 1 8 9 16 17 24 25 32
0NNNNNNN
0NNNNNNN Host
Host Host
Host Host
Host
Class A:
Range (1-126)
Bits: 1 8 9 16 17 24 25 32
10NNNNNN
10NNNNNN Network
Network Host
Host Host
Host
Class B:
Range (128-191)
1 8 9 16 17 24 25 32
Bits:
110NNNNN
110NNNNN Network
Network Network
Network Host
Host
Class C:
Range (192-223)
1 8 9 16 17 24 25 32
Bits:
1110MMMM
1110MMMM Multicast
Multicast Group
Group Multicast
Multicast Group
Group Multicast
Multicast Group
Group
Class D:
Range (224-239)
© 2001, Cisco Systems, Inc. BSCI v1.2—3-7
Host Addresses
172.16.2.2 10.1.1.1
10.6.24.2
E1
172.16.3.10 E0 10.250.8.11
172.16.2.1
172.16.12.12 10.180.30.118
Routing Table
172.16 . 12 . 12 Network Interface
Network Host 172.16.0.0 E0
10.0.0.0 E1
© 2001, Cisco Systems, Inc. BSCI v1.2—3-8
Determining Available Host
Addresses
Network Host
172 16 0 0
N
9
16
15
14
13
12
11
10
8
7
6
5
4
3
2
1
10101100 00010000 00000000 00000000 1
00000000 00000001 2
00000000 00000011 3
...
...
...
11111111 11111101 65534
11111111 11111110 65535
11111111 11111111 65536
- 2
2N-2 = 216-2 = 65534 65534
© 2001, Cisco Systems, Inc. BSCI v1.2—3-9
IP Address Classes Exercise
10.2.1.1
128.63.2.100
201.222.5.64
192.6.141.2
130.113.64.16
256.241.201.10
256.241.201.10 Nonexistent
…...
172.16.0.0
Network 172.16.0.0
© 2001, Cisco Systems, Inc. BSCI v1.2—3-12
Addressing with Subnets
172.16.3.0
172.16.4.0
172.16.1.0 172.16.2.0
Network 172.16.0.0
© 2001, Cisco Systems, Inc. BSCI v1.2—3-13
Subnet Addressing
172.16.2.200 172.16.3.5
172.16.3.1
E1
172.16.2.2 E0 172.16.3.100
172.16.2.1
172.16.2.160 172.16.3.150
172.16.2.200 172.16.3.5
172.16.3.1
E1
172.16.2.2 E0 172.16.3.100
172.16.2.1
172.16.2.160 172.16.3.150
Network Host
IP
Address
172 16 0 0
Network Host
Default
Subnet
Mask
255 255 0 0
11111111 11111111 00000000 00000000
Also written as “/16” where 16 represents the number of 1s
in the mask.
Network Subnet Host
8-bit
Subnet 255 255 255 0
Mask
Also written as “/24” where 24 represents the number of 1s
in the mask.
© 2001, Cisco Systems, Inc. BSCI v1.2—3-16
Decimal Equivalents of Bit Patterns
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 0 = 0
1 0 0 0 0 0 0 0 = 128
1 1 0 0 0 0 0 0 = 192
1 1 1 0 0 0 0 0 = 224
1 1 1 1 0 0 0 0 = 240
1 1 1 1 1 0 0 0 = 248
1 1 1 1 1 1 0 0 = 252
1 1 1 1 1 1 1 0 = 254
1 1 1 1 1 1 1 1 = 255
© 2001, Cisco Systems, Inc. BSCI v1.2—3-17
Subnet Mask without Subnets
Network Host
172.16.2.160
172.16.2.160 10101100 00010000 00000010 10100000
255.255.0.0
255.255.0.0 11111111 11111111 00000000 00000000
Network 172 16 0 0
Number
172.16.2.160
172.16.2.160 10101100 00010000 00000010 10100000
255.255.255.0 11111111
255.255.255.0 11111111 11111111 00000000
128
192
224
240
248
252
254
255
Network
Number 172 16 2 0
172.16.2.160
172.16.2.160 10101100 00010000 00000010 10100000
255.255.255.192 11111111
255.255.255.192 11111111 11111111 11000000
128
192
224
240
248
252
254
255
128
192
224
240
248
252
254
255
Network
Number 172 16 2 128
172.16.2.10 255.255.255.0
10.6.24.20 255.255.240.0
10.30.36.12 255.255.255.0
172.16.3.0
172.16.4.0
172.16.1.0
172.16.3.255 172.16.2.0
(Directed broadcast)
255.255.255.255
(Local network broadcast)
X
172.16.255.255
(All subnets broadcast)
172 16 2 160
255.255.255.192 Mask
Subnet 4
Broadcast
First
Last
172 16 2 160
Subnet
Broadcast
First
Last
172 16 2 160
Subnet
Broadcast
First
Last 7
172 16 2 160
10000000 Subnet 4
Broadcast
First
Last
172 16 2 160
10000000 Subnet 4
10111111 Broadcast
5
First 6
Last
172 16 2 160
10000000 Subnet 4
10111111 Broadcast
5
10000001 First 6
Last
172 16 2 160
10000000 Subnet 4
10111111 Broadcast
5
10000001 First 6
10111110 Last 7
172 16 2 160
172 16 2 160
20
20 subnets
subnets
55 hosts
hosts per
per subnet
subnet
Class
Class C
C address:
address:
192.168.5.0
192.168.5.0
192.168.5.16
Other
subnets
192.168.5.32 192.168.5.48
201.222.10.60 255.255.255.248
15.16.193.6 255.255.248.0
128.16.32.13 255.255.255.252
153.50.6.27 255.255.255.128
Internet
UNIVERSITY
• IP address exhaustion
• Routing table growth
California
California
California
Path to 1212
(Number)
HQ
172.16.0.0/16
172.16.1.0/24
HQ
HQ
172.16.0.0/16
172.16.2.0/24
172.16.14.32/27
A
172.16.1.0/24
172.16.14. 64/27
B
HQ
HQ
172.16.0.0/16
172.16.2.0/24
172.16.14.96/27
C
172.16.14.32/27 172.16.14.132/30
A
172.16.1.0/24
172.16.14. 64/27
172.16.14.136/30
B
HQ
HQ
172.16.0.0/16
172.16.14.96/27
172.16.2.0/24
C 172.16.14.140/30
• Subnet 172.16.14.0/24 is divided into smaller subnets:
– Subnet with one mask at first (/27)
– Then further subnet one of the unused /27 subnets into
multiple /30 subnets
© 2001, Cisco Systems, Inc. BSCI v1.2—3-55
Calculating VLSMs
172.16.32.0/26
172.16.32.64/26
172.16.32.128/26
172.16.32.192/26
26 bit mask
(62 hosts)
172.16.32.0/26
172.16.32.64/26
172.16.32.128/26
172.16.32.192/26
Derived from the
172.16.33.0/26 Subnet
172.16.32.0/26
172.16.33.0/30
172.16.33.4/30 172.16.32.64/26
172.16.33.8/30
172.16.32.128/26
172.16.33.12/30
172.16.32.192/26
Derived from the
172.16.33.0/26 Subnet