Chapter 9 - IPv6 Addressing
Chapter 9 - IPv6 Addressing
Chapter 9 - IPv6 Addressing
IPv6 Addressing
09
Module Objectives
Module Title: IPv6 Addressing
Both IPv4 and IPv6 will coexist in the near future and the transition will
take several years.
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.
Note: Tunneling and translation are for transitioning to native IPv6 and should only be used
where needed. The goal should be native IPv6 communications from source to destination.
9.2 IPv6 Address Representation
IPv6 Addressing Formats
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
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
Compressed 2001:db8:0:1111::200
9.3 IPv6 Address Types
Unicast, Multicast, Anycast
There are three broad categories of IPv6 addresses:
• Unicast – Unicast uniquely identifies an interface on an IPv6-
enabled device.
• Multicast – Multicast is used to send a single IPv6 packet to
multiple destinations.
• Anycast – This is any IPv6 unicast address that can be assigned
to multiple devices. A packet sent to an anycast address is
routed to the nearest device having that address.
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.
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.
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:
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
R1(config)# interface gigabitethernet 0/0/0
R1(config-if)# ipv6 address fe80::1:1 link-local
R1(config-if)# no shutdown
R1(config-if)# exit
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.
9.5 Dynamic Addressing for IPv6 GUAs
RS and RA Messages
Devices obtain GUA addresses dynamically through Internet Control
Message Protocol version 6 (ICMPv6) messages.
• Router Solicitation (RS) messages are sent by host devices to discover
IPv6 routers
• Router Advertisement (RA) messages are sent by routers to inform hosts
on how to obtain an IPv6 GUA and provide useful network information
such as:
• Network prefix and prefix length
• Default gateway address
• DNS addresses and domain name
• The RA can provide three methods for configuring an IPv6 GUA :
• SLAAC
• SLAAC with stateless DHCPv6 server
• Stateful DHCPv6 (no SLAAC)
Method 1: SLAAC
• SLAAC allows a device to configure a GUA without the services of DHCPv6.
• Devices obtain the necessary information to configure a GUA from the
ICMPv6 RA messages of the local router.
• The prefix is provided by the RA and the device uses either the EUI-64 or
random generation method to create an interface ID.
Method 2: SLAAC and Stateless DHCP
An RA can instruct a device to use both SLAAC and stateless DHCPv6.
The RA message suggests devices use the following:
• SLAAC to create its own IPv6 GUA
• The router LLA, which is the RA source IPv6 address, as the default
gateway address
• A stateless DHCPv6 server to obtain other information such as a DNS
server address and a domain name
Method 3: Stateful DHCPv6
An RA can instruct a device to use stateful DHCPv6 only.
Stateful DHCPv6 is similar to DHCP for IPv4. A device can automatically
receive a GUA, prefix length, and the addresses of DNS servers from a
stateful DHCPv6 server.
The RA message suggests devices use the following:
• The router LLA, which is the RA source IPv6 address, for the default
gateway address.
• A stateful DHCPv6 server to obtain a GUA, DNS server address, domain
name and other necessary information.
EUI-64 Process vs. Randomly Generated
The IEEE defined the Extended Unique Identifier (EUI) or modified EUI-64
process which performs the following:
• A 16 bit value of fffe (in hexadecimal) is inserted into the middle of the
48-bit Ethernet MAC address of the client.
• The 7th bit of the client MAC address is reversed from binary 0 to 1.
• Example:
C:\> ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:db8:acad:1:50a5:8a35:a5bb:66e1
Link-local IPv6 Address . . . . . : fe80::50a5:8a35:a5bb:66e1
Default Gateway . . . . . . . . . : fe80::1
C:\>
Note: To ensure the uniqueness of any IPv6 unicast address, the client may use a process
known as Duplicate Address Detection (DAD). This is similar to an ARP request for its own
address. If there is no reply, then the address is unique.
9.6 Dynamic Addressing for IPv6 LLAs
Dynamic LLAs
• All IPv6 interfaces must have an IPv6 LLA.
• Like IPv6 GUAs, LLAs can be configured dynamically.
• The figure shows the LLA is dynamically created using the fe80::/10
prefix and the interface ID using the EUI-64 process, or a randomly
generated 64-bit number.
Dynamic LLAs on Windows
Operating systems, such as Windows, will typically use the same method for
both a SLAAC-created GUA and a dynamically assigned LLA.
EUI-64 Generated Interface ID:
C:\> ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:db8:acad:1:fc99:47ff:fe75:cee0
Link-local IPv6 Address . . . . . : fe80::fc99:47ff:fe75:cee0
Default Gateway . . . . . . . . . : fe80::1
C:\>
Note: Multicast addresses can only be destination addresses and not source addresses.
Well-Known IPv6 Multicast Addresses
• A solicited-node multicast
address is similar to the all-
nodes multicast address.
• A solicited-node multicast
address is mapped to a special
Ethernet multicast address.
• The Ethernet NIC can filter the
frame by examining the
destination MAC address
without sending it to the IPv6
process to see if the device is
the intended target of the
IPv6 packet.
Lab – Identify IPv6 Addresses
In this lab, you complete the following objectives:
• Identify the Different Types of IPv6 Addresses