Académique Documents
Professionnel Documents
Culture Documents
Note
This presentation is not in the order of the book or online curriculum.
This presentation also contains information beyond the curriculum.
IPv4 Addresses
IPv4 Addresses
IPv4 Addresses
IPv4 Addresses are 32 bit addresses:
1010100111000111010001011000100
10101001
11000111
01000101
10001001
IPv4 Addresses
An IP address has two parts:
network number
host number
IPv4 Addresses
Answer:
Newer technology - Classless IP Addressing
The subnet mask determines the network portion and the host
portion.
Value of first octet does NOT matter (older classful IP addressing)
Hosts and Classless Inter-Domain Routing (CIDR).
Classless IP Addressing is what is used within the Internet and in
most internal networks.
Older technology - Classful IP Addressing (later)
Value of first octet determines the network portion and the host
portion.
Used with classful routing protocols like RIPv1.
The Cisco IP Routing Table is structured in a classful manner (CIS
82)
7
Types of
Addresses
Network
Addresses have
all 0s in the host
portion.
Subnet Mask: 255.255.255.0
Types of
Addresses
Broadcast
Addresses have
all 1s in the host
portion.
Subnet Mask: 255.255.255.0
Types of
Addresses
Host Addresses
can not have all
0s or all 1s in the
host portion.
Subnet Mask: 255.255.255.0
10
11111111111111110000000000000000
Subnet Mask
Used to define the:
Network portion
Host portion
32 bits
Contiguous set of 1s followed by a contiguous set of 0s
1s: Network portion
0s: Host portion
11
11111111.11111111.00000000.00000000
Dotted decimal:
255
255
12
Network
Addresses
13
Example 1
Network Address:
Subnet Mask:
192.168.1.0
255.255.255.0
192.168.1.0
Network Host
host
11000000.10101000.00000001.00000000
Subnet Mask in binary:
11111111.11111111.11111111.00000000
Prefix Length:
/24
14
Example 2
Network Address:
Subnet Mask:
172.0.0.0
255.0.0.0
172.0.0.0
Network Host
host
10101100.00000000.00000000.00000000
Subnet Mask in binary:
11111111.00000000.00000000.00000000
Prefix Length :
/8
15
Example 3
Network Address:
Subnet Mask:
172.0.0.0
255.255.0.0
172.0.0.0
Network Host
host
10101100.00000000.00000000.00000000
Subnet Mask in binary:
11111111.11111111.00000000.00000000
Prefix Length:
/16
16
17
Subnet Mask:
1st octet
2nd octet
3rd octet
4th octet
255.0.0.0 or /8
Network
Host
Host
Host
255.255.0.0 or /16
Network Network
Host
Host
255.255.255.0 or /24
Host
The more host bits in the subnet mask means the more hosts in the
network.
Subnet masks do not have to end on natural octet boundaries
19
Host
Host
Host
8 bits
8 bits
8 bits
Host
Host
8 bits
8 bits
21
Host
8 bits
22
IP Addresses
23
Broadcast
Addresses
25
26
Bringing it
all together
10101100.00000000.00000000.00000000
11111111.00000000.00000000.00000000
10101100.11111111.11111111.11111111
28
11000000.10101000.00000001.00000000
11111111.11111111.11111111.00000000
11000000.10101000.00000001.11111111
11000000.10101000.00000000.00000000
11111111.11111111.11111111.00000000
11000000.10101000.00000000.11111111
29
00001010.00000001.00000001.00000000
11111111.11111111.11111111.00000000
00001010.00000001.00000001.11111111
Network: 10.2.0.0
Mask: /16
Bst:10.2.255.255
00001010.00000010.00000000.00000000
11111111.11111111.00000000.00000000
00001010.00000010.11111111.11111111
Network 10.0.0.0
Mask: /16
Bcast10.0.255.255
00001010.00000000.00000000.00000000
11111111.11111111.00000000.00000000
00001010.00000000.11111111.11111111
30
Host IP Addresses
192.168.10.100/24
32
Broadcast Address
172.255.255.255
172.16.0.0
255.255.0.0
172.16.0.1 through 172.16.255.254
172.16.255.255
192.168.1.0
255.255.255.0
192.168.1.1 through 192.168.1.254
192.168.1.255
192.168.0.0
255.255.0.0
192.168.255.255
192.168.0.1 through 192.168.255.254
192.168.0.0
255.255.255.0
192.168.0.1 through 192.168.0.254
192.168.0.255
33
Subnet Mask
Broadcast Address
10.1.1.0
/24
10.1.1.1 through 10.1.1.254
10.1.1.255
10.2.0.0
/16
10.2.0.1 through 10.2.255.254
10.2.255.255
10.0.0.0
/16
10.0.0.1 through 10.0.255.254
10.0.255.255
34
10101100.00000000.00000000.00000000
11111111.00000000.00000000.00000000
10101100.00000000.00000000.00000001
10101100.11111111.11111111.11111110
10101100.11111111.11111111.11111111
172.16.0.0 (net)
255.255.0.0 (SM)
172.16.0.1
172.16.255.254
172.16.255.255
(broadcast)
10101100.00010000.00000000.00000000
11111111.11111111.00000000.00000000
10101100.00010000.00000000.00000001
10101100.00010000.11111111.11111110
10101100.00010000.11111111.11111111
35
11000000.10101000.00000001.00000000
11111111.11111111.11111111.00000000
11000000.10101000.00000001.00000001
11000000.10101000.00000001.11111110
11000000.10101000.00000001.11111111
192.168.0.0 (net)
255.255.0.0 (SM)
192.168.0.1
192.168.255.254
192.168.255.255
(broadcast)
11000000.10101000.00000000.00000000
11111111.11111111.00000000.00000000
11000000.10101000.00000000.00000001
11000000.10101000.11111111.11111110
11000000.10101000.11111111.11111111
36
11000000.10101000.00000000.00000000
11111111.11111111.11111111.00000000
11000000.10101000.00000000.00000001
11000000.10101000.00000000.11111110
11000000.10101000.00000000.11111111
37
00001010.00000001.00000001.00000000
11111111.11111111.11111111.00000000
00001010.00000001.00000001.00000001
00001010.00000001.00000001.11111110
00001010.00000001.00000001.11111111
10.2.0.0 (net)
/16
(SM)
10.2.0.1
10.2.255.254
10.2.255.255
(broadcast)
00001010.00000010.00000000.00000000
11111111.11111111.00000000.00000000
00001010.00000010.00000000.00000001
00001010.00000010.11111111.11111110
00001010.00000010.11111111.11111111
38
10.0.0.0 (net)
/16
(SM)
10.0.0.1
10.0.255.254
10.0.255.255
(broadcast)
00001010.00000000.00000000.00000000
11111111.11111111.00000000.00000000
00001010.00000000.00000000.00000001
00001010.00000000.11111111.11111110
00001010.00000000.11111111.11111111
39
Subnet Mask
255.255.240.0
192.168.1.0
255.255.255.224
40
10101100.00000001.00010000.00000000
11111111.11111111.11110000.00000000
41
172.1.16.255
172.1.17.0
172.1.17.1
172.1.31.254
10101100.00000001.00010000.00000001
10101100.00000001.00010000.00000010
10101100.00000001.00010000.00000011
10101100.00000001.00010000.11111111
10101100.00000001.00010001.00000000
10101100.00000001.00010001.00000001
10101100.00000001.00011111.11111110
42
172.1.31.254
10101100.00000001.00010000.00000001
172.1.31.255
(broadcast)
10101100.00000001.00011111.11111111
10101100.00000001.00011111.11111110
11000000.10101000.00000001.00000000
11111111.11111111.11111111.11100000
192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.29
192.168.1.30
11000000.10101000.00000001.00000001
11000000.10101000.00000001.00000010
11000000.10101000.00000001.00000011
192.168.1.31
(broadcast)
11000000.10101000.00000001.00011111
11000000.10101000.00000001.00011101
11000000.10101000.00000001.00011110
44
11000000.10101000.00000001.00000000
11111111.11111111.11111111.11100000
192.168.1.1
192.168.1.30
11000000.10101000.00000001.00000001
192.168.1.31
(broadcast)
11000000.10101000.00000001.00011111
11000000.10101000.00000001.00011110
Chapter 6
IPv4 Addresses Part 1