Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Midterm Lecture 5
IPv4 Variable Length Subnet
Mask (VLSM) and IPv6
Subnetting
Introduction to Networks
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 1
Topic Outline
Introduction
Variable Length Subnet Mask (VLSM)
IPv6 Network Addresses
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 2
IP Addressing
Objectives
In this chapter, student should be able to:
1. Describe the benefits of variable length subnet masking (VLSM)
2. Calculate the necessary subnet mask in order to accommodate the requirements of
a hosts addresses in each network,
3. Explain the need for IPv6 addressing,
4. Describe the representation of an IPv6 address,
5. Describe types of IPv6 network addresses,
6. Explain why routing is necessary for hosts on different networks to communicate.
7. Calculate the necessary subnet mask in order to accommodate the requirements of
a network.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
PART 1
VARIABLE LENGTH SUBNET MASK
(VLSM)
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4
Internet Scaling Problems
Internet has experienced two (2) major scaling
issues as it has struggled to provide continuous and
interrupted growth
2. Subnets (Subnetting)
• Allows to take one larger network and break it into a bunch of
smaller networks by borrowing bits from host or node addresses.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 6
Solutions to Internet Scaling Problems
4. Classless-based IP Addressing
• VLSM (Variable Length Subnet Mask)
• Also known as route aggregation
• Allows routing protocols to advertise many networks
as one address
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7
Classless- vs. Classful-based IP Addressing
Table 1 – Comparison between Classless and Classful –based IP Addressing Scheme
CLASSLESS-BASED IP CLASSFUL-BASED IP
ADDRESSING SCHEME ADDRESSING SCHEME
Network can be in any size Network size is defined by
(no defined class) network classes (A, B, C, D,
E)
Protocol sends subnetting Fixed network portion –
(/prefix-length) information decimal dotted notation
with routes (different subnet
mask)
Classless routing protocols Classful routing protocols
supported by RIP2, EIGRP, supported by RIP & IGRP
OSPF, BGP and IS-IS
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 8
Limitations of Subnetting
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9
Benefits of Variable Length Subnet Masking
Traditional Subnetting Wastes Addresses
Traditional subnetting – same or fixed number of host addresses is
allocated for each subnet
• Subnets that require fewer addresses have unused (wasted) addresses
• Ex. WAN links only need 2 addresses
Variable Length Subnet Mask (VLSM) is a process of subnetting a
subnet in order to provides more efficient use of addresses
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10
Benefits of Variable Length Subnet Masking
Traditional Subnetting Wastes Addresses
VLSM
• Allows a network space to be divided in
unequal parts.
• Subnet mask will vary depending on how many
bits have been borrowed for a particular
subnet.
• Network is first subnetted, and then the
subnets are subnetted again.
• Process repeated as necessary to create
subnets of various sizes.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11
Typical Classful-based Network Design
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12
Typical Classless-based Network Design
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13
Benefits of Variable Length Subnet Masking
Traditional Subnetting Wastes Addresses
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 14
Benefits of Variable Length Subnet Masking
VLSM in Practice
• Using VLSM subnets, the LAN and WAN
segments in example below can be addressed
with minimum waste.
•Each LANs will be assigned a subnet with /27 mask.
•Each WAN link will be assigned a subnet with /30 mask.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15
Benefits of Variable Length Subnet Masking
VLSM Chart
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 16
Structured Design
Planning to Address the Network
Allocation of network addresses should be planned and
documented for the purposes of:
Preventing duplication of addresses
Providing and controlling access
Monitoring security and performance
Addresses for Clients - usually dynamically assigned using
Dynamic Host Configuration Protocol (DHCP)
Sample Network
Addressing Plan
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17
PART 2
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18
Introduction
IPv6
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20
The Internet Assigned Numbers Authority (IANA) divided the available
IPv6 addresses into eight (8) equal segments based on the three (3)
leading bits of the addresses (000, 001, 010, 011, 100, 101, 110, and
111).
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 21
Introduction
IPv6 by Numbers
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 22
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23
IPv4 and IPv6 Coexistence
IPv4 to IPv6 Migration Techniques
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 24
IPv4 and IPv6 Coexistence
IPv4 to IPv6 Migration Techniques
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 25
IPv4 and IPv6 Coexistence
IPv4 to IPv6 Migration Techniques
3. Translation: Network Address Translation 64 (NAT64)
allows IPv6-enabled devices to communicate with
IPv4-enabled devices using a translation technique
similar to NAT for IPv4. An IPv6 packet is translated to
an IPv4 packet, and vice versa.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 26
IPv6 Addressing
Hexadecimal Number System
Hexadecimal is a
base sixteen (16)
system
Base 16 numbering
system uses the
numbers 0 to 9 and
the letters A to F
Four (4) bits (half
byte or nibble) can
be represented with a
single hexadecimal
value
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 27
IPv6 Addressing
IPv6 Address Representation
Link-local IPv6
Address:
fe80::a466:cfd5:4e
8e:f46d
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 28
IPv6 Addressing
IPv6 Address Representation
16-bits (1 HEXTET)
HEX F E 8 0
WEIGHT 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 FE80
BIN 1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 0
DEC 15 14 8 0
16-bits (1 HEXTET)
HEX A 4 6 6
WEIGHT 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 A466
BIN 1 0 1 0 0 1 0 0 0 1 1 0 0 1 1 0
DEC 10 4 6 6
16-bits (1 HEXTET)
HEX C F D 5
WEIGHT 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 CFD5
BIN 1 1 0 0 1 1 1 1 1 1 0 1 0 1 0 1
DEC 12 15 13 5
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 29
IPv6 Addressing
IPv6 Address Representation
128-bits in length and written as a string of hexadecimal
values
In IPv6, 4-bits represents a single hexadecimal digit
IPv6 address = 32 hexadecimal values (32 x 4 = 128-
bits)
2001:0DB8:0000:1111:0000:0000:0000:0200
FE80:0000:0000:0000:0123:4567:89AB:CDEF
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 31
IPv6 Addressing
Rule 2 - Omitting All 0 Segments
A double colon (::) can replace any single,
contiguous string of one or more 16-bit segments
(hextets) consisting of all 0’s
Double colon (::) can only be used once within an
address otherwise the address will be ambiguous
Known as the compressed format
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 32
IPv6 Addressing
Rule 2 - Omitting All 0 Segments
Examples
Ex.1
Ex.2
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 33
Types of IPv6 Addresses
IPv6 Address Types
There are three (3) general types of IPv6 addresses:
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 35
Types of IPv6 Addresses
IPv6 Unicast Addresses
Unicast
• Uniquely identifies an interface on an IPv6-enabled device
• A packet sent to a unicast address is received by the interface
that is assigned that address.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 36
Types of IPv6 Addresses
Types of IPv6 Unicast Addresses
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 37
Types of IPv6 Addresses
IPv6 Unicast Addresses
1. Global Unicast (/3)
• A unicast addresses that are used to uniquely identify a specific
interface on a host and can be used as a public address on the
internet (globally routable)
• Address Range: 2000:0000:0000:0000:0000:0000:0000:0000/3 to
3FFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/3
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 38
Types of IPv6 Addresses
IPv6 Unicast Addresses
3. Loopback Unicast (::1)
• Unicast address used by a host to send a packet to itself and cannot
be assigned to a physical interface
• Ping an IPv6 loopback address to test the configuration of TCP/IP on
the local host
• All-0s except for the last bit, represented as ::1/128 or just ::1
• It operates the same as the IPv4 127.0.0.1 loopback address.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 39
Types of IPv6 Addresses
IPv6 Unicast Addresses
5. Unique Local Unicast (/7)
• A unicast addresses that are roughly the same (similar) as IPv4
private addresses.
• It is used for local addressing within a site or between a limited
number of sites.
• Address Range: FC00:0000:0000:0000:0000:0000:0000:0000/7 to
FDFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/7
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 41
Types of IPv6 Addresses
IPv6 Link-Local Unicast Addresses
Packets with a source or destination link-local address
cannot be routed beyond the link from where the packet
originated
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 42
IPv6 Unicast Addresses
Structure of an IPv6 Global Unicast Address
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 43
IPv6 Unicast Addresses
Structure of an IPv6 Global Unicast Address
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 44
IPv6 Unicast Addresses
Structure of an IPv6 Global Unicast Address
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 45
IPv6 Unicast Addresses
Structure of an IPv6 Global Unicast Address
2. Subnet ID (16-bits)
• These bits or nibble used by an organization to identify subnets
within its site
3. Interface ID (64-bits)
• Equivalent to the host portion of an IPv4 address
• Used because a single host may have multiple interfaces, each
having one or more IPv6 addresses
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 46
IPv6 Unicast Addresses
Global Unicast Prefix Allocations
Options when assigning IPv6 addresses to their customers or Sites
used by local ISPs
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 48
IPv6 Unicast Addresses
Dynamic Link-local Addresses
Dynamically Assigned
Link-local address is dynamically created using the
FE80::/10 prefix and the Interface ID
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 49
IPv6 Multicast Addresses
Assigned IPv6 Multicast Addresses
• Address Range:
FF00:0000:0000:0000:0000:0000:0000:0000/8 to
FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/8
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 50
IPv6 Multicast Addresses
Assigned IPv6 Multicast Addresses
Two (2) common IPv6 assigned multicast groups include:
FF02::1 - All-nodes multicast group
• all IPv6-enabled devices join
• same effect as an IPv4 broadcast address
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 51
IPv6 Multicast Addresses
Assigned IPv6 Multicast Addresses
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 52
IPv6 Multicast Addresses
Solicited Node IPv6 Multicast Addresses
Similar to the all-nodes multicast address, matches only the last 24
bits of the IPv6 global unicast address of a device
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 54
PART 3
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 55
Structured Design
Planning to Address the Network
• Allocation of network addresses should be planned and
documented for the purposes of:
Preventing duplication of addresses
Providing and controlling access
Monitoring security and performance
• Addresses for Clients - usually dynamically assigned using
Dynamic Host Configuration Protocol (DHCP)
Sample
Network
Addressing Plan
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 56
IPv6 Network
Introduction
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 59
Subnetting IPv6 Network
Nibble Boundary Subnetting
In subnetting on the Nibble (4-bits or 1 HEX digit) boundary
will gives these subnetting options.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 60
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 61
Subnetting an IPv6 Network
Subnetting using the Subnet ID
• An IPv6 network space is subnetted to support
hierarchical, logical design of the network
B=
fixed /48 16
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 62
Subnetting an IPv6 Network
IPV6 Subnet Allocation
Reserved
/64 subnets
for future
networks
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 64
Example – Basic IPv6 Subnetting
PROBLEM 1 - Your ISP has given you the IPv6 address
2001:FE12:A231::/48 , then find the following: a) How many /64 subnets
are available with this address? b) What are the first six /64 subnets?
PROBLEM 2 - Your ISP has given you the IPv6 address
2000:ACAD:1234:6600::/56, then determine the following: a) How many
/64 subnets are available with this address? b) What are the first four
/64 subnets? c) What are the last two /64 subnets in this range?
PROBLEM 3 - Your ISP has given you the IPv6 address
3FFF:5801:DEAF:B000::/52, find the following: a) How many /64
subnets are available with this address? b) What are the first four /64
subnets? c) What are the last two /64 subnets in this range?
PROBLEM 4 - Your ISP has given you the IPv6 address
2001:ACAD:5678:ABC0::/60. determine the following: a) How many /64
subnets are available with this address? b) Complete the /64 subnets in
this range.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 65
Subnetting an IPv6 Network
Developing an Address Plan -- IPv6 Subnetting in the
Real World
• There is no one right way for developing an IPv6
addressing plan, but the recommended general
guidelines include the following:
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 66
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 67
Subnetting an IPv6 Network
Developing an Address Plan -- IPv6 Subnetting in the
Real World
STEP 2. Determine how many primary and secondary subnets your
Site will need.
• Create the primary subnets first, then
• Create secondary subnets.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 68
Subnetting an IPv6 Network
Developing an Address Plan -- IPv6 Subnetting in the
Real World
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 69
Subnetting an IPv6 Network
Developing an Address Plan -- IPv6 Subnetting in the Real
World
STEP 3. Based on the number of primary and secondary
subnets needed assign the address ranges.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 70
Examples - Developing an Address Plan in
IPv6
SCENARIO 1 – You are task to develop a network plan for
IPv6 network for the figure below through location and
group approach. The ISP has assigned you
2001:ACAD:1234::/48.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 71
Network Plan of SCENARIO 1
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 72
Examples - Developing an Address Plan in
IPv6
SCENARIO 2 – Using the minimum number of subnets required for the
primary and secondary sites, design two IPv6 address plans that meets
the following requirements. Create one plan for user groups and a
second plan for location. A Medical Building is opening in your
community and needs an IPv6 network plan developed. The ISP has
given the company 2001:5378:8801:C000:/52.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 73