Module-13-IPv6-Basic-Concepts-and-Addressing
Module-13-IPv6-Basic-Concepts-and-Addressing
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
IPv4 Issues
Need for IPv6
• IPv4 is running out of addresses. IPv6
is the successor to IPv4. IPv6 has a
much larger 128-bit address space.
• The development of IPv6 also included
fixes for IPv4 limitations and other
enhancements.
• With an increasing internet population,
a limited IPv4 address space, issues
with NAT and the IoT, the time has
come to begin the transition to IPv6.
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
IPv4 Issues
IPv4 and IPv6 Coexistence
The IETF has created various protocols and tools to help network administrators
migrate their networks to IPv6. These migration techniques can be divided into three
categories:
• Dual stack -The devices run both IPv4 and IPv6 protocol stacks simultaneously.
• Tunneling – A method of transporting an IPv6 packet over an IPv4 network. The IPv6 packet
is encapsulated inside an IPv4 packet.
• 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.
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
13.2 IPv6 Address
Representation
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
IPv6 Address Representation
IPv6 Addressing Formats
• IPv6 addresses are 128 bits in length and written in hexadecimal.
• IPv6 addresses are not case-sensitive and can be written in either lowercase or
uppercase.
• The preferred format for writing an IPv6 address is x:x:x:x:x:x:x:x, with each “x”
consisting of four hexadecimal values.
• In IPv6, a hextet is the unofficial term used to refer to a segment of 16 bits, or four
hexadecimal values.
• Examples of IPv6 addresses in the preferred format:
2001:0db8:0000:1111:0000:0000:0000:0200
2001:0db8:0000:00a3:abcd:0000:0000:1234
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
IPv6 Address Representation
Rule 1 – Omit Leading Zero
The first rule to help reduce the notation of IPv6 addresses is to omit any leading 0s
(zeros).
Examples:
• 01ab can be represented as 1ab
• 09f0 can be represented as 9f0
• 0a00 can be represented as a00
• 00ab can be represented as ab
Note: This rule only applies to leading 0s, NOT to trailing 0s, otherwise the address
would be ambiguous.
Type Format
Preferred 2001 : 0db8 : 0000 : 1111 : 0000 : 0000 : 0000 : 0200
No leading zeros 2001 : db8 : 0 : 1111 : 0 : 0 : 0 : 200
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
IPv6 Address Representation
Rule 2 – Double Colon
A double colon (::) can replace any single, contiguous string of one or more
16-bit hextets consisting of all zeros.
Example:
• 2001:db8:cafe:1:0:0:0:1 (leading 0s omitted) could be represented as 2001:db8:cafe:1::1
Note: The double colon (::) can only be used once within an address, otherwise there would be
more than one possible resulting address.
Type Format
Preferred 2001 : 0db8 : 0000 : 1111 : 0000 : 0000 : 0000 : 0200
Compressed 2001:db8:0:1111::200
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
13.3 IPv6 Address Types
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
IPv6 Address Types
Unicast, Multicast, Anycast
Note: Unlike IPv4, IPv6 does not have a broadcast address. However, there is an IPv6
all-nodes multicast address that essentially gives the same result.
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
IPv6 Address Types
IPv6 Prefix Length
Prefix length is represented in slash notation and is used to indicate the network portion of
an IPv6 address.
The IPv6 prefix length can range from 0 to 128. The recommended IPv6 prefix length for
LANs and most other types of networks is /64.
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
IPv6 Address Types
Types of IPv6 Unicast Addresses
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
IPv6 Address Types
A Note About the Unique Local Address
The IPv6 unique local addresses (range fc00::/7 to fdff::/7) have some
similarity to RFC 1918 private addresses for IPv4, but there are significant
differences:
• Unique local addresses are used for local addressing within a site or between a
limited number of sites.
• Unique local addresses can be used for devices that will never need to access
another network.
• Unique local addresses are not globally routed or translated to a global IPv6
address.
Note: Many sites use the private nature of RFC 1918 addresses to attempt to
secure or hide their network from potential security risks. This was never the
intended use of ULAs.
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
IPv6 Address Types
IPv6 GUA
IPv6 global unicast addresses (GUAs) are globally unique and routable on the IPv6
internet.
• Currently, only GUAs with the first three bits of 001 or 2000::/3 are being assigned.
• Currently available GUAs begins with a decimal 2 or a 3 (This is only 1/8th of the total
available IPv6 address space).
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
IPv6 Address Types
IPv6 GUA Structure
Global Routing Prefix:
• The global routing prefix is the prefix, or network, portion of the address that is
assigned by the provider, such as an ISP, to a customer or site. The global routing
prefix will vary depending on ISP policies.
Subnet ID:
• The Subnet ID field is the area between the Global Routing Prefix and the
Interface ID. The Subnet ID is used by an organization to identify subnets within
its site.
Interface ID:
• The IPv6 interface ID is equivalent to the host portion of an IPv4 address. It is
strongly recommended that in most cases /64 subnets should be used, which
creates a 64-bit interface ID.
Note: IPv6 allows the all-0s and all-1s host addresses can be assigned to a device. The all-0s address is
reserved as a Subnet-Router anycast address, and should be assigned only to routers.
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
IPv6 Address Types
IPv6 LLA
An IPv6 link-local address (LLA) enables a device to communicate with other IPv6-
enabled devices on the same link and only on that link (subnet).
• Packets with a source or destination LLA cannot be routed.
• If an LLA is not configured manually on an interface, the device will automatically create one.
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
13.4 GUA and LLA Static
Configuration
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
GUA and LLA Static Configuration
Static GUA Configuration on a Router
Most IPv6 configuration and verification commands in the Cisco IOS are similar to their
IPv4 counterparts. In many cases, the only difference is the use of ipv6 in place of ip
within the commands.
• The command to configure an IPv6 GUA on an interface is: ipv6 address ipv6-
address/prefix-length.
• The example shows commands to configure a GUA on the G0/0/0 interface on R1:
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18
GUA and LLA Static Configuration
Static GUA Configuration on a Windows Host
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19
GUA and LLA Static Configuration
Static GUA Configuration of a Link-Local Unicast Address
Configuring the LLA manually lets you create an address that is recognizable and
easier to remember.
• LLAs can be configured manually using the ipv6 address ipv6-link-local-address
link-local command.
• The example shows commands to configure a LLA on the G0/0/0 interface on R1
Note: The same LLA can be configured on each link as long as it is unique on that
link. Common practice is to create a different LLA on each interface of the router to
make it easy to identify the router and the specific interface.
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20
13.5 Subnet an IPv6 Network
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21
Subnet an IPv6 Network
Subnet Using the Subnet ID
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22
Subnet an IPv6 Network
IPv6 Subnetting Example
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23
Subnet an IPv6 Network
IPv6 Subnet Allocation
The example topology requires five subnets, one for each LAN as well as for the serial link
between R1 and R2.
The five IPv6 subnets were allocated, with the subnet ID field 0001 through 0005. Each /64
subnet will provide more addresses than will ever be needed.
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
Subnet an IPv6 Network
Router Configured with IPv6 Subnets
The example shows that each of the router interfaces on R1 has been
configured to be on a different IPv6 subnet.
© 2019, 2021 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25