Implementing Ipv6 in The Enterprise Network: CCNP Route: Implementing Ip Routing
Implementing Ipv6 in The Enterprise Network: CCNP Route: Implementing Ip Routing
Implementing Ipv6 in The Enterprise Network: CCNP Route: Implementing Ip Routing
ROUTE v6 Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 1
Chapter 8 Objectives
Describe IPv6.
Describe the basics of IPv6 addressing.
Describe and configure IPv6 addresses.
Describe and configure IPv6 routing.
Describe and configure IPv6 tunneling.
Describe and configure static and dynamic NAT-PT.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 2
Introducing IPv6
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 3
Introducing IPv6
The ability to scale networks for future demands requires a
limitless supply of IP addresses and improved mobility.
IPv6 combines expanded addressing with a more efficient and
feature-rich header to meet these demands.
While it has many similarities to IPv4, IPv6 satisfies the increasingly
complex requirements of hierarchical addressing that IPv4 does not
support.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 4
The Internet Is Growing
In 2009, only 21% of the world population were connected.
This adoption rate will increase as underdeveloped countries get
connected.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 5
Explosion of New IP-Enabled Devices
More and more IP-enabled devices are connecting.
Devices include cell phones, consumer products (blue ray players,
TVs), etc.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 6
IP Address Depletion
All of this growth is causing the Internet to run out of public
IPv4 address.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 7
IPv4 Issues
In January 2010, only 10% of the public IPv4 addresses
remained unallocated.
It is estimated that this pool will have exhausted by the late 2011.
Source: http://www.potaroo.net/tools/ipv4/
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 8
Other IPv4 Issues
Internet routing table expansion
The Internet routing tables continue to grow which means Internet
core routers require more processing power, memory, and overhead.
Lack of true end-to-end model
IPv4 networks typically use NAT as the solution to address depletion.
However, NAT hides the true source address of traffic, which can
cause other issues.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 9
Features of IPv6
Larger address space
IPv6 addresses are 128 bits, compared to IPv4s 32 bits.
There are enough IPv6 addresses to allocate more than the entire IPv4
Internet address space to everyone on the planet.
Elimination of public-to-private NAT
End-to-end communication traceability is possible.
Elimination of broadcast addresses
IPv6 now includes unicast, multicast, and anycast addresses.
Support for mobility and security
Helps ensure compliance with mobile IP and IPsec standards.
Simplified header for improved router efficiency
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 10
IPv6 Address Types
Address Type Description Topology
One to One
An address destined for a single interface.
Unicast A packet sent to a unicast address is delivered to the
interface identified by that address.
One to Many
An address for a set of interfaces (typically belonging
Multicast to different nodes).
A packet sent to a multicast address will be delivered
to all interfaces identified by that address.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 11
IPv4 Header vs. IPv6 Header
The IPv4 header has 20 octets containing The IPv6 header has 40 octets containing
12 basic header fields. 8 fields.
Three of these fields are identical in nature.
Other fields serve similar functions as in IPv4.
The remaining IPv4 fields no longer exist in IPv6.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 12
Protocol and Next Header Fields
In IPv4 the Protocol field is used to identify the next level
protocol (e.g., TCP, UDP, ICMP, ).
In IPv6, this field is called the "Next Header" field and
serves the same purpose.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 13
Extension Headers
The Next Header field
identifies what follows the
Destination Address field:
Protocols:
TCP (protocol 6)
UDP (protocol 17)
ICMPv6 (protocol 58)
Extension header
(Optional) Extension Header(s)
Extension headers make
Data
the handling of options
more efficient.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 14
Extension Headers
Multiple extension headers (called a chain) may be included
in an IPv6 packet.
The number of extension headers is not fixed, so the total length of the
extension header chain is variable.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 15
Extension Header Chain Order
Process Next-header value
Extension Header
Order (protocol #)
1 Hop-by-hop options header 0
2 Destination options header 60
3 Routing header 43
4 Fragment header 44
Authentication header (AH) and ESP ESP = 50
5
header AH = 51
Upper-layer header:
TCP = 6
6 TCP
UDP = 17
UDP
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 16
MTU Discovery
IPv6 routers no longer perform fragmentation.
A discovery process is used to determine the optimum MTU
to use during a given session.
In this discovery process, the source IPv6 device attempts to send a
packet at the size that is specified by the upper IP layers, for example,
the transport and application layers.
If the device receives an Internet Control Message Protocol
(ICMP) packet too big message, it retransmits the MTU
discover packet with a smaller MTU; this process is
repeated until the device receives a response that the
discover packet arrived intact.
The device then sets the MTU for the session.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 17
New IPv6 Features
Prefix renumbering
IPv6 allows simplified mechanisms for address and prefix
renumbering.
Multiple addresses per interface
An IPv6 interface can have multiple addresses.
Link-local addresses
IPv6 link-local addresses are used as the next hop when IGPs are
exchanging routing updates.
Stateless autoconfiguration:
DHCP is not required because an IPv6 device can automatically
assign itself a unique IPv6 link-local address.
Provider-dependent or provider-independent
addressing
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 18
Is IPv4 Obsolete?
IPv4 is in no danger of disappearing overnight.
It will coexist with IPv6 and then gradually be replaced.
IPv6 provides many transition options including:
Dual stack:
Both IPv4 and IPv6 are configured and run simultaneously on the interface.
IPv6-to-IPv4 (6to4) tunneling and IPv4-compatible tunneling.
NAT protocol translation (NAT-PT) between IPv6 and IPv4.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 19
IPv6 Addressing Overview
IPv6 increases the number of address bits by a factor of 4,
from 32 to 128, providing a very large number of
addressable nodes.
IPv4 = 32 bits
11111111.11111111.11111111.11111111
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 20
IPv6 Address Allocation Process
The following displays how IPv6 global unicast addresses
are allocated by the IANA.
Only a small portion (12.5%) of the IPv6 address space is being
allocated to the Registries in the range of 2001::/16.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 21
IPv6 Address Specifics
The 128-bit IPv6 address is written using hexadecimal
numbers.
Specifically, it consists of 8, 16-bit segments separated with colons
between each set of four hex digits (16 bits).
Referred to as coloned hex format.
Hex digits are not case sensitive.
The format is x:x:x:x:x:x:x:x, where x is a 16-bit hexadecimal
field therefore each x is representing four hexadecimal digits.
An example address is as follows:
2035:0001:2BC5:0000:0000:087C:0000:000A
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 22
Abbreviating IPv6 Addresses
Leading 0s within each set of four hexadecimal digits can
be omitted.
09C0 = 9C0
0000 = 0
A pair of colons (::)
:: can be used, once within an address,
to represent any number (a bunch) of successive 0s.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 23
IPv6 Address Example
2031:0000:130F:0000:0000:09C0:876A:130B
2031:0000:130F:0000:0000:09C0:876A:130B
2031:0:130F:0:0:9C0:876A:130B
2031:0:130F::9C0:876A:130B
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 24
IPv6 Address Example
FF01:0000:0000:0000:0000:0000:0000:1
FF01:0:0:0:0:0:0:1 = FF01::1
E3D7:0000:0000:0000:51F4:00C8:C0A8:6420
= E3D7::51F4:C8:C0A8:6420
3FFE:0501:0008:0000:0260:97FF:FE40:EFAB
= 3FFE:501:8:0:260:97FF:FE40:EFAB
= 3FFE:501:8::260:97FF:FE40:EFAB
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 25
IPv6 Addressing in an Enterprise Network
An IPv6 address consists of two parts:
A subnet prefix representing the network to which the interface is
connected.
Usually 64-bits in length.
An interface ID, sometimes called a local identifier or a token.
Usually 64-bits in length.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 26
Subnet Prefix
IPv6 uses the /prefix-length CIDR notation to denote
how many bits in the IPv6 address represent the subnet.
The syntax is ipv6-address/prefix-length
ipv6-address is the 128-bit IPv6 address
/prefix-length is a decimal value representing how many of the
left most contiguous bits of the address comprise the prefix.
For example:
fec0:0:0:1::1234/64
is really
fec0:0000:0000:0001:0000:0000:0000:1234/64
The first 64-bits (fec0:0000:0000:0001)
fec0:0000:0000:0001 forms the address prefix.
The last 64-bits (0000:0000:0000:1234)
0000:0000:0000:1234 forms the Interface ID.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 27
Subnet Prefix
The prefix length is almost always /64.
However, IPv6 rules allow for either shorter or longer prefixes
Although prefixes shorter than /64 can be assigned to a device (e.g., /
60), it is considered bad practice and has no real application.
Deploying a /64 IPv6 prefix on a device:
Is pre-subscribed by RFC3177 (IAB/IESG Recommendations on IPv6
Address Allocations to Sites)
Allows Stateless Address Auto Configuration (SLAAC) (RFC 2462)
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 28
Interface Identifiers
IPv6 addresses on a link must be unique.
Although they all share the same 64-bit subnet prefix they are made
unique by the interface ID.
Because the prefix length is fixed and well-known (64-bits),
IPv6 hosts can automatically create a unique IPv6 address.
For example, the following Layer 2 protocols can
dynamically create the IPv6 address interface ID:
Ethernet (using the EUI-64 format discussed later)
PPP
HDLC
NBMA, Frame Relay
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 29
Special IPv6 Addresses
IPv6 Address Description
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 30
IPv6 Address Scopes
Address types have well-defined destination scopes:
Link-local address
Global unicast address
Site-local address
Note:
Site-Local Address are deprecated in RFC 3879.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 31
Site-Local Addresses - Deprecated
Site-local addresses allowed devices in the same
organization, or site, to exchange data.
Site-local addresses start with the prefix FEC0::/10.
They are analogous to IPv4's private address classes.
However, using them would also mean that NAT would be required
and addresses would again not be end-to-end.
Site-local addresses are no longer supported (deprecated)
by RFC 3879.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 32
Multiple IP Addresses per Interface
An interface can have multiple IPv6 addresses
simultaneously configured and enabled on it.
However, it must have a link-local address.
Typically, an interface is assigned a link-local and one (or
more) global IPv6 address.
For example, an Ethernet interface can have:
Link-local address (e.g., FE80::21B:D5FF:FE5B:A408)
Global unicast address (e.g., 2001:8:85A3:4289:21B:D5FF:FE5B:A408)
Note:
An interface could also be configured to simultaneously support IPv4
and IPv6 addresses.
This creates a dual-stacked interface which is discussed later.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 33
IPv6 Link-Local Address
Link-local addresses are used for automatic address
configuration, neighbor discovery, router discovery, and by
many routing protocols.
They are dynamically created using a link-local prefix of
FE80::/10 and a 64-bit interface identifier.
Unique only on the link, and it is not routable off the link.
128 bits
/10 /64
FE80 Interface ID
1111 1110 1000 0000 0000 0000 ... 0000 0000 0000
FE80::/10
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 34
IPv6 Link-Local Address
Link-local packets are unique only on the link, and are not
routable off the link.
Packets with a link-local destination must stay on the link where they
have been generated.
Routers that could forward them to other links are not allowed to do so
because there has been no verification of uniqueness outside the
context of the origin link.
128 bits
/10 /64
FE80 Interface ID
1111 1110 1000 0000 0000 0000 ... 0000 0000 0000
FE80::/10
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 35
IPv6 Link-Local Address
When communicating with a link-local address, the outgoing
interface must be specified because every interface is
connected to FE80::/10.
For example, if you ping the neighbors link-local address, you will be
asked to input the interface from which you wish to ping.
128 bits
/10 /64
FE80 Interface ID
1111 1110 1000 0000 0000 0000 ... 0000 0000 0000
FE80::/10
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 36
IPv6 Link-Local Address Example
R1# show ipv6 interface loopback 100
Loopback100 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::222:55FF:FE18:7DE8
No Virtual link-local address(es):
Global unicast address(es):
2001:8:85A3:4290:222:55FF:FE18:7DE8, subnet is 2001:8:85A3:4290::/64 [EUI]
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF18:7DE8
MTU is 1514 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is not supported
ND reachable time is 30000 milliseconds (using 31238)
Hosts use stateless autoconfig for addresses.
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 37
IPv6 Global Unicast Address
A global unicast address is an IPv6 address from the global
public unicast prefix (2001::/16).
The structure enables aggregation of routing prefixes to reduce the
number of routing table entries in the global routing table.
Global unicast addresses are aggregated upward through
organizations and eventually to the ISPs.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 38
IPv6 Global Unicast Address
The global unicast address typically consists of:
A 48-bit global routing prefix
A 16-bit subnet ID
A 64-bit interface ID (typically in EUI-64 bit format discussed later).
Subnet
Global Routing Prefix ID Interface ID
Registry
ISP Prefix
Site Prefix
Subnet Prefix
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 39
IPv6 Global Unicast Address
The current IANA global routing prefix uses the range that
start with binary 0010 (2000::/3).
Addresses with a prefix of 2000::/3 (001) to E000::/3 (111)
are required to have 64-bit interface IDs in the extended universal
identifier (EUI)-64 format.
Subnet
Global Routing Prefix ID Interface ID
Registry
ISP Prefix
Site Prefix
Subnet Prefix
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 40
IPv6 Global Unicast Address
The subnet ID can be used by an organization to create
their own local addressing hierarchy.
This 16-bit field allows up to 65,536 individual subnets.
Subnet
Global Routing Prefix ID Interface ID
Registry
ISP Prefix
Site Prefix
Subnet Prefix
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 41
IPv6 Global Unicast Address Example
R1# show ipv6 interface loopback 100
Loopback100 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::222:55FF:FE18:7DE8
No Virtual link-local address(es):
Global unicast address(es):
2001:8:85A3:4290:222:55FF:FE18:7DE8, subnet is 2001:8:85A3:4290::/64 [EUI]
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF18:7DE8
MTU is 1514 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is not supported
ND reachable time is 30000 milliseconds (using 31238)
Hosts use stateless autoconfig for addresses.
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 42
IPv6 Multicast Address
Multicasting is at the core of many IPv6 functions and it is a
replacement for the broadcast address.
They are defined by the prefix FF00::/8.
An interface may belong to any number of multicast groups.
128 bits
/8 /16
F F 0 0 Group ID
1111 1111 00xx xxxx
FF00::/8
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 43
IPv6 Multicast Address
The second octet of the address contains the prefix and
transient (lifetime) flags, and the scope of the multicast
address.
128 bits
/8 /16
F F 0 0 Group ID
1111 1111 00xx xxxx
Flags:
P = Prefix for unicast-based assignments
Flags Scope T = 0 if permanent, 1 if temporary
0 0 P T xxxx Scope:
1 (0001) = Node
8 bits 2 (0010) = Link
5 (0101) = Site
8 (1000) = Organization
Chapter 8
E (1110) = Global
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 44
IPv6 Multicast Address
The multicast addresses FF00:: to FF0F:: have the T
flag set to 0 and are therefore permanent and reserved.
For example:
A multicast address starting with FF02::/16 is a permanent address.
128 bits
/8 /16
F F 0 0 Group ID
1111 1111 00xx xxxx
Flags:
P = Prefix for unicast-based assignments
Flags Scope T = 0 if permanent, 1 if temporary
0 0 P T xxxx Scope:
1 (0001) = Node
8 bits 2 (0010) = Link
5 (0101) = Site
8 (1000) = Organization
Chapter 8
E (1110) = Global
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 45
Reserved IPv6 Multicast Addresses
Reserved Multicast
Description
Address
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 46
IPv6 Multicast Address Example
R1# show ipv6 interface loopback 100
Loopback100 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::222:55FF:FE18:7DE8
No Virtual link-local address(es):
Global unicast address(es):
2001:8:85A3:4290:222:55FF:FE18:7DE8, subnet is 2001:8:85A3:4290::/64 [EUI]
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF18:7DE8
MTU is 1514 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is not supported
ND reachable time is 30000 milliseconds (using 31238)
Hosts use stateless autoconfig for addresses.
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 47
Solicited-Node Multicast Addresses
The solicited-node multicast address (FF02::1:FF) is used
for:
Neighbor discovery (ND) process
Stateless address autoconfiguration
The Neighbor discovery (ND) process is used to:
Determine the local-link address of the neighbor.
Determine the routers on the link and default route.
Actively keep track of neighbor reachability.
Send network information from routers to hosts
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 48
Neighbor Discovery ICMPv6 Packet Types
Neighbor Discovery uses four ICMPv6 packet types:
Neighbor Solicitation and Neighbor Advertisement messages
Router Solicitation and Router Advertisement messages
ICMPv6 Message Type Description
Sent by a host to determine the link-layer address of a neighbor.
Neighbor 135 Used to verify that a neighbor is still reachable.
Solicitation (NS)
An NS is also used for Duplicate Address Detection (DAD).
A response to a NS message.
Neighbor 136 A node may also send unsolicited NA to announce a link-layer
Advertisement (NA)
address change.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 49
Neighbor Solicitation Example
A B
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 52
Solicited-Node Multicast Address Example
2001:DB8::500:AAAA:BBBB
R2
2001:DB8::500:1234:5678
R1
2001:DB8::501:AAAA:BBBB
R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 53
Solicited-Node Multicast Address Example
2001:DB8::500:AAAA:BBBB
R2
2001:DB8::500:1234:5678
R1
2001:DB8::501:AAAA:BBBB
R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 54
Solicited-Node Multicast Address Example
2001:DB8::500:AAAA:BBBB
R2
2001:DB8::500:1234:5678
R1
2001:DB8::501:AAAA:BBBB
R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 55
Stateless Autoconfiguration
A
R1
Every IPv6 system (other than routers) is able to build its own unicast
global address.
Enables new devices (e.g., cellular phones, wireless devices, home
appliances, and home networks) to easily connect to the Internet.
Stateless autoconfiguration uses the information in RA messages to
configure hosts automatically.
RAs are sent periodically, but a node can send out RS messages when
it boots so that it doesnt have to wait for the next RA.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 56
Stateless Autoconfiguration
A
R1
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 57
Stateless Autoconfiguration
A B
The host now creates a link-local address and solicited-node address using the
RA supplied by the router.
Next it needs to verify that its new IPv6 address is unique on the link using the
Duplicate Address Detection (DAD) process.
DAD is used during the autoconfiguration process to ensure that no other device is
using the autoconfiguration address.
During the DAD phase, Host A sends an NS to query if another node on the link
has the same IPv6 address.
If a node responds to the request, it means that the IPv6 address is already in use, and
Host A needs to be manually configured.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 58
Comparing IPv4 and IPv6 Example
Area 10 Area 0
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 59
Comparing IPv4 and IPv6 Example
Area 10 Area 0
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 60
Comparing IPv4 and IPv6 Example
Area 10 Area 0
R1# config t
R1(config) router ospf 1
R1(config-router)# area 10 range 172.16.12.0 255.255.252.0
R1(config-router)# end
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 61
Comparing IPv4 and IPv6 Example
Area 10 Area 0
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 63
Comparing IPv4 and IPv6 Example
Area 10 Area 0
<output omitted>
OI AC10:C00::/22 [110/64]
via FE80::1, Serial0/0/0
R2#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 64
Configuring and
Verifying IPv6
Unicast
Addresses
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 65
Verifying IPv6
Command Description
show ipv6 neighbors Displays IPv6 neighbor discovery cache information for
[interface-type the specified neighbors.
interface-number | ipv6-
address | ipv6-hostname The optional statistics parameter displays neighbor
| statistics] discovery cache statistics.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 66
Troubleshooting IPv6
Command Description
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 67
Enable IPv6 Routing
Enable the forwarding of IPv6 unicast datagrams.
Router(config)#
ipv6 unicast-routing
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 68
Enable CEF for IPv6
Enable Cisco Express Forwarding (CEF) for IPv6 (CEFv6).
Router(config)#
ipv6 cef
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 69
Configuring IPv6 Unicast Addresses
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 70
Configuring IPv6 Unicast Addresses
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 71
Enable IPv6 on an Interface
Configure an IPv6 address and prefix.
Router(config-if)#
ipv6 address address/prefix-length [link-local | eui-64]
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 72
Assigning a Link-Local Address
.2
R1 R2
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 73
Assigning a Static Link-Local Address
FE80::1 .2
R1 R2
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 74
Assigning a Static Global Unicast Address
FE80::1 .2
R1 R2
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 75
Assigning a Static Global Unicast Address
FE80::1 .2
R1 R2
R1# config t
R1(config)# int fa0/1
R1(config-if)# ipv6 add 2001::/64 eui-64
R1(config-if)# do show ipv6 interface fa0/1
FastEthernet0/1 is administratively down, line protocol is down
IPv6 is enabled, link-local address is FE80::211:92FF:FE54:E2A1 [TEN]
Global unicast address(es):
2001::211:92FF:FE54:E2A1, subnet is 2001::/64 [EUI/TEN]
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF54:E2A1
MTU is 1500 bytes
<output omitted>
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 77
Assigning Multiple IPv6 Addresses
FE80::1
2001:1::1/64 .2
R1 R2
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 78
Assigning Multiple IPv6 Addresses
10.10.10.1/24
FE80::1
2001:1::1/64
2001:2::1/64 .2
R1 R2
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 79
Ethernet EUI-64 Address
EUI-64 IPv6 addresses are addresses where the first 64
bits are the network portion of the address and specified,
and the interface ID (second 64-bits) are the host portion of
the address and automatically generated by the router.
The interface ID on an Ethernet link is based on the 48-bit
MAC address of the interface with an additional 16-bit
0xFFFE inserted in the middle of the MAC address.
This creates an extended unique identifier referred to as the EUI-64
format.
The seventh bit in the high-order byte is set to 1 to indicate the
uniqueness of the interface ID.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 80
EUI-64 to IPv6 Interface Identifier
The EUI-64 standard explains how it inserts a 16-bit
0xFFFE in the middle at the 24th bit of the MAC address to
create a unique 64-bit interface identifier.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 81
Configuring an EUI-64 IPv6 Address
R1(config)# interface loopback 100
R1(config-if)# ipv6 address 2001:8:85a3:4289::/64 eui-64
<output omitted>
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 82
Configuring IPv6 Unicast Addresses
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 83
Enable IP Unnumbered
Enable IPv6 on an interface without an explicit IPv6 address.
Router(config-if)#
ipv6 unnumbered interface-type interface-number
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 84
Assigning IPv6 Unnumbered Interfaces
Lo10: 2001:1::10/64
S0/0/0
R1 R2
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 85
Assigning IPv6 Unnumbered Interfaces
Lo10: 2001:1::10/64
S0/0/0
R1 R2
The output confirms that the Serial 0/0/0 interface uses the IPv6
address from interface loopback 10.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 86
Configuring IPv6 Unicast Addresses
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 87
Enable Stateless Autoconfiguration
Enable the automatic configuration of IPv6 addresses.
Router(config-if)#
ipv6 address autoconfig [default]
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 88
Alter the Neighbor Detection Timeframe
Alter the neighbor detection parameter.
Router(config-if)#
ipv6 nd reachable-time milliseconds
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 89
Statically Add a Neighbor
Add a neighbor router to the neighbor discovery cache.
Router(config)#
ipv6 neighbor ipv6-address interface-type interface-
number hardware-address
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 90
IPv6 Connectivity on FR Multipoint Links
Just as for IPv4, IPv6 addresses must be mapped to DLCIs
in Frame Relay.
This mapping can be:
Dynamic using IPv6 inverse ARP
Static using a frame-relay map interface configuration command.
Differences between IPv4 and IPv6:
In IPv6, a map is usually needed for link-local addresses and global
unicast addresses.
In IPv6, the ipv6 unicast-routing command must be
configured when a routing protocol is used across the Frame Relay
network for the routers to exchange updates.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 91
IPv6 Multipoint FR Example
R1
S0/0/0 2001:12::1/64
2001:12::2/64 2001:12::3/64
Frame Relay
.1
DLCI: 201 DLCI: 301
R2 S0/0/0 S0/0/0 R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 92
IPv6 Multipoint FR Example
R1
S0/0/0 2001:12::1/64
2001:12::2/64 2001:12::3/64
Frame Relay
.1
DLCI: 201 DLCI: 301
R2 S0/0/0 S0/0/0 R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 93
IPv6 Multipoint FR Example
R1
S0/0/0 2001:12::1/64
2001:12::2/64 2001:12::3/64
Frame Relay
.1
DLCI: 201 DLCI: 301
R2 S0/0/0 S0/0/0 R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 94
IPv6 Multipoint FR Example
R1
S0/0/0 2001:12::1/64
2001:12::2/64 2001:12::3/64
Frame Relay
.1
DLCI: 201 DLCI: 301
R2 S0/0/0 S0/0/0 R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 95
IPv6 Multipoint FR Example
R1
S0/0/0 2001:12::1/64
2001:12::2/64 2001:12::3/64
Frame Relay
.1
DLCI: 201 DLCI: 301
R2 S0/0/0 S0/0/0 R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 96
IPv6 Multipoint FR Example
R1
S0/0/0 2001:12::1/64
2001:12::2/64 2001:12::3/64
Frame Relay
.1
DLCI: 201 DLCI: 301
R2 S0/0/0 S0/0/0 R3
2001:12::2/64 2001:12::3/64
Frame Relay
.1
DLCI: 201 DLCI: 301
R2 S0/0/0 S0/0/0 R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 98
Routing IPv6
Traffic
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 99
IPv6 Routing
IPv6 supports the following routing:
Static Routing
RIPng
OSPFv3
IS-IS for IPv6
EIGRP for IPv6
Multiprotocol BGP version 4 (MP-BGPv4)
For each routing option above, the ipv6 unicast-
routing command must be configured.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 100
Configuring Static
Routing
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 101
Static Routing
Configured in the same way as IPv4.
There is an IPv6-specific requirement per RFC 2461.
A router must be able to determine the link-local address of each of its
neighboring routers to ensure that the target address of a redirect
message identifies the neighbor router by its link-local address.
This requirement basically means that using a global unicast address
as a next-hop address with routing is not recommended.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 102
Static Routing
Configure an IPv6 static route.
Router(config)#
ipv6 route ipv6-prefix/prefix-length {ipv6-address |
interface-type interface-number [ipv6-address]}
[administrative-distance] [administrative-multicast-distance
| unicast | multicast] [next-hop-address] [tag tag]
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 103
ipv6 route Command Parameters
Parameter Description
ipv6-prefix/prefix- The IPv6 network that is the destination of the static route, and its prefix
length length.
ipv6-address The IPv6 address of the next hop that can be used to reach the
specified network.
interface-type Specifies interface through which the destination network can be
interface-number reached.
administrative- Administrative distance; the default value is 1, which gives static routes
distance precedence over any other type of route except connected routes.
administrative- The distance used when selecting this route for multicast Reverse Path
multicast-distance Forwarding (RPF).
unicast Specifies a route that must not be used in multicast RPF selection.
multicast Specifies a route that must not be populated in the unicast RIB.
next-hop-address Address of the next hop that can be used to reach the specified network.
tag tag Tag value that can be used as a match value for controlling
redistribution via route maps.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 104
Types of Static Routes
Directly attached IPv6 static route:
Created using only the outgoing interface.
The specified interface must be up and have IPv6 enabled.
For example, to specify that 2001:CC1E::/32 is reachable via the
Serial 0/0/0 interface:
ipv6 route 2001:CC1E::/32 serial 0/0/0
Recursive static route:
Created using only the next-hop address parameter.
The router must refer to its routing table a second time to determine
the interface to use to reach the next-hop address.
For example, to specify that 2001:CC1E::/32 is reachable via the
neighbor with address 2001:12::1:
ipv6 route 2001:CC1E::/32 2001:12::1
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 105
Types of Static Routes
Fully specified static route:
Includes both the outgoing interface and the next hop address.
Used on multiaccess interfaces (Ethernet) with multiple devices.
For example, the command to specify that 2001:CC1E::/32 is
reachable out interface Fa0/0 to the neighbor at 2001:12::1 is:
ipv6 route 2001:CC1E::/32 serial 0/0/0 2001:12::1
Floating static route:
The route is set with the administrative distance value higher than the
administrative distance of any IGP to reach a particular destination.
The static route functions as a backup to IGP discovered routes.
It will only be added to the routing table if the IGP entry is deleted.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 106
Static Route Example
2001:1::1/64 2001:1::2/64
Lo100: 10::10:1/64 Lo102: 13::13:1/64
R1 S0/1/0 R2
S0/1/0
Lo101: 11::11:1/64
In this example topology, assume that R1 is the central site router and
R2 is a branch site router.
A static route to the 13::13:1/64 network must be configured on R1.
As well, a default static route will be configured on R2 to reach all other
networks.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 107
Static Route Example
2001:1::1/64 2001:1::2/64
Lo100: 10::10:1/64 Lo102: 13::13:1/64
R1 S0/1/0 R2
S0/1/0
Lo101: 11::11:1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 108
Static Route Example
2001:1::1/64 2001:1::2/64
Lo100: 10::10:1/64 Lo102: 13::13:1/64
R1 S0/1/0 R2
S0/1/0
Lo101: 11::11:1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 109
Static Route Example
2001:1::1/64 2001:1::2/64
Lo100: 10::10:1/64 Lo102: 13::13:1/64
R1 S0/1/0 R2
S0/1/0
Lo101: 11::11:1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 110
RIPng
Routing Information Protocol next generation (RIPng, RFC
2080) is a distance vector routing protocol for IPv6.
Its based on IPv4 RIP version 2 (RIPv2).
It is similar to RIPv2 because:
The hop limit is still 15.
The administrative distance is still 120.
It still uses split horizon and poison reverse to prevent routing loops.
Unlike RIPv2, RIPng is:
Used to transport IPv6 networks and prefixes.
It uses an IPv6 prefix and a next-hop IPv6 address.
Uses UDP port 520 (instead of UDP port 521).
Uses the multicast group FF02::9 (instead of 224.0.0.9).
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 111
Enable RIPng on an Interface
Enable an IPv6 RIP process on an interface.
Router(config-if)#
ipv6 rip name enable
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 112
Enable RIPng
Configure the IPv6 RIP routing process.
Router(config)#
ipv6 router rip name
R1(config-rtr)#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 113
Disable Split Horizon
Disable the split horizon route loop prevention feature.
Router(config-rtr)#
no split-horizon
R1(config-rtr)# no split-horizon
R1(config-rtr)#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 114
Verifying and Troubleshooting RIPng
Command Description
debug ipv6 rip Displays IPv6 RIPng routing transaction debug messages.
[interface-type The interface-type interface-number option can
interface-number] be used to display interface specific debug messages.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 115
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 116
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 117
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 118
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 119
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 120
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 121
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 122
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
The next step is to enable IPv6 routing and then enable the respective
serial interfaces for RIPng.
The loopback interfaces of R2 and R3 will also have to be configured.
Configuring the interface for RIPng automatically creates the RIPng process.
The serial interface of R1 will also require that the split horizon feature
be disabled.
Otherwise advertisements from R2 would not be propagated to R3, and R3
routes would not be propagated to R2.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 123
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 124
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 125
Configuring RIPng Example
R1
S0/0/0 2001:12::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 126
Configuring
OSPFv3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 127
OSPFv3
The protocol implementation for IPv6 includes these
characteristics:
Based on OSPF version 2 (OSPFv2), with enhancements
Distributes IPv6 prefixes
Runs directly over IPv6
Operates as ships in the night with OSPFv2
This implementation adds these IPv6-specific attributes:
128-bit addresses
Link-local address
Multiple addresses and instances per interface
Authentication (now uses IPsec)
OSPFv3 runs over a link rather than a subnet
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 128
OSPFv3
Open Shortest Path First version 3 (OSPFv3 RFC 5340) is
a link state routing protocol for IPv6.
Its based on OSPFv2.
The following remained the same as OSPFv2:
Packet types (Hello, DBD, LSR, LSU, LSA)
Mechanisms for neighbor discovery and adjacency formation
LSA flooding and aging (but there are now 3 types of scopes)
SPF calculations
DR election procedure
Multi-area support (including NSSA)
Multiple topologies support (NBMA, point-to-multipoint, point-to-point and
broadcast)
Router-ID is still a 32-bit address
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 129
OSPFv2 and OSPFv3 Differences
Unlike OSPFv2, OSPFv3:
OSPFv3 runs over a link and is configured on an interface.
Uses the term link similarly to IPv4 OSPF's subnet or network.
IPv6 link-local addresses are required.
There are now three separate LSA flooding scopes: Link-local scope,
Area scope, and AS scope.
Multiple OSPFv3 instances are supported on one interface.
Multicast addresses have changed.
Security is improved.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 130
OSPFv3 Runs Over a Link
OSPFv3 runs over a link as opposed to IPv4 over an IP
subnet.
IPv6 uses the term link which replaces the terms network and
subnet used in the IPv4 OSPF.
The network statement in the router subcommand mode
of OSPFv2 is replaced by the ipv6 ospf process-id
area area-id interface command.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 131
Link-Local Addresses Are Used
OSPFv3 uses IPv6 link-local addresses to identify the
OSPFv3 adjacency neighbors.
Therefore, when configuring the ipv6 ospf neighbor
command, the IPv6 address used must be the link-local
address of the neighbor.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 132
Multiple OSPFv3 Instance Support
Separate autonomous systems, each running OSPF, use a
common link.
A single link could belong to multiple areas.
OSPFv3 uses a new field, called the Instance ID, to allow
multiple instances per link.
To have two instances talk to each other, they must share the same
instance ID.
By default, the instance ID is set to 0.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 133
Multicast Addresses
FF02::5
Represents all OSPFv3 routers on the link-local scope, equivalent to
224.0.0.5 in OSPFv2.
FF02::6
Represents all designated routers (DRs) on the link-local scope,
equivalent to 224.0.0.6 in OSPFv2.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 134
Removal of Address Semantics
IPv6 addresses are not present in the OSPF packet header
(part of payload information).
Router LSAs and network LSAs do not carry IPv6 addresses.
The router ID, area ID, and link-state ID remain at 32 bits.
The DR and BDR are identified by their router ID and not by their IP
address.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 135
Security
OSPFv3 uses IPv6 IPsec AH and ESP extension headers
instead of the variety of mechanisms defined in OSPFv2.
Authentication is no longer part of OSPF.
It is now the job of IPv6 and IPsec to make sure that the right level of
authentication is in use.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 136
LSA Types for IPv6
Router LSAs contain only 32-bit IDs.
Two OSPFv3 LSAs that are not available in OSPFv2
include:
Link LSAs
Intra-area prefix LSAs
OSPFv3 Type 3 and 9 LSAs carry all IPv6 prefix
information.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 137
OSPFv3 Commands
OSPFv2 and OSPFv3 commands are similar.
In most cases, you simply either prefix or replace ip in the
OSPF command with ipv6.
ipv6 address = ip address
show ipv6 route = show ip route
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 138
Steps to Configuring OSPFv3
1. Complete the OSPF network strategy and planning for
your IPv6 network. (E.g., are multiple areas required?).
2. Enable IPv6 unicast routing using the ipv6 unicast-
routing command.
3. (Optional) Enter OSPFv3 router configuration mode and
configure the router ID.
4. Enable IPv6 on the interface using the ipv6 ospf area
command.
5. (Optional) Configure OSPFv3 interface specific settings,
including area, router priority, and OSPFv3 path cost.
6. (Optional) Configure routing specifics from router
configuration mode, including router priority, route
summarization, stub features, and so on.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 139
Enable OSPFv3
Configure the OSPFv3 routing process parameters.
Router(config)#
ipv6 router ospf process-id
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 140
Define the Router-ID
Define the router ID for OSPFv3.
Router(config-rtr)#
router-id {ip-address}
R1(config-rtr)# router-id ?
A.B.C.D OSPF router-id in IP address format
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 141
Enable OSPFv3 on an Interface
Enable an OSPFv3 instance on an interface.
Router(config-if)#
ipv6 ospf process-id area area-id [instance instance-id]
Parameter Description
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 142
Enable OSPFv3 on an Interface
R1(config)# int fa0/0
R1(config-if)# ipv6 ospf ?
<1-65535> Process ID
authentication Enable authentication
cost Interface cost
database-filter Filter OSPF LSA during synchronization and flooding
dead-interval Interval after which a neighbor is declared dead
demand-circuit OSPF demand circuit
flood-reduction OSPF Flood Reduction
hello-interval Time between HELLO packets
mtu-ignore Ignores the MTU in DBD packets
neighbor OSPF neighbor
network Network type
priority Router priority
retransmit-interval Time between retransmitting lost link state
advertisements
transmit-delay Link state transmit delay
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 143
Change the Interface Cost
Specify the cost of sending a packet on an interface.
Router(config-if)#
ipv6 ospf cost interface-cost
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 144
Change the Router Priority
Change the OSPF priority used in DR elections.
Router(config-if)#
ipv6 ospf priority number-value
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 145
Configure a Stub or Totally-Stub Area
Define an area as a stub or totally-stub area.
Router(config-rtr)#
area area-id stub [no-summary]
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 146
Summarize IPv6 Routes
Summarizes routes at an area boundary.
Router(config-rtr)#
area area-id range ipv6-prefix /prefix-length
[advertise | not-advertise] [cost cost]
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 147
ABR Route Summarization Example
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 148
Clear the OSPFv3 Process
Trigger a new SPF recalculation and repopulation of the RIB.
Router#
clear ipv6 ospf [process-id] {process | force-spf |
redistribution | counters [neighbor [neighbor-
interface | neighbor-id]]}
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 149
Verifying OSPFv3
Command Description
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 150
OSPFv3 Example 1
Area 0 Area 1
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 153
OSPFv3 Example 2
Area 13 Area 0 Area 24
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 154
OSPFv3 Example 2
Area 13 Area 0 Area 24
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 155
OSPFv3 Example 2
Area 13 Area 0 Area 24
<output omitted>
OI 12:12::/64 [110/65]
via FE80::219:55FF:FE92:B212, FastEthernet0/0
OI 2001:1::/64 [110/65]
via FE80::219:55FF:FE92:B212, FastEthernet0/0
R4#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 156
OSPFv3 Example 2
Area 13 Area 0 Area 24
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 157
OSPFv3 Example 2
Area 13 Area 0 Area 24
<output omitted>
OI 12:12::/64 [110/65]
via FE80::219:56FF:FE2C:9F60, FastEthernet0/0
OI 24:24::/64 [110/66]
via FE80::219:56FF:FE2C:9F60, FastEthernet0/0
OI 2001:1::/64 [110/129]
via FE80::219:56FF:FE2C:9F60, FastEthernet0/0
R3#
R3# ping 24:24::4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 24:24::4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 ms
R3#
The routing table of R3 reveals the Area 24 route and a ping verifies
connectivity.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 158
OSPFv3 Totally Stubby Example 2
Area 13 Area 0 Area 24
The reduce the size of the routing table in Area 13, R1 and R3 create a totally-stub area.
Notice that the no-summary keyword is only required on the ABR (R1).
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 159
OSPFv3 Totally Stubby Example 2
Area 13 Area 0 Area 24
<output omitted>
OI ::/0 [110/2]
via FE80::219:56FF:FE2C:9F60, FastEthernet0/0
R3#
R3# ping 24:24::4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 24:24::4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/14/16 ms
R3#
Notice that the routing has been reduced to only 1 default route and
connectivity has been verified.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 160
Configuring
EIGRP for IPv6
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 161
EIGRP for IPv6
EIGRP for IPv6 is a distance-vector routing protocol.
The configuration and operation is similar to EIGRP for IPv4.
The following remained the same as EIGRP for IPv4:
Uses the same protocol number (88)
Maintains a topology table and uses queries if no feasible successors are
available.
Uses DUAL to calculate the successor routes
Unlike EIGRP for IPv4, EIGRP for IPv6:
Is used to route IPv6 prefixes.
Requires that a 32-bit router ID be assigned.
It is configured on an interface.
Link-local addressing is used for establishing neighbor adjacencies.
It starts in shutdown state
It does not automatically summarize.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 162
Steps to Configuring EIGRP for IPv6
1. Complete the EIGRP network strategy and planning for your IPv6
network.
2. Enable IPv6 unicast routing using the ipv6 unicast-routing
command.
3. (Optional) Enter EIGRP router configuration mode and configure the
router ID.
4. Enable EIGRP for IPv6 on the interface using the ipv6 eigrp
command.
5. (Optional) Configure EIGRP for IPv6 interface specific settings.
6. (Optional) Configure routing specifics from router configuration mode.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 163
Enable EIGRP for IPv6
Configure the EIGRP for IPv6 routing process parameters.
Router(config)#
ipv6 router eigrp as-number
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 164
Define the Router-ID
Define the router ID of EIGRP for IPv6.
Router(config-rtr)#
eigrp router-id {ip-address}
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 165
Enabling EIGRP for IPv6
Enable the EIGRP for IPv6 process.
Router(config-rtr)#
no shutdown
Note:
The command is not in the EIGRP for IPv6 documentation, but testing
confirmed that it is required on the routers.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 166
Enable EIGRP for IPv6 on an Interface
Enable EIGRP for IPv6 on an interface.
Router(config-if)#
ipv6 eigrp as-number
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 167
Configure a Stub Router
Identify the router as a stub router.
Router(config-rtr)#
eigrp stub [receive-only | connected | static | summary
| redistributed]
Note:
Effective with Cisco IOS Release 15.0(1)M and 12.2(33)SRE, the
eigrp stub command replaced the stub command.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 168
Summarize IPv6 Routes
Configures a summary aggregate address for an interface.
Router(config-if)#
ipv6 summary-address eigrp as-number ipv6-address
[admin-distance]
Parameter Description
as-number Specifies the EIGRP AS number for which routes are to be summarized.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 169
EIGRP for IPv6 Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 170
EIGRP for IPv6 Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
Next R3 is configured.
Notice that unlike OSPF which automatically recognized and formed
adjacencies, EIGRP does not appear to do the same as no messages
are informing us of EIGRP neighbors.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 171
EIGRP for IPv6 Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
Verification of the neighbor reveals that the IPv6 EIGRP process 100 is shutdown.
Both R3 and R1 are configured with the no shutdown command and still no
messages informing us of EIGRP neighbors are generated.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 172
EIGRP for IPv6 Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
The reason is because router IDs must be configured for IPv6 EIGRP
neighbor relationship to be created.
R3 and R1 are next configured with respective router IDs and the
EIGRP neighbor message appears immediately.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 173
EIGRP for IPv6 Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
<output omitted>
D 3:1::/64 [90/2297856]
via FE80::3, Serial0/0/0.3
D 3:2::/64 [90/2297856]
via FE80::3, Serial0/0/0.3
D 3:3::/64 [90/2297856]
via FE80::3, Serial0/0/0.3
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 174
EIGRP for IPv6 Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
Now R2 is configured.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 175
EIGRP for IPv6 Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
Now R4 is configured.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 176
EIGRP for IPv6 Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
<output omitted>
D 3:1::/64 [90/3321856]
via FE80::2, Serial0/0/0.2
D 3:2::/64 [90/3321856]
via FE80::2, Serial0/0/0.2
D 3:3::/64 [90/3321856]
via FE80::2, Serial0/0/0.2
D 12::/64 [90/2681856]
via FE80::2, Serial0/0/0.2
D 13::/64 [90/3193856]
via FE80::2, Serial0/0/0.2
R4#
R4# ping 3:1::3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3:1::3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/88/88 ms
R4#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 177
EIGRP for IPv6 Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 178
EIGRP for IPv6 Stub Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
R4(config-rtr)#
IPv6-EIGRP(0:100): Processing incoming QUERY packet
IPv6-EIGRP(0:100): Int 3:1::/64 M 4294967295 0 4294967295 SM 4294967295 - 0
4294967295
IPv6-EIGRP(0:100): 3:1::/64 deleted FE80::2(FE80::2)/Serial0/0/0.2
IPv6-EIGRP(0:100): 3:1::/64 (90/-1) added to RIB
IPv6-EIGRP(0:100): 3:1::/64 do advertise out Serial0/0/0.2
IPv6-EIGRP(0:100): Int 3:1::/64 metric 4294967295 0 4294967295
IPv6-EIGRP(0:100): 3:1::/64 deleted FE80::2(FE80::2)/Serial0/0/0.2
IPv6-EIGRP(0:100): 3:1::/64 not in IPv6 routing table
IPv6-EIGRP(0:100): Int 3:1::/64 metric 4294967295 0 4294967295
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 179
EIGRP for IPv6 Stub Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
R4(config-rtr)# stub
%DUAL-5-NBRCHANGE: IPv6-EIGRP(0) 100: Neighbor FE80::2 (Serial0/0/0.2) is down: peer
info changed
R4(config-rtr)#
IPv6-EIGRP(0:100): 3:3::/64 deleted FE80::2(FE80::2)/Serial0/0/0.2
IPv6-EIGRP(0:100): 3:2::/64 deleted FE80::2(FE80::2)/Serial0/0/0.2
IPv6-EIGRP(0:100): 12::/64 deleted FE80::2(FE80::2)/Serial0/0/0.2
IPv6-EIGRP(0:100): 13::/64 deleted FE80::2(FE80::2)/Serial0/0/0.2
%DUAL-5-NBRCHANGE: IPv6-EIGRP(0) 100: Neighbor FE80::2 (Serial0/0/0.2) is up: new
adjacency
IPv6-EIGRP(0:100): Processing incoming UPDATE packet
IPv6-EIGRP(0:100): Processing incoming UPDATE packet
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 180
EIGRP for IPv6 Stub Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
R3(config-if)# no shutdown
R3(config-if)# shutdown
R4(config-rtr)#
IPv6-EIGRP(0:100): Processing incoming UPDATE packet
IPv6-EIGRP(0:100): Int 3:1::/64 M 4294967295 0 4294967295 SM 4294967295 - 0
4294967295
IPv6-EIGRP(0:100): Int 3:1::/64 metric 4294967295 0 4294967295
IPv6-EIGRP(0:100): Processing incoming REPLY packet
IPv6-EIGRP(0:100): Int 3:1::/64 M 4294967295 0 4294967295 SM 4294967295 - 0
4294967295
IPv6-EIGRP(0:100): 3:1::/64 deleted FE80::2(FE80::2)/Serial0/0/0.2
R4(config-rtr)#
To verify and generate EIGRP messages on R4, the loopback 301 interface on
R3 is enabled and disabled.
Notice that only Update and Reply messages are exchanged.
R2 did not query R4 for any routes.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 181
EIGRP for IPv6 Summarization Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
<output omitted>
D 3:1::/64 [90/3321856]
via FE80::2, Serial0/0/0.2
D 3:2::/64 [90/3321856]
via FE80::2, Serial0/0/0.2
D 3:3::/64 [90/3321856]
via FE80::2, Serial0/0/0.2
D 12::/64 [90/2681856]
via FE80::2, Serial0/0/0.2
D 13::/64 [90/3193856]
via FE80::2, Serial0/0/0.2
R4#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 182
EIGRP for IPv6 Summarization Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 183
EIGRP for IPv6 Summarization Example
IPv6 EIGRP AS 100
13:13::3/64 13:13::1/64 12:12::1/64 12:12::2/64 24:24::1/64 24:24::4/64
Lo301: 3:1::3/64
S0/0/0.1 S0/0/0.3 S0/0/0.2 S0/0/0.1 S0/0/0.4 S0/0/0.2
Lo302: 3:2::3/64
Lo303: 3:3::3/64 R3 R1 R2 R4
<output omitted>
D 3::/16 [90/3321856]
via FE80::2, Serial0/0/0.2
D 12::/64 [90/2681856]
via FE80::2, Serial0/00.2
D 13::/64 [90/3193856]
via FE80::2, Serial0/0/0.2
R4#
As expected, the routing table on R4 now contains the summary of the three loopback addresses, not the addresses
themselves.
By summarizing, the scope of the failure domain is reduced, and the routing overhead and routing table size are decreased.
For example, if the loopback were disabled, no messages would appear.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 184
Multiprotocol BGP
(MP-BGP)
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 185
Multiprotocol BGP (MP-BGP)
Multiprotocol BGP is used to enable BGP4 to carry the
information of other protocols such as Multiprotocol Label
Switching (MPLS) and IPv6.
RFC 4760 defines multiprotocol extensions for BGP-4.
RFC 2545 defines how these extensions are used for IPv6.
MBGP operates with multiple protocols by identifying two
separate protocols:
The carrier protocol
The passenger protocol
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 186
Multiprotocol BGP (MP-BGP)
BGP could be configured
with IPv4 as both the
carrier and passenger
protocol.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 187
Enable BGP
Configure the MBGP routing process parameters.
Router(config)#
router bgp autonomous-system
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 188
Define the BGP Router-ID
Define the BGP router ID.
Router(config-router)#
bgp router-id ip-address
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 189
Identify BGP Neighbors
Identify peer BGP routers.
Router(config-router)#
neighbor {ipv6-address | peer-group-name} remote-as
autonomous-system-number
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 190
Enter Address Family Configuration Mode
Configure routing sessions that use standard IPv6 address prefixes.
Router(config-router)#
address-family ipv6 [unicast | multicast | vpnv6]
Parameter Description
unicast (Optional) Specifies IPv6 unicast address prefixes.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 191
Enter Address Family Configuration Mode
R1(config)# router bgp 1
R1(config-router)# address-family ipv6 unicast
R1(config-router-af)# ?
Router Address Family configuration commands:
aggregate-address Configure BGP aggregate entries
bgp BGP specific commands
default Set a command to its defaults
default-information Distribution of default information
distance Define an administrative distance
exit-address-family Exit from Address Family configuration mode
help Description of the interactive help system
maximum-paths Forward packets over multiple paths
neighbor Specify a neighbor router
network Specify a network to announce via BGP
no Negate a command or set its defaults
redistribute Redistribute IPv6 prefixes from another routing protocol
synchronization Perform IGP synchronization
timers Adjust routing timers
R1(config-router-af)#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 192
Identify BGP Neighbors
Identify peer BGP routers.
Router(config-router)# or Router(config-router-af)#
neighbor ipv6-address activate
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 193
Identify BGP Neighbors
Identify peer BGP routers.
Router(config-router)# or Router(config-router-af)#
network network-number
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 194
Apply Route Map to MBGP Routes
Apply a route map to filter incoming or outgoing MBGP routes.
Router(config-router)# or Router(config-router-af)#
neighbor ipv6-address route-map name {in | out}
The routes that are permitted may have their attributes set or
changed, using set commands in the route map.
This is useful when trying to influence route selection.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 195
MBGP Example
R1(config)# router bgp 1
R1(config-router)# bgp router-id 1.1.1.1
R1(config-router)# neighbor 2001:100:2:4::1 remote-as 100
R1(config-router)#
R1(config-router)# address-family ipv6
R1(config-router-af)# neighbor 2001:100:2:4::1 activate
R1(config-router-af)# redistribute connected
R1(config-router-af)# end
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 196
IPv6 PBR
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 197
Policy-Based Routing (PBR)
PBR is sometimes called traffic engineering and helps to
provide a high degree of control over routing.
PBR is available for both IPv4 and IPv6.
PBR can be used to:
Manually configurr the path that packets take.
Classify and mark packets
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 198
IPv6 Policy-Based Routing (PBR)
The route-map map-tag [permit | deny]
[sequence-number] global configuration command is
the same as the IPv4 command.
Also, as in IPv4, IPv6 PBR is still based on:
match commands for identifying the traffic to be policy-based routed
set commands for defining how that traffic will be routed.
A route map can refer to many match and set
commands.
We will examine only a few of these.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 199
route-map Commands for Redistribution
Router(config)#
route-map map-tag [permit | deny] [sequence-number]
Command is the same as IPv4 and defines the route map conditions.
Router(config-route-map)#
match {conditions}
Defines the conditions to match.
Router(config-route-map)#
set {actions}
Defines the action to be taken on a match.
Router(config-router)#
redistribute protocol [process-id] route-map map-tag
Allows for detailed control of routes being redistributed into a routing
protocol.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 200
match Commands Used in IPv6 PBR
Command Description
match ipv6 address Matches any routes that have a destination network number IPv6
address that is permitted by a standard or extended ACL
match ipv6 next-hop Matches any routes that have a next-hop router IPv6 address that
is passed by one of the ACLs specified
match ipv6 route-source Matches routes that have been advertised by routers and access
servers at the IPv6 address that is specified by the ACLs
match interface Matches any routes that have the next hop out of one of the
interfaces specified
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 201
Specify a Prefix Permitted by a Prefix List
Specify a prefix-list or ACL to match.
Router(config-route-map)#
match ipv6 address {prefix-list prefix-list-name |
access-list-name}
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 202
set Commands Used in IPv6 PBR
Command Description
set ipv6 default next- Indicates an IPv6 default next hop to which matching packets will be
hop forwarded
Indicates where to output IPv6 packets that pass a match clause of
set ipv6 next-hop
a route map for policy routing
set ipv6 precedence Set the precedence value in the IPv6 packet header
set as-path Modifies an AS path for BGP routes
set automatic-tag Computes automatically the tag value
set community Sets the BGP communities attribute
set default interface Indicates where to output packets that pass a match clause of a route
map for policy routing and have no explicit route to the destination
set interface Indicates where to output packets that pass a match clause of a route
map for policy routing
set local-preference Specifies a BGP local preference value
set metric Sets the metric value for a routing protocol
set metric-type Sets the metric type for the destination routing protocol
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 203
Specify Outgoing Next Hop IPv6 Address
Specify where to forward IPv6 packets that pass a match clause.
Router(config-route-map)#
set ipv6 next-hop global-ipv6-address [global-ipv6-
address...]
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 204
Apply the PBR Route Map
Apply the PBR route map to an interface.
Router(config-if)#
ipv6 policy route-map route-map-name
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 205
Identify a Route Map for Local Policy Routing
Identify a route map to use for local policy routing.
Router(config)#
ipv6 local policy route-map route-map-name
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 206
Define an IPv6 ACL
Enter IPv6 ACL configuration mode.
Router(config)#
ipv6 access-list access-list-name
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 207
Change the Ping Default Source Interface
Specify the source interface to use when using ping.
Router#
ping ipv6 ipv6-address source interface-name
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 208
Verifying and Troubleshooting IPv6 PBR
Command Description
show ipv6 access- Displays the contents of all or a specified IPv6 ACL.
list [access-list- The access-list-name parameter specifies the
name] name of the access list.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 209
IPv6 PBR Example
R2
123::2/64
S0/0/0
R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 210
IPv6 PBR Example
R2
123::2/64
S0/0/0
R3
R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 212
IPv6 PBR Example
R2
123::2/64
S0/0/0
R3
R1#
*Aug 14 10:03:58.955: IPv6 PBR: FastEthernet0/0, matched src 104::1 dst 123::2 protocol 58
*Aug 14 10:03:58.955: IPv6 PBR: set nexthop 123::3, interface Serial0/0/0
*Aug 14 10:03:58.955: IPv6 PBR: policy route via Serial0/0/0/123::3
*Aug 14 10:03:59.043: IPv6 PBR: FastEthernet0/0, matched src 104::1 dst 123::2 protocol 58
*Aug 14 10:03:59.043: IPv6 PBR: set nexthop 123::3, interface Serial0/0/0
*Aug 14 10:03:59.043: IPv6 PBR: policy route via Serial0/0/0/123::3
*Aug 14 10:03:59.131: IPv6 PBR: FastEthernet0/0, matched src 104::1 dst 123::2 protocol 58
<output omitted>
The PBR generated debug output confirms that traffic sourced from
Lo104 is being rerouted to R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 213
IPv6 PBR Example
R2
123::2/64
S0/0/0
R3
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 214
IPv6 Redistribution
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 215
Redistribution
Redistribution can be configured between:
Two different RIPng processes
RIPng and OSPFv3 (one or two-way)
RIPng and MBGP (one or two-way)
OSPF and MBGP (one or two-way)
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 216
RIPng Redistribution Considerations
IPv6 IGPs can have multiple instances running on the same
router, and on the same interface.
By default, these instances use the same multicast group and the
same port number and accept updates from each other.
However, if the port number or the multicast group address
are changed, the instances will not communicate by default.
Redistribution can be configured so that the instances share their
routes.
The seed metric used in redistributed routes defaults to one
hop, and can be changed using route maps.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 217
RIPng Redistribution Considerations
Multiple RIPng instances can run simultaneously on the
same router and on the same link.
By default, these multiple instances of RIPng will send and
receive advertisements between each other.
To separate these processes, use the following router
configuration command:
port port-number multicast-group multicast-address
Redistribution must be configured to share information
between these separate processes.
Seed metrics may need to be configured to control paths.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 218
OSPFv3 Redistribution Considerations
OSPFv3 does not redistribute connected networks by
default.
The metric and metric type may be reset when
redistributing.
The solution is to explicitly configure the seed metric and metric type.
Redistribution may cause suboptimal routing and routing
loops.
Solutions include changing administrative distance and route filtering.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 219
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
In this example:
All IPv6 addresses shown are already configured on the routers.
RIPng R1R3 will run between routers R1 and R3.
OSPFv3 will run between routers R2 and R4.
MBGP AS 12 will run between routers R1 and R2.
Each routers loopback interface will be included in the appropriate routing
protocol configuration.
The goal is to have end-to-end reachability
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 220
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 221
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
<output omitted>
R 103::/64 [120/2]
via FE80::219:55FF:FEDF:AD22, FastEthernet0/0
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 222
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 223
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 224
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
<output omitted>
O 104::1/128 [110/1]
via FE80::4, FastEthernet0/0
R2#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 225
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 226
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
<output omitted>
B 101::/64 [200/0]
via 12::1
R2#
Now that all three routing domains have been successfully configured,
redistribution is now ready to be implemented:
R1 will redistribute between RIPng and MBGP
R2 will redistribute between OSPFv3 and MBGP.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 228
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 229
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
<output omitted>
B 13::/64 [200/0]
via 12::1
B 101::/64 [200/0]
via 12::1
B 103::/64 [200/2]
via 12::1
R2#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 230
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 231
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
<output omitted>
B 24::/64 [200/0]
via 12::2
B 102::/64 [200/0]
via 12::2
B 104::1/128 [200/1]
via 12::2
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 232
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
<output omitted>
B 24::/64 [200/0]
via 12::2
B 102::/64 [200/0]
via 12::2
B 104::1/128 [200/1]
via 12::2
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 233
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
<output omitted>
R 12::/64 [120/2]
via FE80::1, FastEthernet0/0
R 24::/64 [120/2]
via FE80::1, FastEthernet0/0
R 101::/64 [120/2]
via FE80::1, FastEthernet0/0
R 102::/64 [120/2]
via FE80::1, FastEthernet0/0
R 104::1/128 [120/2]
via FE80::1, FastEthernet0/0
R3#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 236
Redistribution Example
Lo103: 103::1/64 Lo101: 101::1/64 Lo102: 102::1/64 Lo104: 104::1/64
<output omitted>
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 238
IPv4 to IPv6 Transition Mechanisms
The transition from IPv4 to IPv6 does not require an
upgrade on all nodes at the same time.
IPv4 and IPv6 will coexist for some time.
A wide range of techniques are available for the period of
transition between IPv4 and IPv6.
These techniques can be grouped into three categories:
Dual-stack techniques
Tunneling techniques
Translation techniques
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 239
Dual-Stack Techniques
Hosts and network devices run both IPv4 and IPv6 at the
same time.
This technique is useful as a temporary transition, but it adds
overhead and uses many resources.
Cisco IOS Software is IPv6 ready.
As soon as IPv4 and IPv6 configurations are complete, the interface
is dual stacked and it forwards both IPv4 and IPv6 traffic.
Drawback of dual stacking includes:
The additional resources required to keep and process dual routing
tables, routing protocol topology tables, etc.
The higher administrative overhead, troubleshooting, and monitoring,
is more complex.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 240
Dual-Stack Example
10.10.10.1 10.10.10.2
R1 2001:12::1/64 2001:12::2/64 R2
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 241
Dual-Stack Example
10.10.10.1 10.10.10.2
R1 2001:12::1/64 2001:12::2/64 R2
<output omitted>
The output confirms that the Fa0/0 interface is operational and uses the
IPv4 address.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 242
Dual-Stack Example
10.10.10.1 10.10.10.2
R1 2001:12::1/64 2001:12::2/64 R2
<output omitted>
The output confirms that the Fa0/0 interface is operational and also
uses the IPv6 address.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 243
Tunneling Techniques
Isolated IPv6 networks are connected over an IPv4
infrastructure using tunnels.
The edge devices are the only ones that need to be dual-
stacked.
Scalability may be an issue if many tunnels need to be
created.
Tunnels can be either manually or automatically configured,
depending on the scale required and administrative overhead
tolerated.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 244
Tunneling Techniques
For IPv6, tunneling is an integration method in which an
IPv6 packet is encapsulated within IPv4.
This enables the connection of IPv6 islands without the
need to convert the intermediary network to IPv6.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 245
Tunneling Techniques
In this example, the tunnel between sites is using:
IPv4 as the transport protocol (the protocol over which the tunnel is created).
IPv6 is the passenger protocol (the protocol encapsulated in the tunnel and carried
through the tunnel).
GRE is used to create the tunnel, and is known as the tunneling protocol.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 246
Translation Techniques
Dual stack and tunneling techniques manage the
interconnection of IPv6 domains.
NAT-PT is an extension of NAT techniques and it provides
protocol translation services for legacy equipment that
cannot be upgraded to IPv6 and for some deployment
scenarios.
A router converts IPv6 packets into IPv4 packets and vise
versa, allowing IPv6-only devices to communicate with
IPv4-only devices.
Scalability may again be an issue because of the resources required
on the translator device.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 247
NAT-PT Example
Node A is an IPv6 only node and wants to send an IPv6 datagram to
node D and therefore forwards the packet to the NAT-PT router.
The NAT-PT router maintains a pool of globally routable IPv4 addresses that are
assigned to IPv6 nodes dynamically as sessions are initiated.
An advantage of NAT-PT is that no modifications are required on the
hosts.
A IPv6 D
192.168.2.1 IPv4 Network
Network R1
2001:DB8:FFFF:1::1 192.168.30.1
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 248
Tunneling IPv6
Traffic
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 249
Types of Tunnels
Tunnels can be created manually using:
Manual IPv6 tunnels
GRE IPv6 tunnels
Tunnels can also be created automatically using:
IPv4-Compatible IPv6 Tunnels (now deprecated)
6to4 tunnels
ISATAP Tunnels
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 250
Manual Tunnel Configuration
Create a tunnel interface.
Router(config)#
interface tunnel number
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 251
Tunnel Commands
The tunnel source interface-type interface-
number interface configuration command sets the source
address for a tunnel interface as the address of the
specified interface.
The tunnel destination ip-address interface
configuration command specifies the destination address
for a tunnel interface.
In this case the ip-address is an IPv4 address
The tunnel mode ipv6ip interface configuration
command sets the encapsulation mode for the tunnel
interface to use IPv6 as the passenger protocol, and IPv4
as both the encapsulation and transport protocol.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 252
Tunnel Commands
Use the following commands to troubleshoot a tunnel
configuration:
The debug tunnel EXEC command enables the display of a
tunnel encapsulation and decapsulation process.
The debug ip packet detail EXEC command enables the
display of details about IP packets traversing the router.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 253
Manual IPv6 Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 254
Manual IPv6 Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 255
Manual IPv6 Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 256
Manual IPv6 Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
<output omitted>
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 257
Manual IPv6 Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 258
Manual IPv6 Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 259
Manual IPv6 Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
<output omitted>
R 12::/64 [120/2]
via FE80::2, FastEthernet0/0
R 13::/64 [120/3]
via FE80::2, FastEthernet0/0
R4#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 260
Manual IPv6 Tunnel Summary
Manual tunnels are simple to configure, and are therefore
useful for a small number of sites.
However, for large networks manual tunnels are not
scalable, from both a configuration and management
perspective.
The edge routers on which the tunnels terminate need to be
dual stacked, and therefore must be capable of running
both protocols and have the capacity to do so.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 261
GRE Tunnels
Generic Routing Encapsulation (GRE) IPv6 tunnels were
developed by Cisco, and GRE encapsulation is the default
tunneling protocol (configured with the tunnel mode
command) on Cisco routers.
GRE tunnels and their configurations are very similar to manual
tunnels.
GRE tunnels are more flexible in the protocols that they support.
GRE tunnels are used when a permanent connection is
needed between two routers, between a host and router, or
between remote IPv6 networks.
GRE itself does not provide security features; it is only an
encapsulation protocol.
Can be made secure with IPsec to provide confidentiality, integrity,
and authentication services for the IPv6 traffic.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 262
GRE Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 263
GRE Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 264
GRE Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 265
GRE Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 266
GRE Tunnel Example
Lo103: 103::1/64 Lo101: 10.1.1.1/24 Lo102: 10.1.1.2/24 Lo104: 104::1/64
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 267
6to4 Tunnels
6to4 tunnels, also known as a 6-to-4 tunnel, is an automatic
tunneling method.
6to4 tunnels are point-to-multipoint, rather than the point-to-
point tunnels.
The 6to4 tunnels are built automatically by the edge routers,
based on embedded IPv4 address within the IPv6
addresses of the tunnel interfaces on the edge routers.
6to4 tunnels enable the fast deployment of IPv6 in a
corporate network without the need for public IPv6
addresses from ISPs or registries.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 268
6to4 Tunnel Example
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 269
6to4 Tunnel Example
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 271
6to4 Tunnel Example
Lo103: 103::1/64 Lo101: 172.16.101.1 Lo102: 172.16.102.1 Lo104: 104::1/64
Automatic 6to4 Tunnel
2002:AC10:6501::/128 2002:AC10:6601::/128
13:13::3/64 13:13::1/64 24:24::2/64 24:24::4/64
Fa0/0 Fa0/0 172.16.12.1/24 172.16.12.2/24 Fa0/0 Fa0/0
R3 R1 R2 R4
S0/1/0 S0/1/0
IPv4 RIP
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 272
6to4 Tunnel Example
Lo103: 103::1/64 Lo101: 172.16.101.1 Lo102: 172.16.102.1 Lo104: 104::1/64
Automatic 6to4 Tunnel
2002:AC10:6501::/128 2002:AC10:6601::/128
13:13::3/64 13:13::1/64 24:24::2/64 24:24::4/64
Fa0/0 Fa0/0 172.16.12.1/24 172.16.12.2/24 Fa0/0 Fa0/0
R3 R1 R2 R4
S0/1/0 S0/1/0
IPv4 RIP
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 274
ISATAP Tunnels
An Intra-Site Automatic Tunnel Addressing Protocol
(ISATAP) tunnel is very similar to a 6to4 IPv6 tunnel.
It is used to connect IPv6 domains over an IPv4 network.
It embeds an IPv4 address within the IPv6 address.
The goal of ISATAP is to provide connectivity for IPv6 hosts
to a centralized IPv6-capable router, over an IPv4-only
access network.
ISATAP was designed to transport IPv6 packets within a site
(hence the intra-site part of its name).
It can still be used between sites, but its purpose is within sites.
ISATAP tunnels use IPv6 addresses consisting of a 64-bit
prefix concatenated to a 64-bit interface ID in EUI-64
format.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 275
ISATAP Tunnel Example
Lo103: 103::1/64 Lo101: 172.16.101.1 Lo102: 172.16.102.1 Lo104: 104::1/64
Automatic ISATAP Tunnel
12:12::5EFE:AC10:6501 12:12::5EFE:AC10:6601
13:13::3/64 13:13::1/64 24:24::2/64 24:24::4/64
Fa0/0 Fa0/0 172.16.12.1/24 172.16.12.2/24 Fa0/0 Fa0/0
R3 R1 R2 R4
S0/1/0 S0/1/0
IPv4 RIP
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 276
ISATAP Tunnel Example
Lo103: 103::1/64 Lo101: 172.16.101.1 Lo102: 172.16.102.1 Lo104: 104::1/64
Automatic ISATAP Tunnel
12:12::5EFE:AC10:6501 12:12::5EFE:AC10:6601
13:13::3/64 13:13::1/64 24:24::2/64 24:24::4/64
Fa0/0 Fa0/0 172.16.12.1/24 172.16.12.2/24 Fa0/0 Fa0/0
R3 R1 R2 R4
S0/1/0 S0/1/0
IPv4 RIP
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 278
Translation
Using NAT-PT
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 279
NAT-PT
NAT-PT is another powerful transition technique, but is not a
replacement for dual stack or tunneling.
Instead, it can be used in situations where direct communication
between IPv6-only and IPv4-only networks is desired.
It would not be appropriate in situations where connectivity between
two IPv6 networks is required, because two points of translation
would be necessary, which would not be efficient or effective.
With NAT-PT, all configuration and translation is performed
on the NAT-PT router.
The other devices in the network are not aware of the existence of the
other protocols network, nor that translations are occurring.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 280
NAT-PT
The NAT-PT router translates source and destination
addresses and other packet header fields in both directions:
From the IPv4 network to the IPv6 network
From the IPv6 network to the IPv4 network.
For this reason, this router is dual stacked and must have
two sets of translation entries for this bidirectional
translation.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 281
NAT-PT Operation
A DNS is required in NAT-PT
architectures.
Applications initiate traffic from
hosts, and DNS translates
domain names to IP addresses.
Because DNS requests may
cross the NAT-PT router, a
DNS application layer
gateway (ALG) is typically
implemented to facilitate the
name-to-address mapping.
The DNS-ALG translates IPv6
addresses in DNS queries and
responses into their IPv4
address bindings, and vice
versa.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 282
NAT-PT
NAT-PT uses a 96-bit IPv6 network prefix to direct all IPv6 traffic that
needs to be translated to the NAT-PT router.
This prefix can be any routable prefix within the IPv6 domain.
IPv6 routing must be configured such that all IPv6 packets addressed to this
prefix are routed to the NAT-PT device.
When the NAT-PT router receives an IPv6 packet destined for the NAT-
PT prefix, it translates the packet according to the configured mapping
rules.
This prefix is also used in the translation of IPv4 addresses into IPv6
addresses.
Within the IPv6 domain, external IPv4 addresses are mapped to IPv6
addresses.
This mapping is done statically or dynamically.
Similarly, static and dynamic mapping can be configured for translating
internal IPv6 addresses to external IPv4 addresses.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 283
Static NAT-PT for IPv6 Example
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 284
Static NAT-PT for IPv6 Example
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 285
Static NAT-PT for IPv6 Example
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 286
Configure Static NAT-PT
Configure IPv4-to-IPv6 static address translation using NAT-PT.
Router(config)#
ipv6 nat v4v6 source ipv4-address ipv6-address
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 287
Define the NAT-PT Prefix
Define the network prefix that NAT-PT will translate.
Router(config)# or Router(config-if)#
ipv6 nat prefix ipv6-prefix/prefix-length
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 288
Identify the NAT-PT Interfaces
Identify the participating NAT-PT interfaces.
Router(config-if)#
ipv6 nat
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 289
Verifying and Troubleshooting NAT-PT
Command Description
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 290
Static NAT-PT Example
IPv4 Only
Lo103: 103::1/64
13::3/64 R3
172.16.123.0/24 13::1/64
IPv6 RIP NAT-PT
.2 .1
Lo102: 102::1/64
R2 R1 14::1/64
S0/1/0 S0/0/0 14::4/64
Lo104: 104::1/64
R4
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 291
Static NAT-PT Example
IPv4 Only
Lo103: 103::1/64
13::3/64 R3
172.16.123.0/24 13::1/64
IPv6 RIP NAT-PT
.2 .1
Lo102: 102::1/64
R2 R1 14::1/64
S0/1/0 S0/0/0 14::4/64
Lo104: 104::1/64
R4
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 292
Static NAT-PT Example
IPv4 Only
Lo103: 103::1/64
13::3/64 R3
172.16.123.0/24 13::1/64
IPv6 RIP NAT-PT
.2 .1
Lo102: 102::1/64
R2 R1 14::1/64
S0/1/0 S0/0/0 14::4/64
Lo104: 104::1/64
R4
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 293
Static NAT-PT Example
IPv4 Only
Lo103: 103::1/64
13::3/64 R3
172.16.123.0/24 13::1/64
IPv6 RIP NAT-PT
.2 .1
Lo102: 102::1/64
R2 R1 14::1/64
S0/1/0 S0/0/0 14::4/64
Lo104: 104::1/64
R4
<output omitted>
C 13::64 [0/0]
via FastEthernet0/0, directly connected
C 14::/64 [0/0]
via Serial0/0/0, directly connected
C 1144::/96 [0/0]
via NVI0, directly connected
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 294
Static NAT-PT Example
IPv4 Only
Lo103: 103::1/64
13::3/64 R3
172.16.123.0/24 13::1/64
IPv6 RIP NAT-PT
.2 .1
Lo102: 102::1/64
R2 R1 14::1/64
S0/1/0 S0/0/0 14::4/64
Lo104: 104::1/64
R4
R1# config t
R1(config)# ipv6 router rip NAT-PT
R1(config-rtr)# redistribute connected metric 3
R1(config-rtr)# exit
R1#
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 295
Static NAT-PT Example
IPv4 Only
Lo103: 103::1/64
13::3/64 R3
172.16.123.0/24 13::1/64
IPv6 RIP NAT-PT
.2 .1
Lo102: 102::1/64
R2 R1 14::1/64
S0/1/0 S0/0/0 14::4/64
Lo104: 104::1/64
R4
<ouput omitted>
R 13::/64 [120/2]
via FE80::1, Serial 1/1.7
R 1144::/96 [120/4]
via FE80::1, Serial 1/1.7
R4#
The routing table confirms that the NAT-PT 96-bit prefix has been
advertised to R4.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 296
Static NAT-PT Example
IPv4 Only
Lo103: 103::1/64
13::3/64 R3
172.16.123.0/24 13::1/64
IPv6 RIP NAT-PT
.2 .1
Lo102: 102::1/64
R2 R1 14::1/64
S0/1/0 S0/0/0 14::4/64
Lo104: 104::1/64
R4
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 297
Static NAT-PT Example
IPv4 Only
Lo103: 103::1/64
13::3/64 R3
172.16.123.0/24 13::1/64
IPv6 RIP NAT-PT
.2 .1
Lo102: 102::1/64
R2 R1 14::1/64
S0/1/0 S0/0/0 14::4/64
Lo104: 104::1/64
R4
Displaying the NAT translation table reveals the two static translation
entries and the ICMPv6 entry created by the ping command.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 298
Static NAT Summary
Static NAT-PT is quite simple to configure and a good
solution for one or two sites.
Therefore a big drawback of static NAT is that it is not
scalable.
Its very cumbersome to create static entries for multiple sources
communicating with multiple destinations.
Dynamic NAT provides a far more scalable solution.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 299
Dynamic NAT-PT for IPv6
With dynamic NAT-PT, addresses are allocated from an
address pool, the same as is done with IPv4 dynamic NAT.
Again, the commands have similar syntax to their IPv4 NAT.
When the NAT-PT router receives a packet with an IPv6
destination address of an arbitrarily assigned 96-bit prefix
(the NAT-PT prefix), it translates the IPv6 packet to an IPv4
address from an address pool.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 300
Configure Dynamic NAT-PT
Define a pool of IPv4 addresses for NAT-PT.
Router(config)#
ipv6 nat v6v4 pool name start-ipv4 end-ipv4 prefix-
length prefix-length
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 301
Configure Dynamic NAT-PT
Bind an ACL with the NAT-PT pool.
Router(config)#
ipv6 nat v6v4 source {list {access-list-number | name}
pool name}
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 302
Configure Dynamic NAT-PT
Define a pool of IPv6 addresses for NAT-PT.
Router(config)#
ipv6 nat v4v6 pool name start-ipv6 end-ipv6 prefix-
length prefix-length
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 303
Configure Dynamic NAT-PT
Bind an ACL with the NAT-PT pool.
Router(config)#
ipv6 nat v4v6 source {list {access-list-number | name}
pool name}
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 304
Chapter 8 Summary
The chapter focused on the following topics:
The issues associated with IPv4.
The features of IPv6, including: larger address space, elimination of
NAT and broadcast addresses, simplified header for improved router
efficiency, support for mobility and security, and transition richness
The features of IPv6 addresses, including: stateless autoconfiguration,
prefix renumbering, multiple addresses per interface, link-local
addresses, and the ability to use provider-dependent or provider-
independent addressing.
The 40-octet IPv6 header, with its 8 fields plus extension headers to handle
options
The 128-bit IPv6 addresses written in the format x:x:x:x:x:x:x:x
The IPv6 address interface ID
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 305
Chapter 8 Summary
The IPv6 address types including unicast (including global, link-
local, and the deprecated site-local), multicast (for one-to-many),
and anycast (for one-to-nearest). There are no broadcast
addresses.
The ability to summarize IPv6 addresses, similar to IPv4 address
summarization.
IPv6 address configuration and verification commands
The neighbor discovery or solicitation phase.
Stateless autoconfiguration.
The processes used to connect IPv6 devices on:
Broadcast multiaccess connections
Point-to-point connections
point-to-multipoint connections.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 306
Chapter 8 Summary
The routing protocols available for IPv6, including RIPng,
OSPFv3, EIGRP for IPv6, and MBGP
The types of static routes that can be configured.
RIPng features, configuration and verification commands
OSPFv3 features, configuration and verification commands
EIGRP for IPv6 features, configuration and verification
commands
MBGP features, configuration and verification commands
Policy routing configuration and verification commands.
Redistribution configuration and verification commands.
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 307
Chapter 8 Summary
Transitioning techniques from IPv4 to IPv6:
Dual-stack (both protocols running)
Tunneling IPv6 inside IPv4
Translation with stateful NAT-PT
Tunneling IPv6 over IPv4:
Manual tunnels, configuration and verification commands.
GRE tunnels, configuration and verification commands.
6to4 tunnels, configuration and verification commands.
ISATAP tunnels, configuration and verification commands.
Translation using NAT-PT.
Static NAT-PT configuration and verification commands.
Dynamic NAT-PT configuration and verification commands
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 308
Resources
IPv6 Main Page
www.cisco.com/go/ipv6
IPv6 Headers At-a-Glance
http://www.cisco.com/en/US/technologies/tk648/tk872/technologies_white_paper09
00aecd80260042.pdf
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 310
Chapter Labs
Lab 8-1 Configuring OSPF for IPv6
Lab 8-2 Using Manual IPv6 Tunnels with EIGRP for IPv6
Lab 8-3 Configuring 6to4 Tunnels
Lab 8-4 IPv6 Challenge Lab
Lab 8-5 IPv6 Troubleshooting Lab
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 311
Chapter 8
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 312