OSPFv3 Commands

This module describes the commands used to configure and monitor the IP Version 6 (IPv6) Open Shortest Path First Version 3 (OSPFv3) routing protocol.

For detailed information about OSPFv3 concepts, configuration tasks, and examples, see the Implementing OSPF on Software module in the Routing Configuration Guide for Cisco NCS 6000 Series Routers.

address-family (OSPFv3)

To enter address family configuration mode for Open Shortest Path First Version 3 (OSPFv3), use the address-family command in the router ospv3 configuration mode. To disable address family configuration mode, use the no form of this command.

address-family ipv6 [unicast]

no address-family ipv6 [unicast]

Syntax Description

ipv6

Specifies IP Version 6 (IPv6) address prefixes.

unicast

(Optional) Specifies unicast address prefixes.

Command Default

An address family is not specified.

Command Modes

Router ospfv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to configure the OSPFv3 router process with IPv6 unicast address prefixes:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# address-family ipv6 unicast

area (OSPFv3)

To configure an Open Shortest Path First Version 3 (OSPFv3) area, use the area command in an appropriate configuration mode. To remove an OSPFv3 area, use the no form of this command.

area area-id

no area area-id

Syntax Description

area-id

Identifier of an OSPFv3 area. The area-id argument can be specified as either a decimal value or as an IPv4 address.

Command Default

No OSPFv3 areas are defined.

Command Modes

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

An area must be explicitly configured with the area command.

Use the area command to place the router in area configuration mode (prompt: config-router-ar), from which you can configure area-specific settings. Commands configured under this mode (such as the interface command) are automatically bound to that area.


Note

To remove the specified OSPFv3 area from the router ospfv3 configuration, use the no area area-id command. The no area area-id command removes the OSPFv3 area including all OSPFv3 area options, and all the OSPFv3 interfaces and interface options that are configured under the area.


Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to configure area 0 for OSPFv3 process 1. The GigabitEthernet 0/1/0/1 interface also is configured:


  RP/0/RP0/CPU0:router(config)# router ospfv3 1
  RP/0/RP0/CPU0:router(config-ospfv3)# area 0
  RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/1/0/1

authentication (OSPFv3)

To enable plain text, Message Digest 5 (MD5) authentication, or null authentication for an Open Shortest Path First Version 3 (OSPFv3) interface, use the authentication command in an appropriate configuration mode. To remove such authentication, use the no form of this command.

authentication {ipsec spi spi-value {md5 | sha1} [clear | password] password | disable}

no authentication

Syntax Description

ipsec

Specifies IP Security (IPSec).

IPSec supported only for OSPFv3.

spi spi-value

Specifies a security policy index (SPI) value. Range is 256 to 4294967295.

md5

Enables Message Digest 5 (MD5) authentication.

sha1

Enables SHA1 authentication.

clear

(Optional) Specifies that the key be unencrypted.

password

(Optional) Specifies that the key be encrypted using a two-way algorithm.

password

Any contiguous string that can be entered from the keyboard.

disable

Disables authentication for OSPFv3 packets.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the authentication parameter specified by the area.

If this command is not specified in area configuration mode, then the interface adopts the authentication parameter specified for the process.

If this command is not specified at any level, then the interface does not use authentication.

Command Modes

Interface configuration

Area configuration

Router configuration

Virtual-link configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the authentication command to specify an authentication type for the interface, which overrides the authentication specified for the area to which this interface belongs. If this command is not included in the configuration file, the authentication configured in the area to which the interface belongs is assumed (as specified by the area authentication command).

The authentication type and password must be the same for all OSPFv3 interfaces that are to communicate with each other through OSPFv3.


Note

  • If OSPFv3 is configured along with IPsec authentication, then it is likely that adjacencies may flap on a Route Processor Fail Over (RPFO) even when NSR and/or Graceful Restart is enabled.


Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to enable MD5 authentication:


RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# router ospfv3 201
RP/0/RP0/CPU0:router(config-ospfv3)# router-id 10.1.1.1
RP/0/RP0/CPU0:router(config-ospfv3)# authentication ipsec spi 500 md5 1234567890abcdef1234567890abcdef

 

auto-cost (OSPFv3)

To control how the Open Shortest Path First Version 3 (OSPFv3) protocol calculates default metrics for an interface, use the auto-cost command in an appropriate configuration mode. To set link cost based only on the interface type, use the disable form of this command. To re-enable OSPFv3 metric calculation for an interface according to the bandwidth of the interface, use the no form of this command.

auto-cost [reference-bandwidth mbps | disable]

no auto-cost [reference-bandwidth mbps | disable]

Syntax Description

reference-bandwidth mbps

(Optional) Sets the rate in Mbps (bandwidth). Range is 1 to 4294967.

disable

(Optional) Sets the link cost based only on the interface type.

Command Default

mbps : 100 Mbps

Command Modes

Router ospfv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

By default OSPFv3 calculates the OSPFv3 metric for an interface according to the bandwidth of the interface.

The no auto-cost disable form of this command reenables OSPFv3 metric calculation for an interface according to the bandwidth of the interface.

To set link cost based only on the interface type, use the disable keyword.

If you have multiple links with high bandwidth, you might want to use a larger number to differentiate the cost on those links.

Recommended usage of cost configuration for all OSPFv3 configured interfaces is to be consistent: Either explicitly configure link costs (by using the cost command) or choose an appropriate default (by using the auto-cost command).

The value set by the cost command overrides the cost resulting from the auto-cost command.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to set the reference value for the auto cost to 64:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# auto-cost reference-bandwidth 64

clear ospfv3 process

To reset an Open Shortest Path First Version 3 (OSPFv3) router process without removing and reconfiguring it, use the clear ospfv3 process command in XR EXEC mode.

clear ospfv3 [process-name] process

Syntax Description

process-name

(Optional) Name that uniquely identifies an OSPFv3 routing process. The process name is defined by the router ospfv3 command. If this argument is included, only the specified routing process is affected. Otherwise, all OSPFv3 processes are reset.

Command Default

No default behavior or value

Command Modes

XR EXEC

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

When the OSPFv3 router process is reset, OSPFv3 releases all resources allocated, cleans up the internal database, uninstalls routes, and resets all OSPFv3 adjacencies.


Note

The clear ospfv3 process command might clear the router ID configuration if the OSPF router ID is not explicitly configured through the router-id (OSPFv3) command.


Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to reset all OSPFv3 processes:


RP/0/RP0/CPU0:router# clear ospfv3 process

  

The following example shows how to reset the OSPFv3 process 1:


RP/0/RP0/CPU0:router# clear ospfv3 1 process

clear ospfv3 redistribution

To flush all the Type 5 and Type 7 link-state advertisements (LSAs) originated by an Open Shortest Path First Version 3 (OSPFv3) process, use the clear ospfv3 redistribution command in XR EXEC mode.

clear ospfv3 [process-name] redistribution

Syntax Description

process-name

(Optional) Name that uniquely identifies an OSPFv3 routing process. The process name is defined by the router ospfv3 command. If this argument is included, only the specified routing process is affected. Otherwise, all OSPFv3 processes are reset.

Command Default

No default behavior or value

Command Modes

XR EXEC

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the clear ospfv3 redistribution command to cause the routing table to be read again. OSPFv3 regenerates and sends Type 5 and Type 7 link-state advertisements (LSAs) to its neighbors. If an unexpected route has appeared in the OSPFv3 redistribution, using this command corrects the issue.


Note

Use of this command can cause a significant number of LSAs to flood the network. We recommend that you use this command with caution.


Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to clear all OSPFv3 redistributed routes from other protocols:


RP/0/RP0/CPU0:router# clear ospfv3 redistribution
 

clear ospfv3 routes

To clear the Open Shortest Path First Version 3 (OSPFv3) internal route table, use the clear ospfv3 routes command in XR EXEC mode.

clear ospfv3 [process-name] routes

Syntax Description

process-name

(Optional) Name that uniquely identifies an OSPFv3 routing process. The process name is defined by the router ospfv3 command. If this argument is included, only the specified routing process is affected. Otherwise, all OSPFv3 processes are reset.

Command Default

No default behavior or value

Command Modes

XR EXEC

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the clear ospfv3 routes command to force the internal route table to be repopulated by causing recalculation of the shortest path first (SPF) routing table. When the OSPFv3 routing table is cleared, OSPFv3 routes in the global routing table are also recalculated.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to clear all OSPFv3 routes from the OSPFv3 routing table and recomputes valid routes:


RP/0/RP0/CPU0:router# clear ospfv3 routes
 

clear ospfv3 statistics

To clear the Open Shortest Path First Version 3 (OSPFv3) statistical counters, use the clear ospfv3 statistics command in XR EXEC mode.

clear ospfv3 [process-name] statistics [neighbor [type interface-path-id] [router-id]]

Syntax Description

process-name

(Optional) Name that uniquely identifies an OSPFv3 routing process. The process name is defined by the router ospfv3 command. If this argument is included, only the specified routing process is affected.

neighbor

(Optional) Clears counters for the specified neighbor only.

type

Interface type. For more information, use the question mark (?) online help function.

interface-path-id

Physical interface or virtual interface.

Note 

Use the show interfaces command to see a list of all interfaces currently configured on the router.

For more information about the syntax for the router, use the question mark (?) online help function.

router-id

(Optional) Specified router ID. This argument must be in 32-bit dotted-decimal notation, similar to an IPv4 address. This argument clears the counters of the specified neighbor only.

Command Default

No default behavior or value

Command Modes

XR EXEC

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the clear ospfv3 statistics command to reset statistics so that subsequent changes are easily observed.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to clear the OSPFv3 statistical counters of all neighbors on GigabitEthernet interface 0/2/0/0:


RP/0/RP0/CPU0:router# clear ospfv3 statistics neighbor GigabitEthernet 0/2/0/0

cost (OSPFv3)

To explicitly specify the cost of the interface (network) for OSPF path calculations, use the cost command in an appropriate configuration mode. To remove the cost, use the no form of this command.

cost cost

no cost

Syntax Description

cost

Unsigned integer value expressed as the link-state metric. Range is 1 to 65535.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the cost parameter specified by the area.

If this command is not specified in area configuration mode, then the interface adopts the cost parameter specified for the process.

If this command is not specified at any level, then the cost is based on the interface bandwidth, as specified by the auto-cost command.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

The link-state metric is advertised as the link cost in the router link advertisement.

In general, the path cost is calculated using the following formula:

10^8 / bandwidth

If this value does not suit your network, you can use your own method of calculating path costs.

The value set by the cost command overrides the cost resulting from the auto-cost command.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to set the cost value to 65 for GigabitEthernet interface 0/1/0/1:


RP/0/RP0/CPU0:router(config)# router ospfv3 201
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/1/0/1
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# cost 65

 

database-filter all out (OSPFv3)

To filter outgoing link-state advertisements (LSAs) to an Open Shortest Path First Version 3 (OSPFv3) interface, use the database-filter all out command in an appropriate configuration mode. To restore the forwarding of LSAs to the interface, use the no form of this command.

database-filter all out

no database-filter all out

Syntax Description

This command has no keywords or arguments.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the database filter parameter specified for the area.

If this command is not specified in area configuration mode, then the interface adopts the database filter parameter specified for the process.

If this command is not specified in router ospfv3 configuration mode, then the database filter is disabled and all outgoing LSAs are flooded to the interface.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the database-filter all out command to perform the same function that the neighbor command (with the database-filter keyword) performs on a neighbor basis.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to prevent flooding of OSPFv3 LSAs to neighbors reachable through GigabitEthernet interface 0/2/0/3:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0 
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/2/0/3
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# database-filter all out

 

dead-interval (OSPFv3)

To set the interval after which a neighbor is declared dead when no hello packets are observed, use the dead-interval command in an appropriate configuration mode. To return to the default time, use the no form of this command.

dead-interval seconds

no dead-interval

Syntax Description

seconds

Unsigned integer that specifies the interval (in seconds). The value must be the same for all nodes on the same network link. Range is 1 to 65535.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the dead interval parameter specified for the area.

If this command is not specified in area configuration mode, then the interface adopts the dead interval parameter specified for the process.

If this command is not specified in router ospfv3 configuration mode, then the dead interval is four times the interval set by the hello-interval (OSPFv3) command.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Virtual-link configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Two Open Shortest Path First Version 3 (OSPFv3) routers do not become adjacent if their dead interval values differ.

If the hello interval is configured, the dead interval value must be larger than the hello interval value. The dead interval value is usually configured four times larger than the hello interval value.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to set the OSPFv3 dead interval on GigabitEthernet interface 0/2/0/3 to 40 seconds:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/2/0/3
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# dead-interval 40

 

default-cost (OSPFv3)

To specify a cost for the default summary route sent into a stub area or not-so-stubby area (NSSA) for Open Shortest Path First Version 3 (OSPFv3) packets, use the default-cost command in area configuration mode. To remove the assigned default route cost, use the no form of this command.

default-cost cost

no default-cost

Syntax Description

cost

Cost for the default summary route used for a stub or NSSA area. The acceptable value is a 24-bit number ranging from 1 to 16777214.

Command Default

cost : 1

Command Modes

Area configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the default-cost command only on an Area Border Router (ABR) attached to a stub or an NSSA area.

In all routers and access servers attached to the stub area, the area should be configured as a stub area using the stub (OSPFv3) command in the area configuration submode. Use the default-cost command only on an ABR attached to the stub area. The default-cost command provides the metric for the summary default route generated by the ABR into the stub area.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to assign a cost of 20 to the default route sent into area 10.15.0.0:


RP/0/RP0/CPU0:router(config)# router ospfv3 201
RP/0/RP0/CPU0:router(config-ospfv3)# area 10.15.0.0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# stub
RP/0/RP0/CPU0:router(config-ospfv3-ar)# default-cost 20
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/3/0/1 
 

default-information originate (OSPFv3)

To generate a default external route into an Open Shortest Path First Version 3 (OSPFv3) routing domain, use the default-information originate command in router ospfv3 configuration mode. To disable this feature, use the no form of this command.

default-information originate [route-policy policy-name] [always] [metric metric-value] [metric-type type-value] [tag tag-value]

no default-information originate [route-policy policy-name] [always] [metric metric-value] [metric-type type-value] [tag tag-value]

Syntax Description

route-policy policy-name

(Optional) Specifies the route policy to apply to default information origination.

always

(Optional) Always advertises the default route regardless of whether the software has a default route.

metric metric-value

(Optional) Specifies a metric used for generating the default route. The default metric value is 1. The value used is specific to the protocol.

metric-type type-value

(Optional) Specifies an external link type associated with the default route advertised into the OSPFv3 routing domain. It can be one of the following values:

1—Type 1 external route

2—Type 2 external route

tag tag-value

(Optional) 32-bit dotted-decimal value attached to each external route. This is not used by the OSPFv3 protocol itself. It may be used to communicate information between autonomous system boundary routers (ASBRs). If a tag is not specified, then zero (0) is used.

Command Default

A default external route into an OSPFv3 routing domain is not generated.

metric-value : 1

type-value : Type 2

tag-value : 0

Command Modes

Router ospfv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Whenever you use the redistribute or default-information command to redistribute routes into an OSPFv3 routing domain, the software automatically becomes an ASBR. However, an ASBR does not, by default, generate a default route into the OSPFv3 routing domain. The software still must have a default route for itself before it generates one, except when you have specified the always keyword.

The default-information originate route-policy attach point conditionally injects the default route 0.0.0.0/0 into the OSPF link-state database, and is done by evaluating the attached policy. If any routes specified in the policy exist in the global RIB, then the default route is inserted into the link-state database. If there is no match condition specified in the policy, the policy passes and the default route is generated into the link-state database.

For information about the default-information originate attach point, see the OSPF v3 Policy Attach Points section in the Implementing Routing Policy chapter in Routing Configuration Guide for Cisco NCS 6000 Series Routers.

When you use the default-information originate command for the OSPFv3 process, the default network must reside in the routing table.

For information about routing policies, see the Routing Policy Commands chapter in the Routing Command Reference for Cisco NCS 6000 Series Routers.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to specify a metric of 100 for the default route redistributed into the OSPFv3 routing domain and an external metric type of Type 1:


RP/0/RP0/CPU0:router(config)#router ospfv3 109
RP/0/RP0/CPU0:router(config-ospfv3)#default-information originate metric 100 metric-type 1

default-metric (OSPFv3)

To set default metric values for routes redistributed from another protocol into Open Shortest Path First Version 3 (OSPFv3), use the default-metric command in an appropriate configuration mode. To return to the default state, use the no form of this command.

default-metric value

no default-metric value

Syntax Description

value

Default metric value appropriate for the specified routing protocol.

Command Default

Built-in, automatic metric translations, as appropriate for each routing protocol

Command Modes

Router OSPFv3  configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the default-metric command with the redistribute command to cause the current routing protocol to use the same metric value for all redistributed routes. A default metric helps solve the problem of redistributing routes with incompatible metrics. Whenever metrics do not convert, use a default metric to provide a reasonable substitute and enable the redistribution to proceed.

The default-metric value configured in OSPF configuration does not apply to connected routes that are redistributed to OSPF using the redistribute connected command. To set a non-default metric for connected routes, configure OSPF with the redistribute connected metric metric-value command.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to configure a router with both the Intermediate System-to-Intermediate System (IS-IS) and the OSPFv3 routing protocols. The OSPFv3 routing protocol advertises IS-IS derived routes and assigns the routes a metric of 10:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# default-metric 10
RP/0/RP0/CPU0:router(config-ospfv3)# redistribute isis IS-IS_isp

demand-circuit (OSPFv3)

To configure the Open Shortest Path First Version 3 (OSPFv3) router process to treat the interface as an OSPFv3 demand circuit, use the demand-circuit command in an appropriate configuration mode. To remove the demand circuit designation from the interface, use the no form of this command.

demand-circuit [disable]

no demand-circuit

Syntax Description

disable

(Optional) Disables the demand circuit configuration that may have been specified at a higher level in the configuration.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the demand circuit parameter specified for the area.

If this command is not specified in area configuration mode, then the interface adopts the demand circuit parameter specified for the process.

If this command is not specified at any level, then the interface is not a demand circuit.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Virtual-link configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

On point-to-point interfaces, only one end of the demand circuit must be configured with the demand-circuit command. Periodic hello messages are suppressed and periodic refreshes of link-state advertisements (LSAs) do not flood the demand circuit. This command allows the underlying data link layer to be closed when the topology is stable. In point-to-multipoint topology, only the multipoint end must be configured with this command.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to configure GigabitEthernet interface 0/3/0/1 as an on-demand circuit:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3)# interface GigabitEthernet 0/3/0/1
RP/0/RP0/CPU0:router(config-ospfv3-if)# demand-circuit

 

distance ospfv3

To define the Open Shortest Path First Version 3 (OSPFv3) route administrative distances based on route type, use the distance ospfv3 command in router ospfv3 configuration mode. To restore the default value, use the no form of this command.

distance ospfv3 {intra-area | inter-area | external} distance

no distance ospfv3

Syntax Description

intra-area | inter-area | external

Type of area. It can be one of the following values:

intra-area —All routes within an area.

inter-area —All routes from one area to another area.

external —All routes from other routing domains, learned by redistribution.

distance

The route administrative distance.

Command Default

distance : 110

Command Modes

Router ospfv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

You must specify one of the keywords.

Use the distance ospfv3 command to perform the same function as the distance command used with an access list. However, the distance ospfv3 command sets a distance for an entire group of routes, rather than a specific route that passes an access list.

A common reason to use the distance ospfv3 command is when you have multiple OSPFv3 processes with mutual redistribution, and you want to prefer internal routes from one over external routes from the other.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to change the external distance to 200, making it less reliable:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# redistribute ospfv3 2 
RP/0/RP0/CPU0:router(config-ospfv3)# distance ospfv3 external 200
RP/0/RP0/CPU0:router(config-ospfv3)# exit
RP/0/RP0/CPU0:router(config)# router ospfv3 2
RP/0/RP0/CPU0:router(config-ospfv3)# redistribute ospfv3 1 
RP/0/RP0/CPU0:router(config-ospfv3)# distance ospfv3 external 200

distribute-list prefix-list in

To filter the routes that Open Shortest Path First Version 3 (OSPFv3) installs in the Routing Information Base (RIB), use the distribute-list prefix-list in command in an appropriate configuration mode. To remove the filter, use the no form of this command.

distribute-list prefix-list prefix-list-name in

no distribute-list prefix-list prefix-list-name in

Syntax Description

prefix-list-name

IP Version 6 (IPv6) prefix list name. The list defines which IPv6 prefixes are installed in the RIB.

Command Default

All routes learned by OSPFv3 are installed in the RIB.

Command Modes

Interface configuration

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the distribute-list prefix-list command to limit the routes that OSPFv3 installs in the RIB of your router. This command does not affect the information sent to other OSPFv3 routers or the routes that these routers compute and install.


Note

Because the other OSPFv3 routers are not aware of any omissions in the RIB, they may send traffic addressed to the missing prefixes. If no other provision has been made for these prefixes, the packets are dropped.


When this command is specified in router ospfv3 configuration mode, the filter applies to all routes computed by OSPFv3.

When this command is specified in interface configuration mode, the filter applies only to routes that forward outgoing traffic over that interface.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to prevent OSPFv3 from installing any routes that have 2001:e624 as the first 32 bits of the address. OSPFv3 is also prevented from installing routes to 2002::/16 that use GigabitEthernet interface 0/2/0/0 as the next-hop interface:


RP/0/RP0/CPU0:router(config)# ipv6 prefix-list preflist1
RP/0/RP0/CPU0:router(config-ipv6-pfx)# deny 2001:e624::/32 le 128
RP/0/RP0/CPU0:router(config-ipv6-pfx)# permit ::/0 le 128
!
RP/0/RP0/CPU0:router(config)# ipv6 prefix-list preflist2
RP/0/RP0/CPU0:router(config-ipv6-pfx)# deny 2002::/16
RP/0/RP0/CPU0:router(config-ipv6-pfx)# permit ::/0 le 128
!
RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# distribute-list prefix-list preflist1 in
RP/0/RP0/CPU0:router(config-ospfv3)# area 1
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/2/0/0
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# distribute-list prefix-list preflist2 in

distribute-list prefix-list out

To filter the routes redistributed into Open Shortest Path First Version 3 (OSPFv3) from other routing protocols, use the distribute-list prefix-list out command in an appropriate configuration mode. To remove the filter, use the no form of this command.

distribute-list prefix-list prefix-list-name out [protocol [process-id] ]

no distribute-list prefix-list prefix-list-name out [protocol [process-id] ]

Syntax Description

prefix-list-name

IP Version 6 (IPv6) prefix list name. The list defines which IPv6 prefixes are installed in the RIB.

protocol

(Optional) Source protocol from which routes are being redistributed. It can be one of the following keywords: bgp, eigrp, isis, ospfv3, static, and connected.

The static keyword is used to redistribute IPv6 static routes.

The connected keyword refers to routes that are established automatically because IPv6 is enabled on an interface. For routing protocols such as OSPFv3 and Intermediate System-to-Intermediate System (IS-IS), these routes are redistributed as external to the autonomous system.

process-id

(Optional) For the bgp keyword, an autonomous system number has the following ranges:

  • Range for 2-byte Autonomous system numbers (ASNs) is 1 to 65535.
  • Range for 4-byte Autonomous system numbers (ASNs) in asplain format is 1 to 4294967295.
  • Range for 4-byte Autonomous system numbers (ASNs) is asdot format is 1.0 to 65535.65535.

For the eigrp keyword, an autonomous system number.

For the isis keyword, an optional argument that defines a meaningful name for a routing process. You can specify only one IS-IS process for each router. Creating a name for a routing process means that you use names when configuring routing.

For the ospfv3 keyword, an appropriate OSPFv3 process name from which routes are to be redistributed. The value takes the form of a string. A decimal number can be entered, but it is stored internally as a string.

Command Default

All routes from protocols specified in the redistribute (OSPFv3) command are redistributed into OSPFv3.

Command Modes

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Routes may be redistributed into OSPFv3 from several other routing protocols or from other OSPFv3 processes. These routes are then communicated to other OSPFv3 routes through Type 5 (External) or Type 7 not-so-stubby area (NSSA) link-state advertisements (LSAs). Use the distribute-list prefix-list out command to control redistribution by matching redistributed routes against an IPv6 prefix list. Only routes permitted by the prefix list are redistributed into OSPFv3.

Each protocol being redistributed into OSPFv3 can have a separate prefix list. In addition, a prefix list can be defined that applies to all protocols.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to prevent OSPFv3 from redistributing routes that have 2001:e624 as the first 32 bits of the address. In addition, routes with a prefix beginning with 2064 are not redistributed from Border Gateway Protocol (BGP) autonomous system 1, and only those routes are redistributed from BGP autonomous system 5.


  RP/0/RP0/CPU0:router(config)# ipv6 prefix-list p1
  RP/0/RP0/CPU0:router(config-ipv6-pfx)# deny 2001:e624::/32 le 128
  RP/0/RP0/CPU0:router(config-ipv6-pfx)# permit ::/0 le 128
  !
  RP/0/RP0/CPU0:router(config)# ipv6 prefix-list p2
  RP/0/RP0/CPU0:router(config-ipv6-pfx)# deny 2064::/16 le 128
  RP/0/RP0/CPU0:router(config-ipv6-pfx)# permit ::/0 le 128
  !
  RP/0/RP0/CPU0:router(config)# ipv6 prefix-list p3
  RP/0/RP0/CPU0:router(config-ipv6-pfx)# permit 2064::/16 le 128
  !
  RP/0/RP0/CPU0:router(config)# router ospfv3 1
  RP/0/RP0/CPU0:router(config-ospfv3)# redistribute bgp 1
  RP/0/RP0/CPU0:router(config-ospfv3)# redistribute bgp 5
  RP/0/RP0/CPU0:router(config-ospfv3)# distribute-list prefix-list p1 out
  RP/0/RP0/CPU0:router(config-ospfv3)# distribute-list prefix-list p2 out bgp 1
  RP/0/RP0/CPU0:router(config-ospfv3)# distribute-list prefix-list p3 out bgp 5
  
         

encryption

To encrypt and authenticate Open Shortest Path First Version 3 (OSPFv3) packets, use the encryption command in an appropriate configuration mode. To remove the encryption, use the no form of this command.

encryption {disable | ipsec spi spi-value esp {3des | aes [192 | 256] | des | null [clear | password] encrypt-password} [authentication {md5 | sha1} [clear | password] auth-password]}

no encryption

Syntax Description

disable

Disables OSPFv3 packet encryption.

ipsec spi

Specifies IPSec ESP encryption and authentication with the Security Parameter Index (SPI) value.

IPSec supported only for OSPFv3.

spi-value

SPI value. Range is 256 to 4294967295.

esp

Specifies Encryption Service Payload (ESP) encryption parameters.

3des

Specifies the triple DES algorithm.

aes

Specifies the Advanced Encryption Standard (AES) algorithm.

192

(Optional) Specifies the 192-bit AES algorithm

256

(Optional) Specifies the 256-bit AES algorithm

des

Specifies the Data Encryption Standard (DES) algorithm.

null

Specifies no AES algorithm.

md5

Enables Message Digest 5 (MD5) authentication.

sha1

Enables SHA1 authentication.

clear

Specifies that the key be unencrypted.

password

Specifies that the key be encrypted using a two-way algorithm.

encrypt-password

Any contiguous string that can be entered from the keyboard as the encryption password.

auth-password

Any contiguous string that can be entered from the keyboard as the authentication password.

Command Default

No default behavior or values.

Command Modes

Interface configuration

Router OSPFv3  configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the encryption command to encrypt and authenticate OSPFv3 packets.


Note

  • If OSPFv3 is configured along with IPsec authentication, then it is likely that adjacencies may flap on a Route Processor Fail Over (RPFO) even when NSR and/or Graceful Restart is enabled.


Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to encrypt and authenticate OSPFv3 packets:


RP/0/RP0/CPU0:router(config)#router ospfv3 1 
RP/0/RP0/CPU0:router(config-ospfv3)#encryption ipsec spi 256 esp 3des clear

flood-reduction (OSPFv3)

To suppress the unnecessary flooding of link-state advertisements (LSAs) in stable topologies, use the flood-reduction command in an appropriate configuration mode. To disable this feature, use the no form of this command.

flood-reduction [disable]

no flood-reduction

Syntax Description

disable

(Optional) Turns off this functionality at a specific level.

Note 

The disable keyword is not available in router ospfv3 configuration mode.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the flood reduction parameter specified by area.

If this command is not specified in area configuration mode, then the interface adopts the flood reduction parameter specified for the process.

If this command is not specified at any level, then flood reduction is disabled.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

All routers that support Open Shortest Path First Version 3 (OSPFv3) demand circuits are compatible with routers supporting flooding reduction.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to reduce the flooding of unnecessary LSAs for area 0:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/1/0/3
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# flood-reduction

graceful-restart (OSPFv3)

To enable graceful restart, use the graceful-restart command in an appropriate configuration mode. To disable this feature, use the no form of this command.

graceful-restart [helper disable | interval interval | lifetime lifetime]

no graceful-restart [helper disable | interval interval | lifetime lifetime]

Syntax Description

helper disable

(Optional) Disables the routers helper support level.

interval interval

(Optional) Specifies the minimum interval between graceful restarts. Range is 90 to 3600 seconds.

lifetime lifetime

(Optional) Specifies the maximum route lifetime following a restart. Range is 90 to 3600 seconds.

Command Default

No default behavior or values.

Command Modes

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to enable the Graceful Restart feature with a minimum interval between restarts of 300 seconds:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# graceful-restart interval 300

hello-interval (OSPFv3)

To specify the interval between hello packets that Open Shortest Path First Version 3 (OSPFv3) sends on an interface, use the hello-interval command in an appropriate configuration mode. To return to the default time, use the no form of this command.

hello-interval seconds

no hello-interval

Syntax Description

seconds

Interval (in seconds). The value must be the same for all nodes on a specific network.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the hello interval parameter specified by area.

If this command is not specified in area configuration mode, then the interface adopts the hello interval parameter specified for the process.

If this command is not specified at any level, then the hello interval is 10 seconds (broadcast) or 30 seconds (non-broadcast).

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Virtual-link configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

The hello interval value is advertised in the hello packets. The shorter the hello interval, the faster topological changes are detected, but more routing traffic ensues. This value must be the same for all routers and access servers on a specific network.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to set the interval between hello packets to 15 seconds on GigabitEthernet interface 0/3/0/2:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/3/0/2
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# hello-interval 15

 

instance (OSPFv3)

To set the 8-bit instance ID used in Open Shortest Path First Version 3 (OSPFv3) packets sent on an interface, use the instance command in an appropriate configuration mode. To remove the instance ID, use the no form of this command.

instance instance-id

no instance instance-id

Syntax Description

instance-id

Instance identifier sent in OSPFv3 packets. Range is 0 to 255. The same value must be used by all the communicating OSPFv3 routers on a link.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the instance parameter specified by the area.

If this command is not specified in area configuration mode, then the interface adopts the instance parameter specified for the process.

If this command is not specified at any level, then the instance is 0.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

The OSPFv3 routing protocol allows multiple unrelated OSPFv3 processes to share a link by using an 8-bit “instance” value to demultiplex the protocol packets. Each OSPFv3 process sets its configured instance value in the OSPFv3 packets that it sends, and ignores received packets with instance values from other OSPFv3 processes.


Note

The instance-id argument should not be confused with the process-name argument that is specified by the router ospfv3 command. The former is an 8-bit integer that is sent to other routers as part of the OSPFv3 protocol, and the latter is a 1- to 40-character ASCII string that is significant only within a given router. The instance ID value is also unrelated to the router ID that is specified by the router-id command, which is a 32-bit integer value that uniquely identifies a router within an OSPFv3 routing domain.


Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to set the instance value for GigabitEthernet interface 0/3/0/1 to 42:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/3/0/1
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# instance 42

 

interface (OSPFv3)

To define the interfaces on which Open Shortest Path First Version 3 (OSPFv3) runs, use the interface command in an appropriate configuration mode. To disable OSPFv3 routing for an interface, use the no form of this command.

interface type interface-path-id

no interface type interface-path-id

Syntax Description

type

Interface type. For more information, use the question mark (?) online help function.

interface-path-id

Physical interface or virtual interface.

Note 

Use the show interfaces command to see a list of all interfaces currently configured on the router.

For more information about the syntax for the router, use the question mark (?) online help function.

Command Default

An interface is not defined.

Command Modes

Area configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the interface command to associate a specific interface with an OSPFv3 area. The interface remains associated with the area even when the IPv6 address of the interface changes.

Similar to IPv4 address behavior for the interface command, all configured IPv6 addresses are advertised on an interface after the interface is associated to the OSPF routing process. The only difference is, IPv6 addresses can have multiple primary addresses.

This command places the router in interface configuration mode (prompt: config-router-ar-if), from which you can configure interface-specific settings. Commands configured under this mode (such as the cost command) are automatically bound to that interface.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to define two interfaces that belong to area 1. The cost value for packets on GigabitEthernet interface 0/3/0/1 is set at 40; the cost value for GigabitEthernet interface 0/3/0/2 is 65:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 1
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/3/0/1
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# cost 40
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# exit
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/3/0/2
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# cost 65
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# exit

log adjacency changes (OSPFv3)

To change the default syslog messages for Open Shortest Path First Version 3 (OSPFv3) neighbor state changes, use the log adjacency changes command in an appropriate configuration mode. To suppress all adjacency change messages, use the disable keyword.

log adjacency changes [detail | disable]

Syntax Description

detail

(Optional) Provides all (DOWN, INIT, 2WAY, EXSTART, EXCHANGE, LOADING, FULL) adjacency state changes.

disable

(Optional) Disables the neighbor state change messages.

Command Default

Neighbor state change messages are enabled.

Command Modes

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

By default, you are notified of OSPFv3 neighbor changes without explicitly configuring the log adjacency changes command. The syslog messages that are sent provide a high-level view of changes to the state of the OSPFv3 peer relationship.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to disable neighbor state change messages:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# log adjacency changes disable

The following example shows how to re-enable syslog messages for any OSPFv3 neighbor state changes:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# log adjacency changes

maximum interfaces (OSPFv3)

To control the maximum number of interfaces that can be configured under an Open Shortest Path First Version 3 (OSPFv3) process, use the maximum interfaces command in an appropriate configuration mode. To remove the maximum interfaces command from the configuration file and restore the system to its default condition with respect to the routing protocol, use the no form of this command.

maximum interfaces number-interfaces

no maximum interfaces

Syntax Description

number-interfaces

Maximum number of interfaces that can be configured for this OSPFv3 process.Range is 1 to 4294967295.

Command Default

If the command is not specified, the default is 1024.

Command Modes

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Task ID

Task ID

Operations

ospf

read, write

Examples

This example shows how to allow a maximum of 1500 interfaces in an OSPFv3 process:

RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# maximum interfaces 1500

maximum paths (OSPFv3)

To control the maximum number of parallel routes that the Open Shortest Path First Version 3 (OSPFv3) can support, use the maximum paths command in an appropriate configuration mode. To remove the maximum paths command from the configuration file and restore the system to its default condition with respect to the routing protocol, use the no form of this command.

maximum paths maximum-routes-number

no maximum paths

Syntax Description

maximum-routes-number

Maximum number of parallel routes that OSPFv3 can install in a routing table. Range is 1 to 32.
Note 

The maximum number of paths that can be configured is 32.

Command Default

32 paths

Command Modes

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

When the maximum number of parallel routes is reduced, all existing paths are pruned and paths reinstalled at the new maximum number. During this route-reduction period, you may experience some packet loss for a few seconds. This may impact route traffic.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to allow a maximum of two paths to a destination:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# maximum paths 2

maximum redistributed-prefixes (OSPFv3)

To limit the number of prefixes redistributed into Open Shortest Path First Version 3 (OSPFv3) or to generate a warning when the number of prefixes redistributed into OSPFv3 reaches a maximum, use the maximum redistributed-prefixes command in an appropriate configuration mode. To remove the values, use the no form of this command.

maximum redistributed-prefixes limit [threshold] [warning-only]

no maximum redistributed-prefixes

Syntax Description

limit

Maximum number of IP Version 6 (IPv6) prefixes that are allowed to be redistributed into OSPFv3, or, if the warning-only keyword is present, sets the number of prefixes allowed to be redistributed into OSPFv3 before the system logs a warning message. Range is 1 to 4294967295.

Note 

If the warning-only keyword is also configured, this value does not limit redistribution; it is simply the number of redistributed prefixes that, when reached, causes a warning message to be logged.

threshold

(Optional) Percentage of the value set for the maximum number of redistributed prefixes that, when reached, causes a warning message to be logged.

warning-only

(Optional) Causes a warning to be logged when the number of routes defined by the limit argument have been redistributed. Additional redistribution is not prevented.

Command Default

limit : 10240

threshold : 75 percent

Command Modes

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

If someone mistakenly injects a large number of IPv6 routes into OSPFv3, perhaps by redistributing Border Gateway Protocol (BGP) into OSPFv3, the network can be severely flooded. Limiting the number of redistributed routes prevents this potential problem.

When the maximum redistributed-prefixes command is configured, if the number of redistributed routes reaches the maximum value configured, no more routes are redistributed (unless the warning-only keyword is configured).

The redistribution limit applies only to external IPv6 prefixes. Default routes and summarized routes are not limited.

The limit is tracked separately for each not-so-stubby-area (NSSA) because redistribution to NSSAs is done independently for each NSSA and independently of all other regular areas.

Select a maximum value based on your knowledge of how many prefixes are redistributed on the router to the OSPFv3 process.

Task ID

Task ID

Operations

ospf

read, write

Examples

This example shows how to set a maximum of 2000 prefixes that can be redistributed into OSPFv3 process 1. If the number of prefixes redistributed reaches 75 percent of 2000 (1500 prefixes), a warning message is logged. Another warning is logged if the limit is reached and no more routes are redistributed.


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# redistribute bgp 2406
RP/0/RP0/CPU0:router(config-ospfv3)# maximum redistributed-prefixes 2000

mtu-ignore (OSPFv3)

To prevent the Open Shortest Path First Version 3 (OSPFv3) router process from checking whether neighbors are using the same maximum transmission unit (MTU) on a common interface when exchanging database descriptor (DBD) packets, use the mtu-ignore command in an appropriate configuration mode. To return to the default state, use the no form of this command.

mtu-ignore [disable]

no mtu-ignore

Syntax Description

disable

(Optional) Disables the attribute in instances in which it is specified at a higher level in the configuration.

Note 

The disable keyword is not available in router ospfv3 configuration mode.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the MTU ignore parameter specified by the area.

If this command is not specified in area configuration mode, then the interface adopts the MTU ignore parameter specified for the process.

If this command is not specified at any level, then OSPFv3 checks the MTU received from neighbors when exchanging DBD packets.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the mtu-ignore command to check whether OSPFv3 neighbors are using the same MTU on a common interface. This check is performed when neighbors exchange DBD packets. If the receiving MTU in the DBD packet is higher than the MTU configured on the incoming interface, OSPF adjacency is not established.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to disable MTU mismatch detection on received DBD packets on GigabitEthernet interface 0/1/0/3:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/1/0/3
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# mtu-ignore

neighbor (OSPFv3)

To configure Open Shortest Path First Version 3 (OSPFv3) routers interconnecting to nonbroadcast networks, use the neighbor command in interface configuration mode. To remove a configuration, use the no form of this command.

neighbor ipv6-address [priority number] [poll-interval seconds] [cost number] [database-filter all out]

no neighbor ipv6-address [priority number] [poll-interval seconds] [cost number] [database-filter all out]

Syntax Description

ipv6-address

Link- local IP Version 6 (IPv6) address of the neighbor. This argument must be in the form documented in RFC 2373, in which the address is specified in hexadecimal using 16-bit values between colons.

priority number

(Optional) Specifies an 8-bit number indicating the router priority value of the nonbroadcast neighbor associated with the IP address specified. The priority keyword does not apply to point-to-multipoint interfaces.

poll-interval seconds

(Optional) Specifies an unsigned integer value (in seconds) reflecting the poll interval. RFC 1247 recommends that this value be much larger than the hello interval. The poll-interval keyword does not apply to point-to-multipoint interfaces.

cost number

(Optional) Assigns a cost to the neighbor, in the form of an integer from 1 to 65535. Neighbors with no specific cost configured assume the cost of the interface, based on the cost command. On point-to-multipoint interfaces, cost number is the only keyword and argument combination that works. The cost keyword does not apply to nonbroadcast multiaccess (NBMA) networks.

database-filter all out

(Optional) Filters outgoing link-state advertisements (LSAs) to an OSPFv3 neighbor.

Command Default

No configuration is specified.

priority number : 0

poll-interval seconds : 120 seconds (2 minutes)

Command Modes

Interface configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

One neighbor entry must be included in the software configuration for each known nonbroadcast network neighbor. The neighbor address must be the IPv6 link-local address of the interface.

If a neighboring router has become inactive (hello packets have not been seen for the router dead interval period), it may still be necessary to send hello packets to the dead neighbor. These hello packets are sent at a reduced rate called the poll interval.

When the router starts up, it sends only hello packets to those routers with nonzero priority; that is, routers that are eligible to become designated routers (DRs) and backup designated routers (BDRs). After the DR and BDR are selected, the DR and BDR then start sending hello packets to all neighbors to form adjacencies.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to declare a router at address fe80::3203:a0ff:fe9d:f3fe on a nonbroadcast network:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/2/0/0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# network non-broadcast
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# neighbor fe80::3203:a0ff:fe9d:f3fe

network (OSPFv3)

To configure the Open Shortest Path First Version 3 (OSPFv3) network type to a type other than the default for a given medium, use the network command in an appropriate configuration mode. To return to the default value, use the no form of this command.

network {broadcast | non-broadcast | {point-to-multipoint [non-broadcast] | point-to-point}}

no network

Syntax Description

broadcast

Sets the network type to broadcast.

non-broadcast

Sets the network type to nonbroadcast multiaccess (NBMA).

point-to-multipoint

Sets the network type to point-to-multipoint.

[ non-broadcast ]

(Optional) Sets the point-to-multipoint network to be nonbroadcast. If you use the non-broadcast keyword, the neighbor command is required.

point-to-point

Sets the network type to point-to-point.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the network parameter specified by the area.

If this command is not specified in area configuration mode, then the interface adopts the network parameter specified for the process.

If this command is not specified at any level, then the OSPFv3 network type is the default of the given medium.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Most times, it is assumed that when you configure NBMA networks as either broadcast or nonbroadcast, there are virtual circuits from every router to every router or fully meshed network. However, there are other configurations where this assumption is not true; for example, a partially meshed network. In these cases, you can configure the OSPFv3 network type as a point-to-multipoint network. Routing between two routers that are not directly connected goes through the router that has virtual circuits to both routers. You need not configure neighbors when using this command.

If the network command is issued on an interface that does not allow it, this command is ignored.

OSPFv3 has two features related to point-to-multipoint networks. One feature applies to broadcast networks and the other feature applies to nonbroadcast networks:

  • On point-to-multipoint, broadcast networks, you can use the neighbor command, and you must specify a cost to that neighbor.
  • On point-to-multipoint, nonbroadcast networks, you must use the neighbor command to identify neighbors. Assigning a cost to a neighbor is optional.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to configure an Ethernet interface as point-to-point:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface TenGigE0/1/0/3
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# network point-to-point

nssa (OSPFv3)

To configure an area as a not-so-stubby area (NSSA), use the nssa command in area configuration mode. To remove the NSSA distinction from the area, use the no form of this command.

nssa [no-redistribution] [default-information-originate [metric metric-value | metric-type type-value]] [no-summary]

no nssa

Syntax Description

no-redistribution

(Optional) Imports routes into the normal areas, but not into the NSSA area, by the redistribute command when the router is an NSSA area border router (ABR).

default-information-originate

(Optional) Generates a Type 7 default into the NSSA area. This keyword takes effect only on an NSSA ABR or NSSA autonomous system boundary router (ASBR).

metric metric-value

(Optional) Specifies a metric used for generating the default route. If you do not specify a default route metric value using the nssa and defaultmetric commands, the default metric value is 10. The value used is specific to the protocol.

metric-type type-value

(Optional) Specifies an external link type associated with the default route advertised into the Open Shortest Path First Version 3 (OSPFv3) routing domain. It can be one of the following values:

1—Type 1 external route

2—Type 2 external route

no-summary

(Optional) Prevents an (ABR) from sending summary link advertisements into the NSSA area.

Command Default

No NSSA area is defined.

If you do not specify a value using the default-metric command, the default metric value is 10.

The default type-value is Type 2 external route.

Command Modes

Area configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

A default route need not be defined in an NSSA ABR when the nssa command is configured. However, if this command is configured on an NSSA ASBR, then a default route must be defined.


Note

NSSA cannot be configured for area 0 (backbone area).


Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to configure area 1 as an NSSA area:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# router-id 10.18.1.1
RP/0/RP0/CPU0:router(config-ospfv3)# area 1
RP/0/RP0/CPU0:router(config-ospfv3-ar)# nssa

nsr (OSPFv3)

To configure nonstop routing (NSR) for the Open Shortest Path First Version 3 (OSPFv3) protocol, use the nsr command in OSPFv3 router configuration mode. To remove this command from the configuration file, use the no form of this command.

nsr[ disable]

no nsr[ disable]

Syntax Description

This command has no keywords or arguments.

Command Default

NSR is enabled.

Command Modes

OSPFv3 Router configuration

Command History

Release Modification
Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

OSPFv3 NSR will be disabled at process startup, by default. When enabled, this state is remembered in the active process, and, is regardless of the presence and pairing state of a standby RP, as well as the state of the standby process.

NSR can be enabled for multiple OSPFv3 processes. The maximum number of processes on which NSR can be enabled is four.

Task ID

Task ID Operation

ospf

read, write

Examples

This example shows how to configure NSR for OSPFv3 process 211:


RP/0/RP0/CPU0:router#configure
RP/0/RP0/CPU0:router(config)#router ospfv3 211
RP/0/RP0/CPU0:router(config-ospfv3)#nsr

Examples

This example shows how to configure NSR for OSPFv3 process 211:


RP/0/RP0/CPU0:router#configure
RP/0/RP0/CPU0:router(config)#router ospfv3 211
RP/0/RP0/CPU0:router(config-ospfv3)#nsr disable

ospfv3 name-lookup

To configure Open Shortest Path First Version 3 (OSPFv3) to look up Domain Name System (DNS) names, use the ospfv3 name-lookup command in XR Config mode. To disable this function, use the no form of this command.

ospfv3 name-lookup

no ospfv3 name-lookup

Syntax Description

This command has no arguments or keywords.

Command Default

Routers are displayed by router ID or neighbor ID.

Command Modes

XR Config

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the ospfv3 name-lookup command to simplify the task of searching for a router. Routers are displayed by name rather than by router ID or neighbor ID.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to configure OSPFv3 to look up DNS names for use in all OSPFv3 show command displays:


RP/0/RP0/CPU0:router(config)# ospfv3 name-lookup

packet-size (OSPFv3)

To configure the size of Open Shortest Path First Version 3 (OSPFv3) packets up to the size specified by the maximum transmission unit (MTU), use the packet-size command in an appropriate configuration mode. To disable this function and reestablish the default packet size, use the no form of this command.

packet-size bytes

no packet-size

Syntax Description

bytes

Size in bytes. Range is 256 to 10000 bytes.

Command Default

If not specified, the default packet size is 1500 bytes.

Command Modes

Router OSPFv3 configuration

Area configuration

Interface configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the packet-size command to customize the size of OSPFv3 packets. The OSPFv3 protocol compares the packet size and the MTU size and uses the lower packet size value.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to configure the packet size:


RP/0/RP0/CPU0:routerconfigure
RP/0/RP0/CPU0:router(config)# router ospf osp3
RP/0/RP0/CPU0:router(config-ospfv3)# packet-size 3500

passive (OSPFv3)

To suppress the sending of Open Shortest Path First Version 3 (OSPFv3) packets on an interface, use the passive command in an appropriate configuration mode. To remove the passive configuration, use the no form of this command.

passive [disable]

no passive

Syntax Description

disable

(Optional) Sends OSPFv3 updates.

Note 

The disable keyword is not available in router ospfv3 configuration mode.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the passive parameter specified by the area.

If this command is not specified in area configuration mode, then the interface adopts the passive parameter specified for the process.

If this command is not specified at any level, then the passive parameter is disabled and OSPFv3 updates are sent on the interface.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

OSPF routing information is neither sent nor received through the specified router interface. The specified interface address appears as a stub network in the OSPF domain.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows that OSPFv3 updates run over GigabitEthernet interface 0/3/0/0, 0/2/0/0, and 0/2/0/2. All other interfaces suppress sending OSPFv3 updates because they are in passive mode.


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# router-id 10.0.0.206
RP/0/RP0/CPU0:router(config-ospfv3)# passive 
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/3/0/0
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# passive disable
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# exit
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/3/0/1
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# exit
RP/0/RP0/CPU0:router(config-ospfv3-ar)# exit
RP/0/RP0/CPU0:router(config-ospfv3)# area 1
RP/0/RP0/CPU0:router(config-ospfv3-ar)# passive disable
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/2/0/0
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# exit
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/2/0/1
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# passive 
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# exit
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/2/0/2
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# exit

priority (OSPFv3)

To set the router priority for an interface, which helps determine the designated router for an Open Shortest Path First Version 3 (OSPFv3) link, use the priority command in an appropriate configuration mode. To return to the default value, use the no form of this command.

priority value

no priority

Syntax Description

value

8-bit unsigned integer indicating the router priority value. Range is 0 to 255.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the priority parameter specified by the area.

If this command is not specified in area configuration mode, then the interface adopts the priority parameter specified by the process.

If this command is not specified at any level, then the default priority is 1.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

When two routers attached to a network both attempt to become the designated router, the one with the higher router priority takes precedence. If there is a tie, the router with the higher router ID takes precedence. A router with a router priority set to zero is ineligible to become the designated router or backup designated router. Router priority is configured only for interfaces to broadcast and nonbroadcast multiaccess (NBMA) networks.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to set the router priority value to 4 on GigabitEthernet interface 0/1/0/1:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/1/0/1
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# priority 4

protocol shutdown (OSPFv3)

To disable an instance of the Open Shortest Path First protocol, version 3 (OSPFv3), so that it cannot form an adjacency on any interface, use the protocol shutdown command in the ospfv3 configuration mode. To re-enable the OSPF protocol, use the no form of this command.

protocol shutdown

no protocol shutdown

Command Default

None

Command Modes

ospfv3 configuration

Command History

Release

Modification

Release 5.2.1

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the protocol shutdown command to disable the OSPFv3 protocol for a specific routing instance without removing any existing OSPF configuration parameters.

The OSPFv3 protocol continues to run on the router and you can use the current OSPFv3 configuration, but OSPFv3 does not form any adjacencies on any interface.

This command is similar to performing the no router ospf command.

Task ID

Task ID

Operations

ospf

read, write

Examples

This example shows how to disable the OSPFv3:

  RP/0/RP0/CPU0:routerconfigure
  RP/0/RP0/CPU0:router(config)# router ospfv3 100
  RP/0/RP0/CPU0:router(config-ospfv3)# protocol shutdown

range (OSPFv3)

To consolidate and summarize routes at an area boundary for Open Shortest Path First Version 3 (OSPFv3), use the range command in area configuration mode. To restore the default values, use the no form of this command.

range ipv6-prefix/ prefix-length [advertise | not-advertise] [cost number]

no range ipv6-prefix/ prefix-length [advertise | not-advertise] [cost number]

Syntax Description

ipv6-prefix

Summary prefix designated for a range of IP Version 6 (IPv6) prefixes.

This argument must be in the form documented in RFC 2373, in which the address is specified in hexadecimal using 16-bit values between colons.

/ prefix-length

Length of the IPv6 prefix. A decimal value that indicates how many of the high-order contiguous bits of the address compose the prefix (the network portion of the address). A slash must precede the decimal value.

advertise

(Optional) Sets the address range status to advertise and generates a Type 3 summary link-state advertisement (LSA).

not-advertise

(Optional) Sets the address range status to DoNotAdvertise. The Type 3 summary LSA is suppressed and the component networks remain hidden from other networks.

cost number

(Optional) Specifies a cost for the range. Range is 1 to 16777214.

Command Default

Routes are not consolidated and summarized for an area.

Command Modes

Area configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Use the range command only with Area Border Routers (ABRs). It is used to consolidate or summarize routes for an area. The result is that a single summary route is advertised to other areas by the ABR. Routing information is condensed at area boundaries. External to the area, a single route is advertised for each address range. This process is called route summarization .

You can use the range command to configure multiple ranges. Thus, OSPFv3 can summarize addresses for many different sets of address ranges.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to specify one summary route to be advertised by the ABR to other areas for all IPv6 prefixes within the range defined by summary prefix 4004:f000::/32:


RP/0/RP0/CPU0:router(config)# router ospfv3 201
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# range 4004:f000::/32

redistribute (OSPFv3)

To redistribute routes from one routing domain into Open Shortest Path First Version 3 (OSPFv3), use the redistribute command in an appropriate configuration mode. To remove the redistribute command from the configuration file and restore the system to its default condition in which the software does not redistribute routes, use the no form of this command.

Border Gateway Protocol (BGP)

redistribute bgp process-id [metric metric-value] [metric-type {1 | 2}] [policy policy-name] [tag tag-value]

no redistribute bgp process-id [metric metric-value] [metric-type {1 | 2}] [policy policy-name] [tag tag-value]

Local Interface Routes

redistribute connected [metric metric-value] [metric-type {1 | 2}] [policy policy-name] [tag tag-value]

no redistribute connected [metric metric-value] [metric-type {1 | 2}] [policy policy-name] [tag tag-value]

Enhanced Interior Gateway Routing Protocol (EIGRP)

redistribute eigrp process-id [match {external [1 | 2] | internal}] [metric metric-value] [metric-type {1 | 2}] [route-policy policy-name] [tag tag-value]

no redistribute eigrp process-id [match {external [1 | 2] | internal}] [metric metric-value] [metric-type {1 | 2}] [route-policy policy-name] [tag tag-value]

Intermediate System-to-Intermediate System (IS-IS)

redistribute isis process-id [level-1 | level-2 | level-1-2] [metric metric-value] [metric-type {1 | 2}] [policy policy-name] [tag tag-value]

no redistribute isis process-id [level-1 | level-2 | level-1-2] [metric metric-value] [metric-type {1 | 2}] [policy policy-name] [tag tag-value]

Open Shortest Path First Version 3 (OSPFv3)

redistribute ospfv3 process-id match {external | 1 | 2 | internal | nssa-external | [1 | 2]} [metric metric-value] [metric-type {1 | 2}] [policy policy-name] [tag tag-value]

no redistribute ospfv3 process-id [match | {external | internal | nssa-external}] [metric metric-value] [metric-type {1 | 2}] [policy policy-name] [tag tag-value]

Static

redistribute static [metric metric-value] [metric-type {1 | 2}] [policy policy-name] [tag tag-value]

no redistribute static [metric metric-value] [metric-type {1 | 2}] [policy policy-name] [tag tag-value]

Syntax Description

bgp

Distributes routes from the BGP protocol.

process-id

For the bgp keyword, an autonomous system number has the following ranges:

  • Range for 2-byte Autonomous system numbers (ASNs) is 1 to 65535.
  • Range for 4-byte Autonomous system numbers (ASNs) in asplain format is 1 to 4294967295.
  • Range for 4-byte Autonomous system numbers (ASNs) is asdot format is 1.0 to 65535.65535.

For the isis keyword, an IS-IS instance name from which routes are to be redistributed. The value takes the form of a string. A decimal number can be entered, but it is stored internally as a string.

For the ospf keyword, an OSPF instance name from which routes are to be redistributed. The value takes the form of a string. A decimal number can be entered, but it is stored internally as a string.

metric metric-value

(Optional) Specifies the metric used for the redistributed route. Range is 1 to 16777214. Use a value consistent with the destination protocol.

metric-type { 1 | 2 }

(Optional) Specifies the external link type associated with the route advertised into the OSPF routing domain. It can be one of two values:

  • 1—Type 1 external route
  • 2—Type 2 external route

If no metric-type is specified, the default is Type 2 external routes.

tag t ag-value

(Optional) Specifies the 32-bit dotted-decimal value attached to each external route. This value is not used by the OSPF protocol itself, but is carried in the External LSAs. Range is 0 to 4294967295.

policy policy-name

(Optional) Specifies the identifier of a configured policy. A policy is used to filter the importation of routes from this source routing protocol to OSPF.

connected

Distributes routes that are established automatically by virtue of having enabled IP on an interface.

eigrp

Distributes routes from the EIGRP protocol.

isis

Distributes routes from the IS-IS protocol.

level-1

(Optional) Redistributes Level 1 routes into other IP routing protocols independently.

level-1- 2

(Optional) Redistributes both Level 1 and Level 2 routes into other IP routing protocols.

level-2

(Optional) Redistributes Level 2 routes into other IP routing protocols independently.

ospf

Distributes routes from the OSPF protocol.

match { internal | external [ 1 | 2 ] | nssa-external [ 1 | 2 ]}

(Optional) Specifies the criteria by which OSPF routes are redistributed into other routing domains. It can be one or more of the following:

  • internal —Routes that are internal to a specific autonomous system (intra- and inter-area OSPF routes).
  • external [ 1 | 2 ]—Routes that are external to the autonomous system, but are imported into OSPF as Type 1 or Type 2 external routes.
  • nssa-external [ 1 | 2 ]—Routes that are external to the autonomous system, but are imported into OSPF as Type 1 or Type 2 not-so-stubby area (NSSA) external routes.

For the external and nssa-external options, if a type is not specified, then both Type 1 and Type 2 are assumed.

If no match is specified, the default is no filtering.

static

Redistributes IP static routes.

Command Default

Route redistribution is disabled.

metric metric-value: Default is 20 for routes from all protocols except BGP routes, in which the default is 1.

metric-type type-value : Type 2 external route

All routes from the OSPFv3 routing protocol are redistributed.

tag tag-value : If no value is specified, the remote autonomous system number is used for routes from Border Gateway Protocol (BGP); for other protocols, the default is 0.

Command Modes

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.


Note

When redistributing routes (into OSPF) using both command keywords for setting or matching of attributes and a route policy, the routes are run through the route policy first, followed by the keyword matching and setting.


Disabling or changing the arguments of any keyword does not affect the state of other keywords.

In general, route redistribution from Level 1 to Level 2 is automatic. You might want to use this command to better control which Level 1 routes can be redistributed into Level 2.

The redistibution of Level 2 routes into Level 1 is called route leaking. Route leaking is disabled by default. That is, Level 2 routes are not automatically included in Level 1 link-state protocols. If you want to leak Level 2 routes into Level 1, you must enable that behavior by using this command.

Redistribution from Level 1 into Level 1 and from Level 2 into Level 2 is not allowed.

A router receiving a link-state packet with an internal metric considers the cost of the route from itself to the redistributing router plus the advertised cost to reach the destination. An external metric considers only the advertised metric to reach the destination.

Redistributed routing information should always be filtered by the distribute-list prefix-list out command. Use of this command ensures that only those routes intended by the administrator are passed along to the receiving routing protocol.

OSPFv3 Considerations

Whenever you use the redistribute or the default-information command to redistribute routes into an OSPFv3 routing domain, the router automatically becomes an ASBR. However, an ASBR does not, by default, generate a default route into the OSPFv3 routing domain.

When routes are redistributed between OSPFv3 processes, no OSPFv3 metrics are preserved.

When routes are redistributed into OSPF and no metric is specified with the metric keyword, OSPF uses 20 as the default metric for routes from all protocols except BGP routes, which get a metric of 1. Furthermore, when the router redistributes from one OSPFv3 process to another OSPFv3 process on the same router, and if no default metric is specified, the metrics in one process are carried to the redistributing process.

BGP Considerations

The only connected routes affected by this command are the routes not specified by the network (BGP) command.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to cause static routes to be redistributed into an OSPFv3 domain:


RP/0/RP0/CPU0:router(config)# router ospfv3 109
RP/0/RP0/CPU0:router(config-ospfv3)# redistribute isis level-1

retransmit-interval (OSPFv3)

To specify the time between link-state advertisement (LSA) retransmissions for adjacencies belonging to the Open Shortest Path First Version 3 (OSPFv3) interface, use the retransmit-interval command in an appropriate configuration mode. To return to the default value, use the no form of this command.

retransmit-interval seconds

no retransmit-interval

Syntax Description

seconds

Time (in seconds) between retransmissions. It must be greater than the expected round-trip delay between any two routers on the attached network. Range is 1 to 65535 seconds.

Command Default

If this command is not specified in interface configuration mode, then the interface adopts the retransmit interval parameter specified by the area.

If this command is not specified in area configuration mode, then the interface adopts the retransmit interval parameter specified by the process.

If this command is not specified at any level, then the default retransmit interval is 5 seconds.

Command Modes

Interface configuration

Area configuration

Router OSPFv3 configuration

Virtual-link configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

When a router sends an LSA to its neighbor, it keeps the LSA until it receives the acknowledgment message. If the router receives no acknowledgment, it resends the LSA.

The setting of this parameter should be conservative, or needless retransmission results. The value should be larger for serial lines and virtual links.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to set the retransmit interval value to 8 seconds while in interface configuration mode:


RP/0/RP0/CPU0:router(config)# router ospfv3 1
RP/0/RP0/CPU0:router(config-ospfv3)# area 0
RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface GigabitEthernet 0/2/0/0
RP/0/RP0/CPU0:router(config-ospfv3-ar-if)# retransmit-interval 8

router-id (OSPFv3)

To configure a router ID for the Open Shortest Path First Version 3 (OSPFv3) routing process, use the router-id command in an appropriate configuration mode. To cause the software to use the default method of determining the router ID, use the no form of this command after clearing or restarting the OSPF process.

router-id router-id

no router-id router-id

Syntax Description

router-id

32-bit router ID value specified in four-part, dotted-decimal notation.

Command Default

If this command is not configured, the router ID is the highest IP address for an interface on the router, with any loopback interface taking precedence.

Command Modes

Router OSPFv3 configuration

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

We recommend that you use the router-id command to explicitly specify a unique 32-bit numeric value for the router ID. This configuration ensures that OSPFv3 can function regardless of the interface address configuration. Clear the OSPF process using the clear ospf process command or restart the OSPF process for the no router-id command to take effect.

In router OSPFv3 configuration mode, OSPF attempts to obtain a router ID in the following ways (in order of preference):

  1. By default, when the OSPF process initializes, it checks if there is a router-id in the checkpointing database.
  2. The 32-bit numeric value specified by the OSPF router-id command in router configuration mode. (This value can be any 32-bit value. It is not restricted to the IPv4 addresses assigned to interfaces on this router, and need not be a routable IPv4 address.)
  3. A global router ID provided by the system (possibly, the first loopback address found at the boot time.

If the OSPFv3 process cannot obtain a router ID from any of these sources, the router issues the following error message:


  %OSPFv3-4-NORTRID : OSPFv3 process 1 cannot run - configure a router ID for this process

At this point, OSPFv3 is effectively passive on all its interfaces. To run OSPFv3, make a router ID available by one of the methods described.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to assign the IP address of 10.0.0.10 to the OSPFv3 process 109:


RP/0/RP0/CPU0:router(config)# router ospfv3 109
RP/0/RP0/CPU0:router(config-ospfv3)# router-id 10.0.0.10

router ospfv3

To configure an Open Shortest Path First Version 3 (OSPFv3) routing process, use the router ospfv3 command in XR Config mode. To terminate an OSPFv3 routing process, use the no form of this command.

router ospfv3 process-name

no router ospfv3 process-name

Syntax Description

process-name

Name that uniquely identifies an OSPFv3 routing process. The process name is any alphanumeric string no longer than 40 characters.

Command Default

No OSPFv3 routing process is defined.

Command Modes

XR Config

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

You can specify multiple OSPFv3 routing processes in each router. Up to 10 processes can be configured. The recommendation is not to exceed 4 OSPFv3 processes.

Task ID

Task ID

Operations

ospf

read, write

Examples

The following example shows how to instantiate an OSPFv3 routing process with a process name of 1:


RP/0/RP0/CPU0:router(config)# router ospfv3 1

show ospfv3

To display general information about Open Shortest Path First Version 3 (OSPFv3) routing processes, use the show ospfv3 command in XR EXEC mode.

show ospfv3 [process-name]

Syntax Description

process-name

(Optional) Name that uniquely identifies an OSPFv3 routing process. The process name is defined by the router ospfv3 command. If this argument is included, only information for the specified routing process is displayed.

Command Default

None

Command Modes

XR EXEC

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Release 5.2.1

The output of the command was modified to include OSPFv3 graceful shutdown status.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Task ID

Task ID

Operations

ospf

read

Examples

The following is a sample output from the show ospfv3 command:


RP/0/RP0/CPU0:router# show ospfv3 1

Routing Process "ospfv3 test" with ID 3.3.3.3
It is an autonomous system boundary router
Redistributing External Routes from,
static
 Maximum number of redistributed prefixes 10240
 Threshold for warning message 75%
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Initial LSA throttle delay 0 msecs
Minimum hold time for LSA throttle 5000 msecs
Maximum wait time for LSA throttle 5000 msecs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Maximum number of configured interfaces 255
Number of external LSA 1. Checksum Sum 0x004468
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 Area BACKBONE(0) (Inactive)
  Number of interfaces in this area is 1
  SPF algorithm executed 1 times
  Number of LSA 3. Checksum Sum 0x018109
  Number of DCbitless LSA 0
  Number of indication LSA 0
  Number of DoNotAge LSA 0
  Flood list length 0

The following is a sample output from the show ospfv3 command when OSPFv3 graceful shutdown has been initiated but not yet completed:

RP/0/RP0/CPU0:router# show ospfv3 1

Routing Process "ospfv3 test" with ID 3.3.3.3 transitioning to OSPFV3_ADMIN_DOWN state

Routing Process "ospfv3 test" with ID 3.3.3.3
It is an autonomous system boundary router
Redistributing External Routes from,
static
 Maximum number of redistributed prefixes 10240
 Threshold for warning message 75%
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Initial LSA throttle delay 0 msecs
Minimum hold time for LSA throttle 5000 msecs
Maximum wait time for LSA throttle 5000 msecs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Maximum number of configured interfaces 255
Number of external LSA 1. Checksum Sum 0x004468
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 Area BACKBONE(0) (Inactive)
  Number of interfaces in this area is 1
  SPF algorithm executed 1 times
  Number of LSA 3. Checksum Sum 0x018109
  Number of DCbitless LSA 0
  Number of indication LSA 0
  Number of DoNotAge LSA 0
  Flood list length 0

The following is a sample output from the show ospfv3 command when OSPFv3 graceful shutdown is completed:

RP/0/RP0/CPU0:router# show ospfv3 1

Routing Process "ospfv3 test" with ID 3.3.3.3 in OSPFV3_ADMIN_DOWN state
%ROUTING-OSPFv3-6-GRACEFUL_SHUTDOWN : Shutdown Complete

Routing Process "ospfv3 test" with ID 3.3.3.3
It is an autonomous system boundary router
Redistributing External Routes from,
static
 Maximum number of redistributed prefixes 10240
 Threshold for warning message 75%
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Initial LSA throttle delay 0 msecs
Minimum hold time for LSA throttle 5000 msecs
Maximum wait time for LSA throttle 5000 msecs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Maximum number of configured interfaces 255
Number of external LSA 1. Checksum Sum 0x004468
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 Area BACKBONE(0) (Inactive)
  Number of interfaces in this area is 1
  SPF algorithm executed 1 times
  Number of LSA 3. Checksum Sum 0x018109
  Number of DCbitless LSA 0
  Number of indication LSA 0
  Number of DoNotAge LSA 0
  Flood list length 0

This table describes the significant fields shown in the display.

Table 1. show ospfv3 Field Descriptions

Field

Description

Routing Process “ospfv3 test” with ID

OSPFv3 process name.

It is

Types are internal, area border, or autonomous system boundary.

Redistributing External Routes from

Lists of redistributed routes, by protocol.

Maximum number of redistributed prefixes

Number of redistributed prefixes

Threshold for warning message

Warning message threshold.

Initial SPF schedule delay

Delay time of SPF calculations.

Minimum hold time between two consecutive SPFs

Minimum hold time between consecutive SPFs.

Maximum wait time between two consecutive SPFs

Maximum wait time between consecutive SPFs.

Initial LSA throttle delay

Delay time of LSA throttle.

Maximum hold time for LSA throttle

After initial throttle delay, the LSA generation is backed off by hold interval.

Maximum wait time for LSA throttle

Maximum throttle delay for LSA generation.

Minimum LSA arrival

Minimum LSA arrival.

LSA group pacing timer

Configured LSA group pacing timer (in seconds).

Interface flood pacing timer

Flooding pacing interval.

Retransmission pacing timer

Retransmission pacing interval.

Maximum number of configured interfaces

Maximum number of configured interfaces.

Number of external LSA

Number of external LSAs.

Number of areas in this router is

Number of areas configured for the router.

Number of interfaces in this area is

Number of interfaces in the area.

SPF algorithm executed n times

Times SPF algorithm was executed.

Number of LSA

Number of LSAs.

Number of DCbitless LSA

Number of DCbitless LSAs.

Number of indication LSA

Number of indication LSAs.

Number of DoNotAge LSA

Number of do-not-age LSAs.

Flood list length

Flood list length.

This is sample output from the show ospfv3 command to verify that (Non-stop routing (NSR) is enabled:

RP/0/RP0/CPU0:router#show ospfv3

 Routing Process "ospfv3 100" with ID 3.3.3.3
 NSR (Non-stop routing) is Enabled   
 It is an area border and autonomous system boundary router
 Redistributing External Routes from,
    bgp 100
    Maximum number of redistributed prefixes 10240
    Threshold for warning message 75%
 Initial SPF schedule delay 5000 msecs
 Minimum hold time between two consecutive SPFs 10000 msecs
 Maximum wait time between two consecutive SPFs 10000 msecs
 Initial LSA throttle delay 0 msecs
 Minimum hold time for LSA throttle 5000 msecs
 Maximum wait time for LSA throttle 5000 msecs
 Minimum LSA arrival 1000 msecs
 LSA group pacing timer 240 secs
 Interface flood pacing timer 33 msecs
 Retransmission pacing timer 66 msecs
 Maximum number of configured interfaces 512
 Maximum number of configured paths 16
 Number of external LSA 0. Checksum Sum 00000000
 Number of areas in this router is 15. 15 normal 0 stub 0 nssa
 Auto cost is enabled. Reference bandwidth 100

show ospfv3 border-routers

To display the internal Open Shortest Path First Version 3 (OSPFv3) routing table entries to an area border router (ABR) and autonomous system boundary router (ASBR), use the show ospfv3 border-routers command in XR EXEC mode.

show ospfv3 [process-name] border-routers [router-id]

Syntax Description

process-name

(Optional) Name that uniquely identifies an OSPFv3 routing process. The process name is defined by the router ospfv3 command. If this argument is included, only information for the specified routing process is displayed.

router-id

(Optional) 32-bit router ID value specified in four-part, dotted-decimal notation.

Command Default

No default behavior or values

Command Modes

XR EXEC

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

Task ID

Task ID

Operations

ospf

read

Examples

The following is sample output from the show ospfv3 border-routers command:


RP/0/RP0/CPU0:router# show ospfv3 border-routers
  
  OSPFv3 1 Internal Routing Table
  Codes: i - Intra-area route, I - Inter-area route
  i 10.0.0.207 [1] via fe80::3034:30ff:fe33:3742, GigabitEthernet 0/3/0/0, ABR/ASBR, Area 1, SPF 3
  i 10.0.0.207 [10] via fe80::204:c0ff:fe22:73fe, Ethernet0/0/0/0, ABR/ASBR, Area 0, SPF 7
  
  

This table describes the significant fields shown in the display.

Table 2. show ospf border-routers Field Descriptions

Field

Description

i

Type of this route; i indicates an intra-area route, I an inter-area route.

10.0.0.207

Router ID of destination.

[1]

Cost of using this route.

fe80::3034:30ff:fe33:3742

Next-hop toward the destination.

GigabitEthernet 0/3/0/0

Packets destined for fe80::3034:30ff:fe33:3742 are sent over GigabitEthernet interface 3/0/0/0.

ABR/ASBR

Router type of the destination; it is either an area border router (ABR) or autonomous system boundary router (ASBR) or both.

Area 1

Area ID of the area from which this route is learned.

SPF 3

Internal number of the shortest path first (SPF) calculation that installs this route.

show ospfv3 database

To display lists of information related to the Open Shortest Path First Version 3 (OSPFv3) database for a specific router, use the show ospfv3 database command in XR EXEC mode.

show ospfv3 [process-name [area-id] ] database

show ospfv3 [process-name [area-id]] database [adv-router [router-id]]

show ospfv3 [process-name [area-id] ] database [database-summary]

show ospfv3 [process-name [area-id] ] database [external] [link-state-id]

show ospfv3 [process-name [area-id] ] database [external] [link-state-id] [internal] [adv-router [router-id] ]

show ospfv3 [process-name [area-id] ] database [external] [link-state-id] [internal] [self-originate]

show ospfv3 [process-name [area-id] ] database [grace] [link-state-id] [adv-router [router-id] ] [internal] [self-originate]

show ospfv3 [process-name [area-id] ] database [inter-area prefix] [link-state-id]

show ospfv3 [process-name [area-id] ] database [link-state-id] [internal] [adv-router [router-id] ]

show ospfv3 [process-name [area-id] ] database [inter-area prefix] [link-state-id] [internal] [self-originate]

show ospfv3 [process-name [area-id] ] database [inter-area router] [link-state-id]

show ospfv3 [process-name [area-id] ] database [inter-area router] [link-state-id] [internal] [adv-router [router-id] ]

show ospfv3 [process-name [area-id] ] database [inter-area router] [link-state-id] [internal] [self-originate]

show ospfv3 [process-name [area-id] ] database [link] [link-state-id]

show ospfv3 [process-name [area-id] ] database [link] [link-state-id] [internal] [adv-router [router-id] ]

show ospfv3 [process-name [area-id] ] database [link] [link-state-id] [internal] [self-originate]

show ospfv3 [process-name [area-id] ] database [network] [link-state-id]

show ospfv3 [process-name [area-id] ] database [network] [link-state-id] [internal] [adv-router [router-id] ]

show ospfv3 [process-name [area-id] ] database [network] [link-state-id] [internal] [self-originate]

show ospfv3 [process-name [area-id] ] database [nssa-external] [link-state-id]

show ospfv3 [process-name [area-id] ] database [nssa-external] [link-state-id] [internal] [adv-router [router-id] ]

show ospfv3 [process-name [area-id] ] database [nssa-external] [link-state-id] [internal] [self-originate]

show ospfv3 [process-name [area-id] ] database [prefix] [ref-lsa] [router | network] [link-state-id] [internal] [adv-router [router-id] ]

show ospfv3 [process-name [area-id] ] database [prefix] [ref-lsa] [router | network] [link-state-id] [internal] [self-originate]

show ospfv3 [process-name [area-id] ] database [prefix] [link-state-id]

show ospfv3 [process-name [area-id] ] database [prefix] [link-state-id] [internal] [adv-router [router-id] ]

show ospfv3 [process-name [area-id] ] database [prefix] [link-state-id] [internal] [self-originate]

show ospfv3 [process-name [area-id] ] database [router] [link-state-id]

show ospfv3 [process-name area-id] database [router] [adv-router [router-id]]

show ospfv3 [process-name [area-id] ] database [router] [link-state-id] [internal] [self-originate]

show ospfv3 [process-name [area-id] ] database [self-originate]

show ospfv3 [process-name [area-id] ] database [unknown [area | as | link]] [link-state-id] [internal] [adv-router [router-id] ] [self-originate]

Syntax Description

process-name

(Optional) Name that uniquely identifies an OSPFv3 routing process. The process name is defined by the router ospfv3 command. If this argument is included, only information for the specified routing process is displayed.

area-id

(Optional) Area number used to define the particular area.

adv-router [ router-id ]

(Optional) Displays all link-state advertisements (LSAs) of the specified router.

asbr-summary

(Optional) Displays information only about the Autonomous System Boundary Router (ASBR) summary LSAs.

database-summary

(Optional) Displays how many of each type of LSA are in the database for each area and the total.

external

(Optional) Displays information only about external LSAs.

grace

(Optional) Displays information about the state for the graceful restart link.

internal

(Optional) Displays information only about internal LSAs.

self-originate

(Optional) Displays only self-originated LSAs (from the local router).

link-state-id

(Optional) LSA ID that uniquely identifies the LSA. For network LSAs and link LSAs, this ID is the interface ID of the link of the router originating the LSA.

inter-area prefix

(Optional) Displays information only about the interarea prefix LSAs.

inter-area router

(Optional) Displays information only about the interarea router LSAs.

link

(Optional) Displays information only about the link LSAs.

network

(Optional) Displays information only about the network LSAs.

nssa-external

(Optional) Displays information only about the not-so-stubby area (NSSA) external LSAs.

prefix

(Optional) Displays information only about the prefix LSAs.

ref-lsa

(Optional) Displays referenced LSA information.

router

(Optional) Displays information only about the router LSAs.

unknown

(Optional) Displays information only about unknown LSAs.

area

(Optional) Displays information only about the area LSAs.

as

(Optional) Displays information only about the autonomous system LSAs.

Command Default

No default behavior or values

Command Modes

XR EXEC

Command History

Release

Modification

Release 5.0.0

This command was introduced.

Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator for assistance.

The various forms of this command deliver information about different OSPFv3 link-state advertisements.

Task ID

Task ID

Operations

ospf

read

Examples

The following is sample output from the show ospfv3 database command with no arguments or keywords:


RP/0/RP0/CPU0:router# show ospfv3 database
  
              OSPFv3 Router with ID (10.0.0.207) (Process ID 1)
  
                  Router Link States (Area 0)
  
  ADV Router      Age         Seq#       Fragment ID  Link count  Bits
  0.0.0.1         163         0x80000039 0            2           None
  10.0.0.206      145         0x80000005 0            1           EB
  10.0.0.207      151         0x80000004 0            1           EB
  192.168.0.0     163         0x80000039 0            1           None
  
                  Net Link States (Area 0)
  
  ADV Router      Age         Seq#       Link ID    Rtr count
  10.0.0.207      152         0x80000002 1          3
  192.168.0.0     163         0x80000039 1          2
  
                  Inter Area Prefix Link States (Area 0)
  
  ADV Router      Age         Seq#       Prefix
  10.0.0.206      195         0x80000001 3002::/56
  10.0.0.207      197         0x80000001 3002::/56
  10.0.0.206      195         0x80000001 3002::206/128
  10.0.0.207      182         0x80000001 3002::206/128
  
                  Inter Area Router Link States (Area 0)
  
  ADV Router      Age         Seq#       Link ID    Dest RtrID
  10.0.0.207      182         0x80000001 167772366  10.0.0.206
  10.0.0.206      182         0x80000001 167772367  10.0.0.207
  
                  Link (Type-8) Link States (Area 0)
  
  ADV Router      Age         Seq#       Link ID    Interface
  0.0.0.1         163         0x80000039 1          Et0/0/0/0
  10.0.0.207      202         0x80000001 1          Et0/0/0/0
  10.0.0.206      200         0x80000001 2          Et0/0/0/0
  
                  Intra Area Prefix Link States (Area 0)
  
  ADV Router      Age         Seq#       Link ID    Ref-lstype  Ref-LSID
  192.168.0.0     163         0x80000039 0          0x2002      1
  192.168.0.0     163         0x80000039 1          0x2001      0
  10.0.0.207      157         0x80000001 1001       0x2002      1

This table describes the significant fields shown in the display.

Table 3. show ospfv3 database Field Descriptions

Field

Description

ADV Router

ID of advertising router.

Age

Link-state age.

Seq#

Link-state sequence number (detects old or duplicate LSAs).

Fragment ID

Router LSA fragment ID.

Link count

Number of links described.

Bits

B indicates that the router is an area border router. E indicates that the router is an autonomous system boundary router. V indicates that the router is a virtual link endpoint.

Link ID

Unique LSA ID.

Rtr count

Number of routers attached to the link.

Prefix

Prefix of the route being described.

Dest RtrID

Router ID of the router being described.

Interface

Link described by the LSA.

Ref-lstype

LSA type of the LSA being referenced.

Ref-LSID

LSA ID of the LSA being referenced.

The following is sample output from the show ospfv3 database command with the external keyword:


RP/0/RP0/CPU0:router# show ospfv3 database external
  
              OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
  
                  Type-5 AS External Link States
  
    LS age: 189
    LS Type: AS External Link
    Link State ID: 0
    Advertising Router: 10.0.0.206
    LS Seq Number: 80000002
    Checksum: 0xa303
    Length: 36
    Prefix Address: 2222::
    Prefix Length: 56, Options: None
    Metric Type: 2 (Larger than any link state path)
    Metric: 20 
    External Route Tag: 0
  
  

This table describes the significant fields shown in the display.

Table 4. show ospfv3 database external Field Descriptions

Field

Description

OSPFv3 Router with ID

Router ID number.

Process ID

OSPFv3 process name.

LS age

Link-state age.

LS Type

Link-state type.

Link State ID

Link-state ID.

Advertising Router

ID of Advertising router.

LS Seq Number

Link-state sequence number (detects old or duplicate LSAs).

Checksum

LS checksum (Fletcher checksum of the complete contents of the LSA).

Length

Length (in bytes) of the LSA.

Prefix Address

IPv6 address prefix of the route being described.

Prefix Length

Length of the IPv6 address prefix.

Metric Type

External type.

Metric

Link-state metric.

External Route Tag

External route tag, a 32-bit field attached to each external route. This tag is not used by the OSPFv3 protocol itself.

The following is sample output from the show ospfv3 database command with the inter-area prefix keyword:


RP/0/RP0/CPU0:router# show ospfv3 database inter-area prefix
  
              OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
  
                  Inter Area Prefix Link States (Area 0)
  
    LS age: 715
    LS Type: Inter Area Prefix Links
    Link State ID: 0
    Advertising Router: 10.0.0.206
    LS Seq Number: 80000002
    Checksum: 0x3cb5
    Length: 36
    Metric: 1 
    Prefix Address: 3002::
    Prefix Length: 56, Options: None
  
  

This table describes the significant fields shown in the display.

Table 5. show ospfv3 database inter-area prefix Field Descriptions

Field

Description

OSPFv3 Router with ID

Router ID number.

Process ID

OSPFv3 process name.

LS age

Link-state age.

LS Type

Link-state type.

Link State ID

Link-state ID.

Advertising Router

ID of advertising router.

LS Seq Number

Link-state sequence (detects old or duplicate LSAs).

Checksum

Link-state checksum (Fletcher checksum of the complete contents of the LSA).

Length

Length (in bytes) of the LSA.

Metric

Link-state metric.

Prefix Address

IPv6 prefix of the route being described.

Prefix Length

IPv6 prefix length of the route being described.

Options

LA indicates that the prefix is a local address. NU indicates that the prefix is not unicast capable. P indicates that the prefix should be propagated at a not-so-stubby area (NSSA) area border.

The following is sample output from the show ospfv3 database command with the inter-area router keyword:


RP/0/RP0/CPU0:router# show ospfv3 database inter-area router
  
              OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
  
                  Inter Area Router Link States (Area 0)
  
    LS age: 1522
    Options: (V6-Bit E-Bit R-bit DC-Bit)
    LS Type: Inter Area Router Links
    Link State ID: 167772366
    Advertising Router: 10.0.0.207
    LS Seq Number: 80000002
    Checksum: 0xcaae
    Length: 32
    Metric: 1 
    Destination Router ID: 10.0.0.206
  
  

This table describes the significant fields shown in the display.

Table 6. show ospfv3 database inter-area routerField Descriptions

Field

Description

OSPFv3 Router with ID

Router ID number.

Process ID

OSPFv3 process name.

LS age

Link-state age.

Options

Type of service options (Type 0 only):

DC—Supports demand circuits.E—Capable of processing external LSAs. N—Supports Type 7 LSAs. R—Router is active. V6—Include in IPv6 routing calculations.

LS Type

Link-state type.

Link State ID

Link-state ID.

Advertising Router

ID of the advertising router.

LS Seq Number

Link-state sequence (detects old or duplicate LSAs).

Checksum

Link-state checksum (Fletcher checksum of the complete contents of the LSA.)

Length

Length (in bytes) of the LSAs.

Metric

Link-state metric.

Destination Router ID

Router ID of the router being described.

The following is sample output from the show ospfv3 database command with the link keyword:


RP/0/RP0/CPU0:router# show ospfv3 database link
  
              OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
  
                  Link (Type-8) Link States (Area 0)
  
    LS age: 620
    Options: (V6-Bit E-Bit R-bit DC-Bit)
    LS Type: Link-LSA (Interface: Ethernet0/0/0/0)
    Link State ID: 1 (Interface ID)
    Advertising Router: 10.0.0.207
    LS Seq Number: 80000003
    Checksum: 0x7235
    Length: 56
    Router Priority: 1
    Link Local Address: fe80::204:c0ff:fe22:73fe
    Number of Prefixes: 1
    Prefix Address: 7002::
    Prefix Length: 56, Options: None
  
  

This table describes the significant fields shown in the display.

Table 7. show ospfv3 database link Field Descriptions

Field

Description

OSPFv3 Router with ID

Router ID number.

Process ID

OSPFv3 process name.

LS age

Link-state age.

Options

Type of service options (Type 0 only):

DC—Supports demand circuits.E—Capable of processing external LSAs.N—Supports type-7 LSAs.R—Router is active.V6—Include in IPv6 routing calculations.

LS Type

Link-state type.

Link State ID

Link-state ID (Interface ID).

Advertising Router

ID of the advertising router.

LS Seq Number

Link-state sequence (detects old or duplicate LSAs).

Checksum

Link-state checksum (Fletcher checksum of the complete contents of the LSA).

Length

Length (in bytes) of the LSAs.

Router Priority

Interface priority of originating router.

Link Local Address

Link local address of the interface.

Number of Prefixes

Number of prefixes associated with the link.

Prefix Address and Length

List of prefixes associated with the link.

Options

LA indicates that the prefix is a local address. NU indicates that the prefix is not unicast capable. P indicates that the prefix should be propagated at an NSSA area border.

The following is sample output from the show ospfv3 database command with the network keyword:


RP/0/RP0/CPU0:router# show ospfv3 database network
  
              OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
  
                  Net Link States (Area 0)
  
    LS age: 1915
    Options: (V6-Bit E-Bit R-bit DC-Bit)
    LS Type: Network Links
    Link State ID: 1 (Interface ID of Designated Router)
    Advertising Router: 10.0.0.207
    LS Seq Number: 80000004
    Checksum: 0x4330
    Length: 36
          Attached Router: 10.0.0.207
          Attached Router: 0.0.0.1
          Attached Router: 10.0.0.206
  
  

This table describes the significant fields shown in the display.

Table 8. show ospfv3 database network Field Descriptions

Field

Description

OSPFv3 Router with ID

Router ID number.

Process ID 1

OSPFv3 process name.

LS age

Link-state age.

Options

Type of service options (Type 0 only):

DC—Supports demand circuits.E—Capable of processing external LSAs.N—Supports Type 7 LSAs.R—Router is active.V6—Include in IPv6 routing calculations.

LS Type

Link-state type.

Link State ID

Link-state ID of the designated router.

Advertising Router

ID of the advertising router.

LS Seq Number

Link-state sequence (detects old or duplicate LSAs).

Checksum

Link-state checksum (Fletcher checksum of the complete contents of the LSA).

Length

Length (in bytes) of the LSA.

Attached Router

List of routers attached to the network, by router ID.

The following is sample output from the show ospfv3 database command with the prefix keyword:


RP/0/RP0/CPU0:router# show ospfv3 database prefix
  
              OSPFv3 Router with ID (10.0.0.206) (Process ID 1)
  
                  Intra Area Prefix Link States (Area 1)
  
    Routing Bit Set on this LSA
    LS age: 356
    LS Type: Intra-Area-Prefix-LSA
    Link State ID: 0
    Advertising Router: 10.0.0.206
    LS Seq Number: 8000001e
    Checksum: 0xcdaa
    Length: 44
    Referenced LSA Type: 2001
    Referenced Link State ID: 0
    Referenced Advertising Router: 10.0.0.206
    Number of Prefixes: 1
    Prefix Address: 8006::
    Prefix Length: 56, Options: None, Metric: 1
  
  

This table describes the significant fields shown in the display.

Table 9. show ospfv3 database prefix Field Descriptions

Field

Description

OSPFv3 Router with ID

Router ID number.

Process ID 1

OSPFv3 process name.

LS age

Link-state age.

LS Type

Link-state type.

Link State ID

Link-state ID of the designated router.

Advertising Router

ID of the advertising router.

LS Seq Number

Link-state sequence (detects old or duplicate LSAs).

Checksum

Link-state checksum (Fletcher checksum of the complete contents of the LSA).

Length

Length (in bytes) of the LSA.

Referenced LSA Type

Router LSA or network LSA of the prefixes referenced.

Referenced Link State ID

Link-state ID of the router or network LSA.

Referenced Advertising Router

Advertising router of the referenced LSA.

Number of Prefixes

Number of prefixes listed in the LSA.

Prefix Address