CCNA Portable Command Guide: IPv6

Date: Jul 1, 2008 By Scott Empson. Sample Chapter is provided courtesy of Cisco Press.
This chapter provides information and commands concerning a number of IPv6-related topics such as assigning IPv6 addresses to interfaces, IPv6 tunnels, and IPv6 ping.

This chapter provides information and commands concerning the following topics:

  • Assigning IPv6 addresses to interfaces
  • IPv6 and RIPng
  • Configuration example: IPv6 RIP
  • IPv6 tunnels: manual overlay tunnel
  • Static routes in IPv6
  • Floating static routes in IPv6
  • Verifying and troubleshooting IPv6
  • IPv6 ping

Assigning IPv6 Addresses to Interfaces

Router(config)#ipv6 unicast-routing

Enables the forwarding of IPV6 unicast datagrams globally on the router.

Router(config)#interface fastethernet 0/0

Moves to interface configuration mode.

Router(config-if)#ipv6 enable

Automatically configures an IPv6 link-local address on the interface and enables IPv6 processing on the interface.

NOTE: The link-local address that the ipv6 enable command configures can be used only to communicate with nodes on the same link.

Router(config-if)#ipv6 address 3000::1/64

Configures a global IPv6 address on the interface and enables IPv6 processing on the interface.

Router(config-if)#ipv6 address 2001:db8:0:1::/64 eui-64

Configures a global IPv6 address with an interface identifier in the low-order 64 bits of the IPv6 address.

Router(config-if)#ipv6 address fe80::260:3eff:fe47:1530/64 link-local

Configures a specific link-local IPv6 address on the interface instead of the one that is automatically configured when IPv6 is enabled on the interface.

Router(config-if)#ipv6 unnumbered type/number

Specifies an unnumbered interface and enables IPv6 processing on the interface. The global IPv6 address of the interface specified by type/number will be used as the source address.

IPv6 and RIPng

Router(config)#interface serial 0/0

Moves to interface configuration mode.

Router(config-if)#ipv6 rip tower enable

Creates the RIPng process named tower and enables RIPng on the interface.

NOTE: Unlike RIPv1 and RIPv2, where you needed to create the RIP routing process with the router rip command and then use the network command to specify the interfaces on which to run RIP, the RIPng process is created automatically when RIPng is enabled on an interface with the ipv6 rip name enable command.

NOTE: Cisco IOS Software automatically creates an entry in the configuration for the RIPng routing process when it is enabled on an interface.

NOTE: The ipv6 router rip process-name command is still needed when configuring optional features of RIPng.

Router(config)#ipv6 router rip tower

Creates the RIPng process named tower if it has not already been created, and moves to router configuration mode

Router(config-router)#maximum-paths 2

Defines the maximum number of equal-cost routes that RIPng can support.

NOTE: The number of paths that can be used is a number from 1 to 64. The default is 4.

Configuration Example: IPv6 RIP

Figure 25-1 illustrates the network topology for the configuration that follows, which shows how to configure IPv6 and RIPng using the commands covered in this chapter.

Figure 25-1

Figure 25-1 Network Topology for IPv6/RIPng Configuration Example

Austin Router

Router>enable

Moves to privileged mode

Router#configure terminal

Moves to global configuration mode

Router(config)#hostname Austin

Assigns a host name to the router

Austin(config)#ipv6 unicast-routing

Enables the forwarding of IPv6 unicast datagrams globally on the router

Austin(config)#interface fastethernet 0/0

Enters interface configuration mode

Austin(config-if)#ipv6 enable

Automatically configures an IPv6 link-local address on the interface and enables IPv6 processing on the interface

Austin(config-if)#ipv6 address 2001:db8:c18:2::/64 eui-64

Configures a global IPv6 address with an interface identifier in the low-order 64 bits of the IPv6 address

Austin(config-if)#ipv6 rip tower enable

Creates the RIPng process named tower and enables RIPng on the interface

Austin(config-if)#no shutdown

Activates the interface

Austin(config-if)#interface fastethernet 0/1

Enters interface configuration mode

Austin(config-if)#ipv6 enable

Automatically configures an IPv6 link-local address on the interface and enables IPv6 processing on the interface

Austin(config-if)#ipv6 address 2001:db8:c18:1::/64 eui-64

Configures a global IPv6 address with an interface identifier in the low-order 64 bits of the IPv6 address

Austin(config-if)#ipv6 rip tower enable

Creates the RIPng process named tower and enables RIPng on the interface

Austin(config-if)#no shutdown

Activates the interface

Austin(config-if)#exit

Moves to global configuration mode

Austin(config)#exit

Moves to privileged mode

Austin#copy running-config startup-config

Saves the configuration to NVRAM

Houston Router

Router>enable

Moves to privileged mode

Router#configure terminal

Moves to global configuration mode

Router(config)#hostname Houston

Assigns a host name to the router

Houston(config)#ipv6 unicast-routing

Enables the forwarding of IPv6 unicast datagrams globally on the router

Houston(config)#interface fastethernet 0/0

Enters interface configuration mode

Houston(config-if)#ipv6 enable

Automatically configures an IPv6 link-local address on the interface and enables IPv6 processing on the interface

Houston(config-if)#ipv6 address 2001:db8:c18:2::/64 eui-64

Configures a global IPv6 address with an interface identifier in the low-order 64 bits of the IPv6 address

Houston(config-if)#ipv6 rip tower enable

Creates the RIPng process named tower and enables RIPng on the interface

Houston(config-if)#no shutdown

Activates the interface

Houston(config-if)#interface fastethernet 0/1

Enters interface configuration mode

Houston(config-if)#ipv6 enable

Automatically configures an IPv6 link-local address on the interface and enables IPv6 processing on the interface

Houston(config-if)#ipv6 address 2001:db8:c18:3::/64 eui-64

Configures a global IPv6 address with an interface identifier in the low-order 64 bits of the IPv6 address

Houston(config-if)#ipv6 rip tower enable

Creates the RIPng process named tower and enables RIPng on the interface

Houston(config-if)#no shutdown

Activates the interface

Houston(config-if)#exit

Moves to global configuration mode

Houston(config)#exit

Moves to privileged mode

Houston#copy running-config startup-config

Saves the configuration to NVRAM

IPv6 Tunnels: Manual Overlay Tunnel

Figure 25-2 illustrates the network topology for the configuration that follows, which shows how IPv6 tunnels are created.

Figure 25-2

Figure 25-2 Network Topology for IPv6 Tunnel Creation

Juneau Router

Router>enable

Moves to privileged mode

Router#configure terminal

Moves to global configuration mode

Router(config)#hostname Juneau

Sets the host name of the router

Juneau(config)#ipv6 unicast-routing

Enables the forwarding of IPv6 unicast datagrams globally on the router

Juneau(config)#interface tunnel0

Moves to tunnel interface configuration mode

Juneau(config-if)#ipv6 address 2001:db8:c003:1104::1/64

Assigns an IPv6 address to this interface

Juneau(config-if)#tunnel source serial 0/0

Specifies the source interface type and number for the tunnel interface

Juneau(config-if)#tunnel destination 10.1.1.2

Specifies the destination IPv4 address for the tunnel interface

Juneau(config-if)#tunnel mode ipv6ip

Defines a manual IPv6 tunnel; specifically, that IPv6 is the passenger protocol and IPv4 is both the encapsulation and protocol for the IPv6 tunnel

Juneau(config-if)#interface fastethernet 0/0

Moves to interface configuration mode

Juneau(config-if)#ipv6 address 2001:db8:c003:111e::1/64

Assigns an IPv6 address to this interface

Juneau(config-if)#no shutdown

Activates the interface

Juneau(config-if)#interface serial 0/0

Moves to interface configuration mode

Juneau(config-if)#ip address 10.1.1.1 255.255.255.252

Assigns an IPv4 address and netmask

Juneau(config-if)#clock rate 56000

Sets the clock rate on interface

Juneau(config-if)#no shutdown

Starts the interface

Juneau(config-if)#exit

Moves to global configuration mode

Juneau(config)#exit

Moves to privileged mode

Juneau#copy running-config startup-config

Saves the configuration to NVRAM

Fairbanks Router

Router>enable

Moves to privileged mode

Router#configure terminal

Moves to global configuration mode

Router(config)#hostname Fairbanks

Sets the host name of the router

Fairbanks(config)#interface tunnel0

Moves to tunnel interface configuration mode

Fairbanks(config-if)#ipv6 address 2001:db8:c003:1104::2/64

Assigns an IPv6 address to this interface

Fairbanks(config-if)#tunnel source serial 0/0

Specifies the source interface type and number for the tunnel interface

Fairbanks(config-if)#tunnel destination 10.1.1.1

Specifies the destination IPv4 address for the tunnel interface

Fairbanks(config-if)#tunnel mode ipv6ip

Defines a manual IPv6 tunnel; specifically, that IPv6 is the passenger protocol and IPv4 is both the encapsulation and protocol for the IPv6 tunnel

Fairbanks(config-if)#interface fastethernet 0/0

Moves to interface configuration mode

Fairbanks(config-if)#ipv6 address 2001:db8:c003:111f::1/64

Assigns an IPv6 address to this interface

Fairbanks(config-if)#no shutdown

Activates the interface

Fairbanks(config-if)#interface serial 0/0

Moves to interface configuration mode

Fairbanks(config-if)#ip address 10.1.1.2 255.255.255.252

Assigns an IPv4 address and netmask

Fairbanks(config-if)#no shutdown

Starts the interface

Fairbanks(config-if)#exit

Moves to global configuration mode

Fairbanks(config)#exit

Moves to privileged mode

Fairbanks#copy running-config startup-config

Saves the configuration to NVRAM

Static Routes in IPv6

Figure 25-3 illustrates the network topology for the configuration that follows, which shows how to configure static routes with IPv6. Note that only the static routes on the Austin router are displayed.

Figure 25-3

Figure 25-3 Network Topology for IPv6 Static Route Configuration

Austin(config)#ipv6 route 2001:db8:c18:3::/64 2001:db8:c18:2::2/64

Creates a static route configured to send all packets to a next-hop address of 2001:db8:c18:2::2

Austin(config)#ipv6 route 2001:db8:c18:3::/64 fastethernet 0/0

Creates a directly attached static route configured to send packets out interface fastethernet 0/0

Austin(config)#ipv6 route 2001:db8:c18:3::/64 fastethernet 0/0 2001:db8:c18:2::2

Creates a fully specified static route on a broadcast interface

Floating Static Routes in IPv6

To create a static route with an administrative distance (AD) set to 200, as opposed the default AD of one (1), enter the following command, for example:

Austin(config)# ipv6 route 2001:db8:c18:3::/64 fastethernet 0/0 200

The default ADs used in IPv4 are the same for IPv6.

Verifying and Troubleshooting IPv6

Router#clear ipv6 rip

Deletes routes from the IPv6 RIP routing table and, if installed, routes in the IPv6 routing table

Router#clear ipv6 route *

Deletes all routes from the IPv6 routing table

NOTE: Clearing all routes from the routing table will cause high CPU utilization rates as the routing table is rebuilt.

Router#clear ipv6 route 2001:db8:c18:3::/64

Clears this specific route from the IPv6 routing table.

Router#clear ipv6 traffic

Resets IPv6 traffic counters.

Router#debug ipv6 packet

Displays debug messages for IPv6 packets.

Router#debug ipv6 rip

Displays debug messages for IPv6 RIP routing transactions.

Router#debug ipv6 routing

Displays debug messages for IPv6 routing table updates and route cache updates.

Router#show ipv6 interface

Displays the status of interfaces configured for IPv6.

Router#show ipv6 interface brief

Displays a summarized status of interfaces configured for IPv6.

Router#show ipv6 neighbors

Displays IPv6 neighbor discovery cache information.

Router#show ipv6 protocols

Displays the parameters and current state of the active IPv6 routing protocol processes.

Router#show ipv6 rip

Displays information about the current IPv6 RIP process.

Router#show ipv6 route

Displays the current IPv6 routing table.

Router#show ipv6 route summary

Displays a summarized form of the current IPv6 routing table.

Router#show ipv6 routers

Displays IPv6 router advertisement information received from other routers.

Router#show ipv6 static

Displays only static IPv6 routes installed in the routing table.

Router#show ipv6 static 2001:db8:5555:0/16

Displays only static route information about the specific address given.

Router#show ipv6 static interface serial 0/0

Displays only static route information with the specified interface as the outgoing interface.

Router#show ipv6 static detail

Displays a more detailed entry for IPv6 static routes.

Router#show ipv6 traffic

Displays statistics about IPv6 traffic.

Router#show ipv6 tunnel

Displays IPv6 tunnel information.

IPv6 Ping

To diagnose basic network connectivity using IPv6 to the specified address, enter the following command:

Router#ping ipv6 2001:db8::3/64

The following characters can be displayed as output when using PING in IPv6.

Character

Description

!

Each exclamation point indicates receipt of a reply.

.

Each period indicates that the network server timed out while waiting for a reply.

?

Unknown error.

@

Unreachable for unknown reason.

A

Administratively unreachable. Usually means that an access control list (ACL) is blocking traffic.

B

Packet too big.

H

Host unreachable.

N

Network unreachable (beyond scope).

P

Port unreachable.

R

Parameter problem.

T

Time exceeded.

U

No route to host.