Module 11: IPv4 Addressing
CCNA Routing and Switching:
Introduction to Networks v7.0 (ITN)
This Slides is prepared by:
Eng. Rawan Aljamal
Cisco Certified CCNA Instructor Trainer
1
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Assignment of IP Addresses
2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv4 Address Structure
IPv4 address is a 32-bit (4 bytes) hierarchical address that is usually represented in dot-decimal notation, consisting of four decimal numbers, each ranging from 0 to 255, separated by dots.
3
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Network and Host Portions
4
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
The Subnet Mask
5
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Determining the Network: Logical AND
/24
1 | 1 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
0 | 0 | 0 |
AND Truth Table
6
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
The Prefix Length or CIDR Notation (Classless Inter-Domain Routing)
Subnet Mask | 32-bit Address | Prefix Length |
255.0.0.0 | 11111111.00000000.00000000.00000000 | /8 |
255.255.0.0 | 11111111.11111111.00000000.00000000 | /16 |
255.255.255.0 | 11111111.11111111.11111111.00000000 | /24 |
255.255.255.128 | 11111111.11111111.11111111.10000000 | /25 |
255.255.255.192 | 11111111.11111111.11111111.11000000 | /26 |
255.255.255.224 | 11111111.11111111.11111111.11100000 | /27 |
255.255.255.240 | 11111111.11111111.11111111.11110000 | /28 |
255.255.255.248 | 11111111.11111111.11111111.11111000 | /29 |
255.255.255.252 | 11111111.11111111.11111111.11111100 | /30 |
7
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Network, Host, and Broadcast Addresses
Within each network are three types of IP addresses:
| Network Portion | Host Portion | Host Bits |
Subnet mask 255.255.255.0 or /24 | 255 255 255�11111111 11111111 11111111 | 0�00000000 | |
Network address 192.168.10.0 or /24 | 192 168 10�11000000 10100000 00001010 | 0�00000000 | All 0s |
First address 192.168.10.1 or /24 | 192 168 10�11000000 10100000 00001010 | 1�00000001 | All 0s and a 1 |
Last address 192.168.10.254 or /24 | 192 168 10�11000000 10100000 00001010 | 254�11111110 | All 1s and a 0 |
Broadcast address 192.168.10.255 or /24 | 192 168 10�11000000 10100000 00001010 | 255�11111111 | All 1s |
8
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Legacy Classful Addressing
In Classful Addressing, the subnet mask is determined based on the value in the first octet of the IP address.
Class Name | First Octet Content in Binary | Network Range (first octet) | Network – Host Configuration | Subnet Mask | Number of Hosts per Network |
Class A | 0xxxxxxx | 0 -127 | N . H . H . H | 255.0.0.0 or /8 | 2^24 = 16,777,216 |
Class B | 10xxxxx | 128 -191 | N . N . H . H | 255.255.0.0 or /16 | 2^16 = 65,536 |
Class C | 110xxxxx | 192 -223 | N . N . N . H | 255.255.255.0 or /24 | 2^8 = 256 |
Class D | 1110xxxx | 224-239 | Reserved for Multicasting purposes | ||
Class E | 1111xxxx | 240-255 | Reserved for experimental work | ||
9
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Legacy Classful Addressing
10
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Unicast
11
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Multicast
12
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Broadcast
13
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Public and Private IPv4 Addresses
Network Address and Prefix | RFC 1918 Private Address Range |
10.0.0.0/8 | 10.0.0.0 - 10.255.255.255 |
172.16.0.0/12 | 172.16.0.0 - 172.31.255.255 |
192.168.0.0/16 | 192.168.0.0 - 192.168.255.255 |
14
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Special Use IPv4 Addresses
Loopback addresses
Link-Local addresses
DHCP (Dynamic Host Configuration Protocol) is a protocol that provides quick, automatic, and central management for the distribution of IP addresses within a network.
15
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Network Segmentation (Subnetting)
16
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
16
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
16
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Reasons for Segmenting Networks
Location
Group or Function
Device Type
17
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Broadcast Domains and Network Segmentation
18
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Problems with Large Broadcast Domains
Broadcasts are only propagated within the smaller broadcast domains.
19
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Subnets and Subnet Masks
Subnetting : Dividing the network into small networks or subnets by borrowing bits from the host bits.
20
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv4 Address Conservation
21
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Subnetting Formulas
The possible number of subnets that can be created when borrowing 1, 2, 3, 4, 5, or 6 bits.
22
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Subnetting Formulas
There are two addresses that cannot be assigned to a host, the network address and the broadcast address, so we must subtract 2.
23
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Device Address Assignment
Within a network, there are different types of devices that require addresses:
When developing an IP addressing scheme, it is generally recommended that you have a set pattern of how addresses are allocated to each type of device.
24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv4 Addressing in Packet Tracer
25
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
25
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
25
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Suggested Lab Work
Solve the work sheet, it will help you to understand the Subnetting and VLSM concepts.
Page # | Activity Name |
11.5.5 | Subnet an IPv4 Network |
11.7.5 | Subnetting Scenario |
11.9.3 | VLSM Design and Implementation Practice |
11.10.1 | Design and Implement a VLSM Addressing Scheme |
26
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
27
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential