0% found this document useful (0 votes)
38 views8 pages

7.6.1 IPv6 Protocol Review

The document provides an overview of IPv6 addressing and configuration. It discusses the key differences between IPv6 and IPv4 addresses, including that IPv6 addresses are 128 bits long and composed of eight quartets separated by colons. It describes the different types of IPv6 unicast addresses: global unicast for public networks, unique local for private networks, and link-local for local subnet communication. It also outlines the methods for configuring IPv6 addresses on hosts, including static full/partial assignment and stateless autoconfiguration using router advertisements from the Network Discovery Protocol.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views8 pages

7.6.1 IPv6 Protocol Review

The document provides an overview of IPv6 addressing and configuration. It discusses the key differences between IPv6 and IPv4 addresses, including that IPv6 addresses are 128 bits long and composed of eight quartets separated by colons. It describes the different types of IPv6 unicast addresses: global unicast for public networks, unique local for private networks, and link-local for local subnet communication. It also outlines the methods for configuring IPv6 addresses on hosts, including static full/partial assignment and stateless autoconfiguration using router advertisements from the Network Discovery Protocol.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 8

IPv6 Protocol Review 0:00-0:27

In this lesson we're going to spend some time looking at IPv6. In order to
effectively troubleshoot IPv6 issues, you've got to have a really solid understanding
of how IPv6 is supposed to operate when it's functioning normally.

We've talked about IPv6 in great detail in other places in this course, so what we're
going to do here is simply focus on thedifferences between IPv6 and IPv4.

IPv6 Addresses 0:28-1:48


An IPv6 address is a 128-bit number, which is a lot bigger than an IPv4 address,
which is only 32 bits long.

The address is made up of 32 hexadecimal numbers organized into eight quartets,


which you can see here. Each of these quartets is separated by a colon, and, as you
can see, each quartet is represented by a hexadecimal number. Each quartet has
16 bits within it. Therefore, the value of a given quartet can range from 0 up to FFFF.

If you were to look at that in binary, FFFF would be composed ofsixteen 1s, a value
of 0 would be sixteen 0s. Any hexadecimal number in between would be a
combination of 0s and 1s, just like with a standard IPv4 address.

An IPv6 address is actually composed of two different parts, much the same way
that an IPv4 address is composed of two parts. Remember, with an IPv4 address,
we have a network portion of the address and we have a node portion of the
address, and this is defined by the subnet mask that's assigned to the IPv4 address.

It works in a very similar way with IPv6 addresses, but there are some differences.

Prefix 1:49-2:05
With IPv6 addresses, the prefix composes the first 64 bits of the address. The prefix
is equivalent to the network address of an IPv4 address. The prefix includes both
the network as well as the subnet address.

Interface ID 2:06-2:47
The last 64 bits, over here, is called the interface ID and it's equivalent to the node
address in an IPv4 address. In IPv6, the interface ID, is a unique address that's
assigned to a particularnetwork interface on a host.
One of the key things to remember with IPv6, however, is thefact that usually the
prefix will almost always be 64 bits long.That's not the case with IPv4, where the
length of a subnet mask can vary quite a bit. In IPv6 it's almost always 64 bits
long. In essence, remember that the first half of the address is network, the
prefix, while the last half of the address is the interface ID, or the node address.

Global Unicast Addresses 2:48-4:51


With that in mind let's spend some time talking about howunicast addressing works
in IPv6. There's actually three majortypes of unicast IPv6 addresses that you need
to be familiar with. Global unicast, unique local, and link-local.

Let's talk about global unicast addressing first. Global unicast addresses are
very similar to public IPv4 addresses. With IPv6, a given organization will use a
registered, globally unique prefix that all devices in their network will use. This
prefix is uniquethroughout the entire Internet.

Therefore, the global unicast addresses that are assigned to individual interfaces
within the network will be globally unique as well--unique throughout the entire
Internet.

The global routing prefix is assigned to an organization by anISP, and it's usually 48
bits long. Remember earlier, however, we said that the prefix on the IPv6 address is
almost always 64 bits long.

Yet we're saying here that the prefix that you get from the ISP is only 48 bits. That's
OK because what we do is use the remaining 16 bits in the prefix for subnetting,
and this is really beneficialbecause it allows an organization to define a very large
number of subnets within the organization's networks. You can create up to 2
^16 subnets within your organization, and that is a lot of subnets.

When you're designing an IPv6 network, because you have so many subnets to
work with, you shouldn't be stingy with them.When you're designing your IPv6
network, you should create separate IPv6 subnets for network segments that are
separated by routers, for your VLANs, as well as for your point-to-point WAN links.

As you can probably guess, all subnet IDs within the same organization must begin
with the same global routing prefix, but then will be uniquely identified using a
different value in the subnet portion of the prefix.
Unique Local Addresses 4:52-6:44
In addition to global unicast addresses, with IPv6 we also have the concept of
unique local addresses. Unique local addresses are similar to private IPv4
addresses, and they're normally used for networks that do not cross a public
network.

Because unique local addresses are not registered, they cannotbe used on a public
network without address translation. If you were using IPv4 private IP addresses,
you'd have to use networkaddress translation to translate them into registered IP
addresses. The same concept applies to unique local IPv6 addresses.

Unique local addresses use a special prefix. It begins with FC00,and it's seven bits
long. However, currently the eighth bit is always set to 1 to indicate that the address
is local, and not global. Thus any IPv6 addresses that you see that begin with FC or
FD are defined as unique local addresses.

Following the prefix, the next 40 bits are used for the global ID.This is where unique
local addresses are interesting. The global ID is generated randomly. The idea is
that we want to create a high probability of uniqueness on the entire Internet.

The uniqueness is not guaranteed. Remember, these are not global


unicast addresses, but we want to be fairly sure that that address will be unique to
prevent any possible conflicts.

We begin a unique local address with FC00 or FD00. Then we have 40 additional
bits that are randomly generated to create the global ID. Then we have the last 16
bits in the prefix that we can use for subnetting, just as with global unicast
addresses. Of course, the remaining 64 bits are used for the interface ID, justas
with global unicast addressing.

Link-Local Addresses 6:45-8:20


In addition, IPv6 also defines special unicast addresses that are used
to communicate just within a subnet, and these are called link-local addresses. Link-
local addresses are only valid on the current subnet and can only be used for data
that needs to be sent within the current subnet.

A lot of folks get unique local and link-local addresses confusedbecause neither one
of these are used on a public network. The key thing to remember is that a unique
local address is routablewithin your organization. It won't be routable on the
Internet, but it is routable within your organization, a lot like a private IPv4 address.

A link-local address, however, is not routable at all. Link-local addresses are used
for automatic address configuration.They're used for neighbor discovery, and
they're also used for subnets that don't have any routers, so we don't need IP
addresses that are routable.

Link-local addresses begin with FE80, and this prefix is 10 bits long. It includes any
addresses actually beginning with FE8, FE9, FEA, or FEB. If you see an IPv6 address
that begins with any of these hexadecimal numbers, you automatically know
that those are link-local addresses.

Here's a key thing you need to remember: all IPv6 hosts have to have at least one
link-local address defined. Even if you're using global unicast addresses for your
IPv6 host, each IPv6 host will also have at least one link-local address assigned to it.

Static IPv6 Address Assignment 8:21-8:32


Now that we've reviewed some of the major address types that are used in IPv6,
let's now review how IPv6 addresses are actually configured on individual network
hosts. There are several different options available.

Static Full Assignment 8:33-8:54


The first one is static full assignment. This is basically the same as using static
addressing on an IPv4 network. Using this method, we manually assign the entire
128-bit IPv6 address and any other IP configuration information to individual
hosts. If you have a small network, this is possible. If you have a large network, this
is really not an option.

Static Partial Assignment 8:55-9:38


Unlike IPv4, however, there is a second type of static address assignment
here called static partial assignment. Using this method, the prefix is statically
assigned to the host, but the interface ID is automatically generated instead using
the EUI-64 format, which creates the interface ID portion of the addressusing the
MAC address of the host.
The idea here is that, because the MAC address assigned to each host in the world
is supposed to be globally unique, by using that MAC address within the interface
ID, we should end up with a globally unique IPv6 address on the host.

Stateless Autoconfiguration 9:39-9:41


Another option is called stateless autoconfiguration.

Network Discovery Protocol (NDP) 9:42-9:57


Using this method, IPv6 hosts automatically generate their owninterface ID, but
they get the correct subnet prefix as well as the address of the default
gateway router from network routers using the Network Discovery Protocol (NDP).

Router Solicitation (RS) 9:58-10:13


NDP uses two different messages for IPv6 automatic configuration. The first one is
called a Router Solicitation, or an RS message. This message is sent by the client
to request information from network routers.

Router Advertisement (RA) 10:14-11:22


We also have Router Advertisements, or RAs. These messages are sent by the
router in response to an RS message from a client to inform the client of the correct
IPv6 subnet prefix to use, along with the correct default gateway router address.

Router advertisements may also be sent by the router justperiodically without


having an RS message being sent to it first.We'll talk about that more in just a
second.

There's another very important thing you need to remember about NDP, and that is
the fact that it is used by your IPv6 host to discover the IPv6 and MAC addresses of
other interfaces on the network. Essentially, what NDP does is replace ARP, that
we're used to using on IPv4 networks. With IPv6 we don't use ARP anymore. NDP is
used instead.

The key thing to remember about NDP is the fact that it does not provide clients
with DNS server addressing information, nor can it provide any other IP
configuration information. The only thing that it can provide is the prefix and
the default gateway router address. That's it.

DHCPv6 11:23-11:39
Another option for IPv6 addressing is to use DHCP, just like we do with an IPv4
network. In order to do this with IPv6, we needto have an updated version of
DHCP. It's called DHCPv6.DHCPv6 can operate in two different modes that you see
here.

Stateful DHCPv6 11:40-12:09


The first one is called stateful DHCPv6. Stateful DHCPv6 is basically the same as
DHCP on IPv4. The DHCP server provides each client with the necessary IP
addressing information, the default gateway address, and any other IP
configuration information that the client needs, such as the DNS server address. In
addition, the DHCPv6 server will track the status of each DHCP client; that's why it's
called stateful.

Stateless DHCPv6 12:10-12:47


In addition to stateful DHCPv6 addressing, we can also havestateless DHCPv6
addressing. Stateless DHCPv6 does not provide an IP address, nor does it track the
status of each DHCP client. Basically, all this does is hand out DNS server addresses.

Obviously, you can't use stateless DHCPv6 all by itself. Usually what happens is we
implement stateless DHCPv6 in conjunction with some other addressing method,
most commonly stateless autoconfiguration.

IPv6 Address Assignment Process 12:48-16:26


With this in mind, let's talk about the process that an IPv6 host isgoing to use when
it starts up in order to configure its IPv6 address. First of all the host is going
to generate a link-local IPv6 address. It'll use the default link-local prefix, FE80, and
then it will modify that host MAC address in order to automatically generate the
interface ID.

The host then sends a neighbor solicitation message addressedto its own link-local
address that it just generated. The reason it does this is it wants to see if some
other host on the network is already using that address. We don't want to end
up with an address conflict.

If in fact the link-local IP address that it generated is in usesomewhere else on the


network, then that other network host is going to respond back with an NA
message.
If the host that sent the NS message receives an NA message from some other host
on the network, it knows that an address conflict has occurred, and so the IPv6
address assignment process is going to stop right here, and that host is going to
have to be manually configured with an IPv6 address.

Basically, what's happened is you have two hosts on the network that have the
same MAC address, and that's not good. You've got the resolve that before you can
continue.

If, on the other hand, that address is not in use, which should be the case, it doesn't
receive any NA messages from any other hosts, then the process will continue. The
next thing that happens is that the host will wait for an RA message from a router.

It does this so it can learn what the network prefix is. What it's doing is waiting for
the router to get around to sending RAmessages with the appropriate networking
information in it.

If that RA message is not received, then the client's going to take matters into its
own hands and it's going to send a Router Solicitation message (RS) out. That router
solicitation message isgoing to be addressed to all routers on the subnet using a
multicast address.

The router on that subnet should receive that multicast, and it should respond back
with an RA message with the appropriate addressing information. If the client does
not receive an RAmessage from a router, then it will attempt to use stateful DHCPv6
in order to get configuration information.

If, on the other hand, a router does respond with an RA message, then the host will
have some information that it needs in order to configure IPv6 on it. The RA
message should contain how the IPv6 address is to be configured.

There are several different possible combinations. The RA message could tell the
host that it needs to obtain the interfaceID, subnet prefix, default gateway, and any
other IP configuration information from a DHCPv6 server.

If this is the case, then the client will send out a DHCPv6 request message and try to
contact a DHCPv6 server to get an IP address.

On the other hand, the RA message could also say that statelessautoconfiguration
is to be used. In this case, the client's going to get the subnet prefix and default
gateway address from the RAmessage itself. Then it will try to set its interface ID
automatically. It can also then try to get the DNS server's IP address from a DHCPv6
server.

If the host was manually assigned an IPv6 address or a statefulautoconfiguration


has been used to assign an IP address to the host, then the host is going to send
out an NS message on the network to make sure that that IP address that it's using
is notalready in use by somebody else. At this point, the host has an IPv6 address
that it can use and communicate with other hosts on the network.

IPv6 Routing Commands 16:27-16:32


At this point, we need to spend some time talking about IPv6 routing.

ipv6 unicast-routing 16:33-16:43


If we want to enable IPv6 routing on our Cisco routers, then we have to do two
different things. First we have to enable IPv6routing, and this is done using the 'ipv6
unicast-routing' command.

ipv6 address 16:44-16:57


After that we need to enable IPv6 on each interface we want to use and configure
the interface address and prefix. We do this by entering the interface configuration
mode and then using the 'ipv6 address' command.

ipv6 route 16:58-17:14


At this point we can let our routing protocols automatically build our IPv6 routing
table, or we can statically add IPv6 routes to the routing table. If we want to do that,
we use the command shown here: 'ipv6 route' followed by the router address and
the exit interface.

Summary 17:15-17:32
That's it for this lesson. In this lesson we talked about the IPv6 protocol. We talked
about how IPv6 addresses are constructed.We talked about how IPv6 addresses
can be assigned tonetwork hosts, network routers. Then we ended this lesson
bytalking about how IPv6 routing can be enabled on our network routers.

You might also like