Addressing The Network - IPv4 and Subnetworking (IP Adressing and Subnetting)
Addressing The Network - IPv4 and Subnetworking (IP Adressing and Subnetting)
– IPv4
© 2008 Peter J. Smith. All rights reserved.
1
Objectives
Explain the structure IP addressing and demonstrate the ability
to convert between 8-bit binary and decimal numbers.
Given an IPv4 address, classify by type and describe how it is
used in the network
Explain how addresses are assigned to networks by ISPs and
within networks by administrators
Determine the network portion of the host address and explain
the role of the subnet mask in dividing networks.
Given IPv4 addressing information and design criteria, calculate
© 2008 Peter J. Smith. All rights reserved.
2
IP addressing – works at
OSI model layer 3
TCP/IP model Internet layer
3
Addressing topics
4
Binary and decimal
00110100
01010101
11001111
5
248 to binary
128 64 32 16 8 4 2 1
1 1 1 1 1 0 0 0
248 120 56 24
-128 -64 -32 -16
© 2008 Peter J. Smith. All rights reserved.
120 56 24 8
6
187 to binary
128 64 32 16 8 4 2 1
1 0 1 1 1 0 1 1
187 59 27 11 3
-128 -32 -16 -8 -2
© 2008 Peter J. Smith. All rights reserved.
59 27 11 3 1
7
89 to binary
128 64 32 16 8 4 2 1
0 1 0 1 1 0 0 1
89 25 9
-64 -16 -8
© 2008 Peter J. Smith. All rights reserved.
25 9 1
8
00110100 to decimal
128 64 32 16 8 4 2 1
0 0 1 1 0 1 0 0
32 16 4
32
+16
52
© 2008 Peter J. Smith. All rights reserved.
+ 4
52
9
01010101 to decimal
128 64 32 16 8 4 2 1
0 1 0 1 0 1 0 1
64 16 4 1
64
+16
85
© 2008 Peter J. Smith. All rights reserved.
+ 4
+ 1
85
10
11001111 to decimal
128 64 32 16 8 4 2 1
1 1 0 0 1 1 1 1
128 64 8 4 2 1
128
+ 64
207
© 2008 Peter J. Smith. All rights reserved.
+ 8
+ 4
+ 2
+ 1
207
11
Binary and decimal
00110100 52
01010101 85
11001111 207
12
IPv4 address
13
Find the network address
14
Logical AND
15
Find the broadcast address
16
3 types of address
17
Classful addressing
A 10. 17. 53. 60
18
Classful addressing
19
Classless addressing
20
Classless addressing /16
21
Classless addressing /24
22
Classless addressing /22
23
Classless addressing /26
172.16.0.0/22 mask 255.255.255.192
Broadcast address 172.16.0.63
172. 16. 0. 0
62 host addresses
24
Classless addressing /28
172.16.0.0/28 mask 255.255.255.240
Broadcast address 172.16.0.15
172. 16. 0. 0
14 host addresses
25
Calculating addresses
26
192.168.1.70/24 – fill in the table
Last octet binary Last octet Full
decimal
Host
Subnet mask
Network
Broadcast
© 2008 Peter J. Smith. All rights reserved.
First host
Last host
27
192.168.1.70/24
Last octet binary Last octet Full
decimal
28
Calculating addresses
29
192.168.1.70/26 fill in the table
Last octet Last octet Full
binary decimal
Host
Subnet mask
Network
Broadcast
© 2008 Peter J. Smith. All rights reserved.
First host
Last host
30
192.168.1.70/26
Last octet Last octet Full
binary decimal
31
Calculating addresses
32
192.168.1.70/28 fill in the table
Last octet Last octet Full
binary decimal
Host
Subnet mask
Network
Broadcast
© 2008 Peter J. Smith. All rights reserved.
First host
Last host
33
192.168.1.70/28
Last octet Last octet Full
binary decimal
34
Unicast, Multicast, Broadcast
35
Private IP addresses
36
Public IP addresses
allowed
37
Special addresses
38
Network address translation
39
Addressing hosts
40
Blocks of addresses
Use Address range Summary
Router 192.168.1.254
Broadcast 192.168.1.255
41
Subnetting 192.168.1.0/24
Last octet binary
Address 192.168.1.0 00000000
42
Subnetting 192.168.1.0/24
Borrow 2 bits from host part, give to network part, /26
Addresses 192.168.1.0 00000000
192.168.1.64 01000000
192.168.1.128 10000000
192.168.1.192 11000000
43
Subnetting 192.168.1.0/24
Borrow 3 bits from host part, give to network part, /27
Addresses 192.168.1.0 00000000
192.168.1.32 00100000
192.168.1.64 01000000
192.168.1.96 01100000
192.168.1.128 10000000
192.168.1.160 10100000
192.168.1.192 11000000
192.168.1.224 11100000
© 2008 Peter J. Smith. All rights reserved.
44
Subnetting 192.168.1.0/24
Borrow 4 bits from host part, give to network part, /28
192.168.1.0 192.168.1.128 00000000 10000000
192.168.1.16 192.168.1.144 00010000 10010000
192.168.1.32 192.168.1.160 00100000 10100000
192.168.1.48 192.168.1.176 00110000 10110000
192.168.1.64 192.168.1.192 01000000 11000000
192.168.1.80 192.168.1.208 01010000 11010000
192.168.1.96 192.168.1.224 01100000 11100000
192.168.1.112 192.168.1.240 01110000 11110000
© 2008 Peter J. Smith. All rights reserved.
And so on…
45
Subnetting 192.168.1.0/24
46
Subnetting 192.168.1.0/24
Bits borrowed 1 2 3 4 5 6
No of networks 2 4 8 16 32 64
No of hosts 126 62 30 14 6 2
© 2008 Peter J. Smith. All rights reserved.
47
Address space
48
© 2008 Peter J. Smith. All rights reserved.
Subnet chart
49
Subnetting
50
Ping and traceroute
51
IPv6
52
© 2008 Peter J. Smith. All rights reserved.
Summary
53
© 2008 Peter J. Smith. All rights reserved.
54