IP Routing – IPv6

clear ipv6 neighbors

Use the clear ipv6 neighbors command in privileged EXEC mode to delete all entries in the IPv6 neighbor discovery cache, except static entries.

Syntax

clear ipv6 neighbors

Parameters

N/A

Command Mode

Privileged EXEC mode

User Guidelines

Example

The following example deletes all entries, except static entries, in the neighbor discovery cache:

switchxxxxxx# clear ipv6 neighbors

ipv6 address

Use the ipv6 address command in Interface Configuration mode to configure a global unicast IPv6 address based on an IPv6 general prefix and enable IPv6 processing on an interface. To remove the address from the interface, use the no form of this command.

Syntax

ipv6 address ipv6-address/prefix-length no ipv6 address [ipv6-address/prefix-length]

Parameters

  • ipv6-address—Specifies the global unicast IPv6 address assigned to the interface. This argument must be in the form documented in RFC4293 where the address is specified in hexadecimal using 16-bit values between colons.
  • prefix-length—The length of the IPv6 prefix. A decimal value that indicates how many of the high-order contiguous bits of the address comprise the prefix (the network portion of the address). A slash mark must precede the decimal value.

Default Configuration

No IP address is defined for the interface.

Command Mode

Interface Configuration mode

User Guidelines

The ipv6 address command cannot be applied to define an IPv6 address on an ISATAP interface.

Using the no IPv6 address command without arguments removes all manually-configured IPv6 addresses from an interface, including link local manually configured addresses.

Example

The following example defines the IPv6 global address 2001:DB8:2222:7272::72 on vlan 100:

switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-if)# ipv6 address 2001:DB8:2222:7272::72/64
switchxxxxxx(config-if)# exit

ipv6 address autoconfig

Use the ipv6 address autoconfig command in Interface Configuration mode to enable automatic configuration of IPv6 addresses using stateless auto configuration on an interface and enable IPv6 processing on the interface.

Addresses are configured depending on the prefixes received in Router Advertisement messages. To disable automatic configuration of IPv6 addresses and to remove the automatically configured address from the interface, use the no form of this command.

Syntax

ipv6 address autoconfig no ipv6 address autoconfig

Parameters N/A.

Default Configuration

Stateless Auto configuration is enabled.

Command Mode

Interface Configuration mode

User Guidelines

This command enables IPv6 on an interface (if it was disabled) and causes the switch to perform IPv6 stateless address auto-configuration to discover prefixes on the link and then to add the eui-64 based addresses to the interface.

Stateless auto configuration is applied only when IPv6 Forwarding is disabled.

When IPv6 forwarding is changed from disabled to enabled, and stateless auto configuration is enabled the switch stops stateless auto configuration and removes all stateless auto configured ipv6 addresses from all interfaces.

When IPv6 forwarding is changed from enabled to disabled and stateless auto configuration is enabled the switch resumes stateless auto configuration.

Additionally the ipv6 address autoconfig command enables on the interface the DHCPv6 Stateless client to receive DHCP stateless information and this information is received from a DHCPv6 server regardless whether IPv6 Forwarding is enabled or not.

Using the no form of the ipv6 address command without arguments removes all manually-configured IPv6 addresses from an interface, including link local manually-configured addresses.

Example

The following example assigns the IPv6 address automatically:

switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-if)# ipv6 address autoconfig
switchxxxxxx(config-if)# exit

ipv6 address eui-64

Use the ipv6 address eui-64 command in Interface Configuration mode to configure a global unicast IPv6 address for an interface and enables IPv6 processing on the interface using an EUI-64 interface ID in the low order 64 bits of the address. To remove the address from the interface, use the no form of this command.

Syntax

ipv6 address ipv6-prefix/prefix-length eui-64 no ipv6 address [ipv6-prefix/prefix-length eui-64]

Parameters

  • ipv6-prefix—Specifies the global unicast IPv6 address assigned to the interface. This argument must be in the form documented in RFC4293 where the address is specified in hexadecimal using 16-bit values between colons.
  • prefix-length—The length of the IPv6 prefix. A decimal value that indicates how many of the high-order contiguous bits of the address comprise the prefix (the network portion of the address). A slash mark must precede the decimal value.

Default Configuration

No IP address is defined for the interface.

Command Mode

Interface Configuration mode

User Guidelines

If the value specified for the prefix-length argument is greater than 64 bits, the prefix bits have precedence over the interface ID.

The IPv6 address is built from ipv6-prefix and the EUI-64 Interface ID by the following way:

  • The first prefix-length bits are taken from ipv6-prefix.
  • If prefix-length < 64 then
    • The following (64-prefix-length) bits are filled by 0s.
    • The last 64 bits are taken from the EUI-64 Interface ID.
  • If prefix-length equals to 64 then the following 64 bits are taken from the EUI-64 Interface ID.
  • If prefix-length > 64 then the following (128-prefix-length) bits are taken from the last (64-(prefix-length -64)) bits of the EUI-64 Interface ID.

If the switch detects another host using one of its IPv6 addresses, it adds the IPv6 address and displays an error message on the console.

Using the no form of the ipv6 address command without arguments removes all manually-configured IPv6 addresses from an interface, including link local manually-configured addresses.

Example

The following example enables IPv6 processing on VLAN 1, configures IPv6 global address 2001:0DB8:0:1::/64 and specifies an EUI-64 interface ID in the low order 64 bits of the address:

switchxxxxxx(config)# interface vlan 1
switchxxxxxx(config-if)# ipv6 address 2001:0DB8:0:1::/64 eui-64
switchxxxxxx(config-if)# exit

ipv6 address link-local

Use the ipv6 address link-local command in Interface Configuration mode to configure an IPv6 link local address for an interface and enable IPv6 processing on the interface. To remove the manually configured link local address from the interface, use the no form of this command.

Syntax

ipv6 address ipv6-prefix link-local no ipv6 address [link-local]

Parameters

  • ipv6-address—Specifies the IPv6 network assigned to the interface. This argument must be in the form documented in RFC4293 where the address is specified in hexadecimal using 16-bit values between colons.

Default Configuration

The default Link-local address is defined.

Command Mode

Interface Configuration mode

User Guidelines

The switch automatically generates a link local address for an interface when IPv6 processing is enabled on the interface, typically when an IPv6 address is configured on the interface. To manually specify a link local address to be used by an interface, use the ipv6 address link-local command.

The ipv6 address link-local command cannot be applied to define an IPv6 address on an ISATAP interface.

Using the no form of the ipv6 address command without arguments removes all manually-configured IPv6 addresses from an interface, including link local manually-configured addresses.

Example

The following example enables IPv6 processing on VLAN 1 and configures FE80::260:3EFF:FE11:6770 as the link local address for VLAN 1:

interface vlan 1

switchxxxxxx(config-if)# ipv6 address FE80::260:3EFF:FE11:6770 link-local
switchxxxxxx(config-if)# exit

ipv6 default-gateway

Use the ipv6 default-gateway Global Configuration mode command to define an IPv6 default gateway. To remove the IPv6 default gateway, use the no form of this command.

Syntax ipv6 default-gateway ipv6-address no ipv6 default-gateway [ipv6-address]

Parameters

  • ipv6-address—Specifies the IPv6 address of an IPv6 router that can be used to reach a network.

Default Configuration

No default gateway is defined.

Command Mode

Global Configuration mode

User Guidelines

The command is an alias of the ipv6 route command with the predefined (default) route:

             ipv6 route ::/0 ipv6-address | interface-id

See the definition of the ipv6 route command for details.

Examples

Example 1. The following example defines a default gateway with a global IPv6 address:

ipv6 default-gateway 5::5

Example 2. The following example defines a default gateway with a link-local IPv6 address:

switchxxxxxx(config)# ipv6 default-gateway  FE80::260:3EFF:FE11:6770%vlan1

ipv6 enable

Use the ipv6 enable command in Interface Configuration mode to enable IPv6 processing on an interface.

To disable IPv6 processing on an interface that has not been configured with an explicit IPv6 address, use the no form of this command.

Syntax

ipv6 enable no ipv6 enable

Parameters N/A.

Default Configuration

IPv6 interface is disabled.

Command Mode

Interface Configuration mode

User Guidelines

This command automatically configures an IPv6 link-local Unicast address on the interface while also enabling the interface for IPv6 processing. The no ipv6 enable command does not disable IPv6 processing on an interface that is configured with an explicit IPv6 address.

Example

The following example enables VLAN 1 for the IPv6 addressing mode.

interface vlan 1

switchxxxxxx(config-if)# ipv6 enable
switchxxxxxx(config-if)# exit

ipv6 icmp error-interval

Use the ipv6 icmp error-interval command in Global Configuration mode to configure the interval and bucket size for IPv6 ICMP error messages. To return the interval to its default setting, use the no form of this command.

Syntax

ipv6 icmp error-interval milliseconds [bucketsize] no ipv6 icmp error-interval

Parameters

  • milliseconds—Time interval between tokens being placed in the bucket. Each token represents a single ICMP error message. The acceptable range is from 0 to 2147483647. A value of 0 disables ICMP rate limiting.
  • bucketsize—Maximum number of tokens stored in the bucket. The acceptable range is from 1 to 200.

Default Configuration

The default interval is 100ms and the default bucketsize is 10 i.e. 100 ICMP error messages per second.

Command Mode

Global Configuration mode

User Guidelines

Use this command to limit the rate at which IPv6 ICMP error messages are sent. A token bucket algorithm is used with one token representing one IPv6 ICMP error message. Tokens are placed in the virtual bucket at a specified interval until the maximum number of tokens allowed in the bucket is reached.

The milliseconds argument specifies the time interval between tokens arriving in the bucket. The optional bucketsize argument is used to define the maximum number of tokens allowed in the bucket. Tokens are removed from the bucket

when IPv6 ICMP error messages are sent, which means that if the bucketsize is set to 20, a rapid succession of 20 IPv6 ICMP error messages can be sent. When the bucket is empty of tokens, IPv6 ICMP error messages are not sent until a new token is placed in the bucket.

Average Packets Per Second = (1000/ milliseconds) * bucketsize.

To disable ICMP rate limiting, set the milliseconds argument to zero.

Example

The following example shows an interval of 50 milliseconds and a bucket size of 20 tokens being configured for IPv6 ICMP error messages:

switchxxxxxx(config)# ipv6 icmp error-interval 50 20

ipv6 link-local default zone

Use the Ipv6 link-local default zone command to configure an interface to egress a link local packet without a specified interface or with the default zone 0.

Use the no form of this command to return the default link local interface to the default value.

Syntax

Ipv6 link-local default zone interface-id no Ipv6 link-local default zone

Parameters

  • interface-id—Specifies the interface that is used as the egress interface for packets sent without a specified IPv6Z interface identifier or with the default 0 identifier.

Default

By default, link local default zone is disabled.

Command Mode

Global Configuration mode

Example

The following example defines VLAN 1 as a default zone:

switchxxxxxx(config)# ipv6 link-local default zone vlan1

ipv6 nd dad attempts

Use the ipv6 nd dad attempts command in Interface Configuration mode to configure the number of consecutive neighbor solicitation messages that are sent on an interface while duplicate address detection is performed on the Unicast IPv6 addresses of the interface.

To return the number of messages to the default value, use the no form of this command.

Syntax

ipv6 nd dad attempts value no ipv6 nd dad attempts

Parameters

  • value—The number of neighbor solicitation messages. The acceptable range is from 0 to 600. Configuring a value of 0 disables duplicate address detection processing on the specified interface; a value of 1 configures a single transmission without follow-up transmissions.

Default Configuration

1

Command Mode

Interface Configuration mode

User Guidelines

Duplicate address detection verifies the uniqueness of new Unicast IPv6 addresses before the addresses are assigned to interfaces (the new addresses remain in a tentative state while duplicate address detection is performed). Duplicate address detection uses neighbor solicitation messages to verify the uniqueness of Unicast IPv6 addresses.

The DupAddrDetectTransmits node configuration variable (as specified in RFC 4862, IPv6 Stateless Address Autoconfiguration) is used to automatically determine the number of consecutive neighbor solicitation messages that are sent on an interface, while duplicate address detection is performed on a tentative Unicast IPv6 address.

The interval between duplicate address detection, neighbor solicitation messages (the duplicate address detection timeout interval) is specified by the neighbor discovery-related variable RetransTimer (as specified in RFC 4861, Neighbor Discovery for IPv6), which is used to determine the time between retransmissions of neighbor solicitation messages to a neighbor when resolving the address or when probing the reachability of a neighbor. This is the same management variable used to specify the interval for neighbor solicitation messages during address resolution and neighbor unreachability detection. Use the ipv6 nd ns-interval command to configure the interval between neighbor solicitation messages that are sent during duplicate address detection.

Duplicate address detection is suspended on interfaces that are administratively down. While an interface is administratively down, the Unicast IPv6 addresses assigned to the interface are set to a pending state. Duplicate address detection is automatically restarted on an interface when the interface returns to being administratively up.

An interface returning to administratively up, restarts duplicate address detection for all of the Unicast IPv6 addresses on the interface. While duplicate address detection is performed on the link-local address of an interface, the state for the other IPv6 addresses is still set to TENTATIVE. When duplicate address detection is completed on the link-local address, duplicate address detection is performed on the remaining IPv6 addresses.

When duplicate address detection identifies a duplicate address, the state of the address is set to DUPLICATE and the address is not used. If the duplicate address is the link-local address of the interface, the processing of IPv6 packets is disabled on the interface and an error SYSLOG message is issued.

If the duplicate address is a global address of the interface, the address is not used and an error SYSLOG message is issued.

All configuration commands associated with the duplicate address remain as configured while the state of the address is set to DUPLICATE.

If the link-local address for an interface changes, duplicate address detection is performed on the new link-local address and all of the other IPv6 address associated with the interface are regenerated (duplicate address detection is performed only on the new link-local address).

Example

The following example configures five consecutive neighbor solicitation messages to be sent on VLAN 1 while duplicate address detection is being performed on the tentative Unicast IPv6 address of the interface. The example also disables duplicate address detection processing on VLAN 2.

switchxxxxxx(config)# interface vlan 1
switchxxxxxx(config-if)# ipv6 nd dad attempts 5
switchxxxxxx(config-if)# exit
switchxxxxxx(config)# interface vlan 2
switchxxxxxx(config-if)# ipv6 nd dad attempts 0
switchxxxxxx(config-if)# exit

ipv6 neighbor

Use the ipv6 neighbor command in Global Configuration mode to configure a static entry in the IPv6 neighbor discovery cache. To remove a static IPv6 entry from the IPv6 neighbor discovery cache, use the no form of this command.

Syntax

ipv6 neighbor ipv6-address interface-id mac-address no ipv6 neighbor [[ipv6-address] interface-id]

Parameters

  • ipv6-address—Specified IPv6 address. This argument must be in the form documented in RFC4293 where the address is specified in hexadecimal using 16-bit values between colons.
  • interface-id—Specified interface identifier.
  • mac-address—Interface MAC address.

Default Configuration

Static entries are not configured in the IPv6 neighbor discovery cache.

Command Mode

Global Configuration mode

User Guidelines

This command is similar to the arp command.

Use the ipv6 neighbor command to add a static entry in the IPv6 neighbor discovery cache.

If the specified IPv6 address is a global IPv6 address it must belong to one of static on-link prefixes defined in the interface. When a static on-link prefix is deleted all static entries in the IPv6 neighbor discovery cache corresponding the prefix is deleted to.

If an entry for the specified IPv6 address already exists in the neighbor discovery cache, learned through the IPv6 neighbor discovery process, the entry is automatically converted to a static entry.

Static entries in the IPv6 neighbor discovery cache are not modified by the neighbor discovery process.

Use the no ipv6 neighbor ipv6-address interface-id command to remove the one given static entry on the given interface. The command does not remove the entry from the cache, if it is a dynamic entry, learned from the IPv6 neighbor discovery process.

Use the no ipv6 neighbor interface-id command to delete the all static entries on the given interface.

Use the no ipv6 neighbor command to remove the all static entries on all interfaces.

Use the show ipv6 neighbors command to view static entries in the IPv6 neighbor discovery cache. A static entry in the IPv6 neighbor discovery cache can have one of the following states:

  • NCMP (Incomplete)—The interface for this entry is down.
  • REACH (Reachable)—The interface for this entry is up.

Note. Reachability detection is not applied to static entries in the IPv6 neighbor discovery cache; therefore, the descriptions for the INCMP and REACH states are different for dynamic and static cache entries.

Examples

Example 1. The following example configures a static entry in the IPv6 neighbor discovery cache for a neighbor with the IPv6 address 2001:0DB8::45A and link-layer address 0002.7D1A.9472 on VLAN 1:

switchxxxxxx(config)# ipv6 neighbor 2001:0DB8::45A vlan1 0002.7D1A.9472

Example 2. The following example deletes the static entry in the IPv6 neighbor discovery cache for a neighbor with the IPv6 address 2001:0DB8::45A and link-layer address 0002.7D1A.9472 on VLAN 1:

switchxxxxxx(config)# no ipv6 neighbor 2001:0DB8::45A vlan1

Example 3. The following example deletes all static entries in the IPv6 neighbor discovery cache on VLAN 1:

switchxxxxxx(config)# no ipv6 neighbor vlan1

Example 4. The following example deletes all static entries in the IPv6 neighbor discovery cache on all interfaces:

switchxxxxxx(config)# no ipv6 neighbor

ipv6 unreachables

Use the ipv6 unreachables command in Interface Configuration mode to enable the generation of Internet Control Message Protocol for IPv6 (ICMPv6) unreachable messages for any packets arriving on a specified interface.

To prevent the generation of unreachable messages, use the no form of this command.

Syntax

ipv6 unreachables no ipv6 unreachables Parameters N/A.

Default Configuration

The sending of ICMP IPv6 unreachable messages is enabled.

Command Mode

Interface Configuration mode

User Guidelines

If the switch receives a Unicast packet destined for itself that uses a protocol it does not recognize, it sends an ICMPv6 unreachable message to the source.

If the switch receives a datagram that it cannot deliver to its ultimate destination because it knows of no route to the destination address, it replies to the originator of that datagram with an ICMP host unreachable message.

Example

The following example disables the generation of ICMPv6 unreachable messages, as appropriate, on an interface:

switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-if)# no ipv6 unreachables
switchxxxxxx(config-if)# exit

show ipv6 interface

Use the show ipv6 interface command in user EXEC or privileged EXEC mode to display the usability status of interfaces configured for IPv6.

Syntax

show ipv6 interface [brief] | [interface-id]

Parameters

  • brief—Displays a brief summary of IPv6 status and configuration for each interface where IPv6 is defined.
  • interface-id—Interface identifier about which to display information.

Default Configuration

Option brief – all IPv6 interfaces are displayed.

Command Mode User EXEC mode

Privileged EXEC mode

User Guidelines

Use this command to validate the IPv6 status of an interface and its configured addresses. This command also displays the parameters that IPv6 uses for operation on this interface and any configured features.

If the interface’s hardware is usable, the interface is marked up.

If you specify an optional interface identifier, the command displays information only about that specific interface. For a specific interface, you can enter the prefix keyword to see the IPv6 neighbor discovery (ND) prefixes that are configured on the interface.

Examples

Example 1. The show ipv6 interface command displays information about the specified interface:

switchxxxxxx# show ipv6 interface vlan 1 VLAN 1 is up/up IPv6 is enabled, link-local address is FE80::0DB8:12AB:FA01 Global unicast address(es): Ipv6 Global Address                         Type 2000:0DB8::2/64 (ANY)                       Manual 2000:0DB8::2/64                             Manual 2000:1DB8::2011/64                          Manual Joined group address(es): FF02::1 FF02::2 FF02::1:FF11:6770 MTU is 1500 bytes ICMP error messages limited interval is 100ms; Bucket size is 10 tokens ND DAD is enabled, number of DAD attempts: 1 ND reachable time is 30000 milliseconds Stateless autoconfiguration is enabled. MLD Version is 2

Field Descriptions:

  • vlan 1 is up/up—Indicates the interface status: administrative/operational. IPv6 is enabled, stalled, disabled (stalled and disabled are not shown in sample output)—Indicates that IPv6 is enabled, stalled, or disabled on the interface. If IPv6 is enabled, the interface is marked Enabled. If duplicate address detection processing identified the link-local address of the interface as being a duplicate address, the processing of IPv6 packets is disabled on the interface and the interface is marked Stalled. If IPv6 is not enabled, the interface is marked Disabled.
  • link-local address—Displays the link-local address assigned to the interface.
  • Global unicast address(es):—Displays the global Unicast addresses assigned to the interface. The type is manual or autoconfig.
  • Joined group address(es):—Indicates the Multicast groups to which this interface belongs.
  • MTU is 1500 bytes—Maximum transmission unit of the interface.
  • ICMP error messages—Specifies the minimum interval (in milliseconds) between error messages sent on this interface.
  • ND DAD—The state of duplicate address detection on the interface (enabled or disabled).
  • number of DAD attempts:—Number of consecutive neighbor solicitation messages that are sent on the interface while duplicate address detection is performed.
  • ND reachable time—Displays the neighbor discovery reachable time (in milliseconds) assigned to this interface.
  • MLD Version—Version of MLD

Example 2. The following command with the brief keyword displays information about all interfaces that IPv6 is defined on:

switchxxxxxx# show ipv6 interface brief Interface  Interface  IPv6     Link Local        MLD        Number of State     State   IPv6 Address     Version  Global Addresses ---------  --------- -------  ----------------- -------   ---------------- vlan 1     up/up     enabled  FE80::0DB8:12AB:FA01        1                            1 vlan 2     up/up     stalled  FE80::0DB8:12AB:FA01        1                            1 vlan 3     up/down   enabled  FE80::0DB8:12AB:FA01        1                             3 vlan 4     down/down enabled  FE80::0DB8:12AB:FA01         2                            2 vlan 5     up/up     enabled  FE80::0DB8:12AB:FA01        1                             1 vlan 100   up/up     enabled  FE80::0DB8:12AB:FA01        1                             1 vlan 1000  up/up     stalled  FE80::0DB8:12AB:FA01        1                             1

show ipv6 link-local default zone

Use the show ipv6 link-local default zone command in user EXEC or privileged EXEC mode to display the IPv6 link local default zone.

Syntax

show ipv6 link-local default zone

Command Mode User EXEC mode

Privileged EXEC mode

Examples

Example 1. The following example displays the default zone when it is defined:

switchxxxxxx# show ipv6 link-local default zone Link Local Default Zone is VLAN 1

Example 2. The following example displays the default zone when it is not defined:

switchxxxxxx# show ipv6 link-local default zone Link Local Default Zone is not defined

show ipv6 neighbors

Use the show ipv6 neighbors command in User EXEC or Privileged EXEC mode to display IPv6 neighbor discovery (ND) cache information.

Syntax

show ipv6 neighbors [interface-id | ipv6-address | ipv6-hostname]

Parameters

  • interface-id—Specifies the identifier of the interface from which IPv6 neighbor information is to be displayed.
  • ipv6-address—Specifies the IPv6 address of the neighbor. This argument must be in the form documented in RFC4293 where the address is specified in hexadecimal using 16-bit values between colons.
  • ipv6-hostname—Specifies the IPv6 host name of the remote networking device.

Default Configuration

All IPv6 ND cache entries are listed.

Command Mode User EXEC mode

Privileged EXEC mode

User Guidelines

When the interface-id argument is not specified, cache information for all IPv6 neighbors is displayed. Specifying the interface-id argument displays only cache information about the specified interface.

Examples

Example 1. The following is sample output from the show ipv6 neighbors command when entered with an interface-id:

switchxxxxxx# show ipv6 neighbors vlan 1 IPv6 Address                Age Link-layer Addr     State  Interface Router 2000:0:0:4::2                0    0003.a0d6.141e    REACH  VLAN1       Yes 3001:1::45a                  -    0002.7d1a.9472    REACH  VLAN1       - FE80::203:A0FF:FED6:141E     0    0003.a0d6.141e    REACH  VLAN1       No Example 2. The following is sample output from the show ipv6 neighbors command when entered with an IPv6 address: 
switchxxxxxx# show ipv6 neighbors 2000:0:0:4::2 IPv6 Address                Age Link-layer Addr     State  Interface Router 2000:0:0:4::2                0    0003.a0d6.141e    REACH  VLAN1       Yes

Field Descriptions:

  • Total number of entries—Number of entries (peers) in the cache.
  • IPv6 Address—IPv6 address of neighbor or interface.
  • Age—Time (in minutes) since the address was confirmed to be reachable. A hyphen (-) indicates a static entry.
  • Link-layer Addr—MAC address. If the address is unknown, a hyphen (-) is displayed.
  • Interface—Interface which the neighbor is connected to.
  • Router—Specifies if the neighbor is a Router. A hyphen (-) is displayed for static entries.

show ipv6 route

Use the show ipv6 route command in user EXEC or privileged EXEC mode to display the current contents of the IPv6 routing table.

Syntax

show ipv6 route [ipv6-address | ipv6-prefix/prefix-length | protocol | interface

interface-id]

Parameters

  • ipv6-address—Displays routing information for a specific IPv6 address. This argument must be in the form documented in RFC4293 where the address is specified in hexadecimal using 16-bit values between colons.
  • ipv6-prefix—Displays routing information for a specific IPv6 network. This argument must be in the form documented in RFC4293 where the address is specified in hexadecimal using 16-bit values between colons.
  • /prefix-length—The length of the IPv6 prefix. A decimal value that indicates how many of the high-order contiguous bits of the address comprise the prefix (the network portion of the address). A slash mark must precede the decimal value.
  • protocol—Displays routes for the specified routing protocol using any of these keywords: bgp, isis, ospf, or rip; or displays routes for the specified type of route using any of these keywords: connected, static, nd, or icmp.
  • interface interface-id—Identifier of an interface.

Default Configuration

All IPv6 routing information for all active routing tables is displayed.

Command Mode User EXEC mode

Privileged EXEC mode

User Guidelines

This command provides output similar to the show ip route command, except that the information is IPv6-specific.

When the ipv6-address or ipv6-prefix/prefix-length argument is specified, a longest match lookup is performed from the routing table and only route information for that address or network is displayed. When the icmp, nd, connected, local, or static keywords are specified, only that type of route is displayed. When the interface-id argument are specified, only the specified interface-specific routes are displayed.

Example

The following is sample output from the show ipv6 route command when the command is entered without an IPv6 address or prefix specified:

switchxxxxxx# show ipv6 route Codes: > - Best S - Static, C - Connected(from ipv6 address), I - ICMP Redirect, ND - Router Advertisment [d/m]: d - route’s distance, m - route’s metric IPv6 Routing Table - 4 entries S> ::/0 [1/1]    via:: fe80::77  VLAN 1 ND> ::/0   [3/2]    via:: fe80::200:cff:fe4a:dfa8 VLAN 1 Lifetime 1784 sec C> 3002:1:1:1:1/64   [0/0]    via:: VLAN 1 ND> 3004:1:1:1:1/64   [0/0]    via:: VLAN 100 Lifetime 1784 sec

show ipv6 route summary

Use the show ipv6 route summary command in User EXEC or Privileged EXEC mode to display the current contents of the IPv6 routing table in summary format.

Syntax show ipv6 route summary Parameters N/A.

Command Mode User EXEC mode

Privileged EXEC mode

Example

The following is sample output from the show ipv6 route summary command:

switchxxxxxx# show ipv6 route summary IPv6 Routing Table Summary - 97 entries 37 local, 35 connected, 25 static Number of prefixes: /16: 1, /28: 10, /32: 5, /35: 25, /40: 1, /64: 9 /96: 5, /112: 1, /127: 4, /128: 36

Was this article helpful?

Related Articles

Leave A Comment?