OSPFv3 Commands

Refer to the Catalyst 1300X Admin Guide for more information on OSPF feature in Catalyst 1300X series switches.

area default-cost

To specify a cost for the default summary route that is sent into a stub area or not-so-stubby area (NSSA), use the area default-cost command in router address family topology or router configuration mode. To return to default, use the no form of this command.

Syntax

area area-id default-cost cost

no area area-id default-cost

Parameters

  • area-id—Identifier for the stub area or NSSA. The identifier can be specified as either a decimal value or an IP address.

  • cost—Cost for the default summary route used for a stub or NSSA. The acceptable value is a 24-bit number.

Default Configuration

cost—1.

Command Mode

Router OSPF Configuration mode

User Guidelines

If the area does not exist when the area default-cost command is applied it is created.

This command is used only on an Area Border Router (ABR) attached to a stub area or NSSA. If the area is not a stub area or NSSA or the Router is not an ABR attached to the stub area or NSSA then the configuration is saved but is not applied.

There are two stub area router configuration commands: the area stub and area default-cost commands. In all routers attached to the stub area, the area should be configured as a stub area using the area stub command. The area default-cost command impacts only on an ABR attached to the stub area. If the area default-cost command is configured on non ABR attached to the area the configuration is saved but it is not applied. The area default-cost command provides the metric for the summary default route generated by the ABR into the stub area.


Note


To remove the specified area from the software configuration, use the no area area-id command (with no other keywords). That is, the no area area-id command removes all area options, such as area authentication, area default-cost, area nssa, area range, area stub, and area virtual-link.


Example

The following example assigns a default cost of 20 to stub network 10.0.0.0:

switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# area 10.0.0.0 stub
switchxxxxxx(config-ospf)# area 10.0.0.0 default-cost 20
switchxxxxxx(config-ospf)# exit

area filter-list

To filter prefixes advertised in type 3 link-state advertisements (LSAs) between Open Shortest Path First (OSPF) areas of an Area Border Router (ABR), use the area filter-list command in router configuration mode. To cancel the filter, use the no form of this command.

Syntax

area area-id filter-list prefix prefix-list-name {in | out}

no area area-id filter-list prefix {in | out}

Parameters

  • area-id—Identifier of the area for which filtering is configured. The identifier can be specified as either a decimal value or an IP address

  • prefix-list-name—Name of an IPv6 prefix list.

  • in—The prefix list is applied to prefixes advertised to the specified area from other areas.

  • out—The prefix list is applied to prefixes advertised out of the specified area to other areas.

Default Configuration

This command is disabled by default. The router will not filter prefixes.

Command Mode

Router OSPF Configuration mode

User Guidelines

If the area does not exist when the area filter-list command is applied it is created.

The area filter-list command impacts only on an ABR. If the area filter-list command is configured on non ABR the configuration is saved but it is not applied.

With this feature enabled in the "in" direction, all type 3 LSAs originated by the ABR to this area, based on information from all other areas, are filtered by the prefix list. Type 3 LSAs that were originated as a result of the area range command in another area are treated like any other type 3LSA that was originated individually. Any prefix that does not match an entry in the prefix list is implicitly denied.

With this feature enabled in the "out" direction, all type 3 LSAs advertised by the ABR, based on information from this area to all other areas, are filtered by the prefix list. If the area range command has been configured for this area, type 3 LSAs that correspond to the area range are sent to all other areas, only if at least one prefix in the area range matches an entry in the prefix list.

If all specific prefixes are denied by the prefix list, type 3 LSAs that correspond to the area range command will not be sent to any other area. Prefixes that are not permitted by the prefix list are implicitly denied.

Example

The following example filters prefixes that are sent from all other areas to area 1.0.0.0:

switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# area 1.0.0.0 filter-list prefix AREA_1 in
switchxxxxxx(config-ospf)# exit

area nssa

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

Syntax

area area-id nssa [no-summary] [translator-role {always | candidate}]

[translator-stability-interval seconds]

no area area-id nssa

Parameters

  • area-id—Identifier for the stub area or NSSA. The identifier can be specified as either a decimal value or an IP address

  • no-summary—Allows an area to be an NSSA but not have summary routes injected into it.

  • translator-role—Specifies whether or not an NSSA border router will unconditionally translate Type-7 LSAs into Type-5 LSAs. The default value is candidate.

  • always—Specifies that an NSSA border router always translates Type-7 LSAs into Type-5 LSAs regardless of the translator state of other NSSA border routers.

  • candidate—Specifies that an NSSA border router participates in the translator election process described in RFC 3101, Section 3.1.

  • seconds—Specifies the number of seconds after an elected translator determines its services are no longer required, that it should continue to perform its translation duties. The default value is 40 seconds

Default Configuration

No NSSA area is defined.

Command Mode

Router OSPF Configuration mode

User Guidelines

If the area does not exist when the area nssa command is applied it is created.

The no format of the area nssa command does not remove the area, it only changes the area type to transit.

To remove the specified area from the software configuration, use the no area area-id command (with no other keywords). That is, the no area area-id command removes all area options, including area authentication, area default-cost, area nssa, area range, area stub, and area virtual-link.

Example

The following example makes area 1.0.0.0 an NSSA area:

switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# area 1.0.0.0 nssa
switchxxxxxx(config-ospf)# exit

area range

To consolidate and summarize routes at an area boundary, use the area range command in router configuration mode. To disable this function, use the no form of this command.

Syntax

area area-id range ipv6-prefix /prefix-length [advertise | not-advertise]

no area area-id range ipv6-prefix /prefix-length

Parameters

  • area-id—Identifier of the area about which routes are to be summarized. It can be specified as either a decimal value or as an IPv6 prefix.

  • ipv6-prefix—IPv6 prefix.

  • /prefix-length—IPv6 prefix length.

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

  • not-advertise—Sets the address range status to DoNotAdvertise. The Type 3 summary LSA is suppressed, and the component networks remain hidden from other networks.

Default Configuration

This command is disabled by default.

Command Mode

Router OSPF Configuration mode

User Guidelines

The area range command is used 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 behavior is called route summarization.

If the [advertise | not-advertise] keywords are not defined then the advertise option is applied by default. Multiple area router configuration commands specifying the range option can be configured. Thus, OSPF can summarize addresses for many different sets of address ranges.


Note


To remove the specified area from the software configuration, use the no area area-id command (with no other keywords). That is, the no area area-id command removes all area options, such as area default-cost, area nssa, area range, area stub, and area virtual-link.


Example

The following example specifies one summary route to be advertised by the ABR to other areas for all subnets on network 2001:0DB8:0:1::/64:

switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-if)# ipv6 enable
switchxxxxxx(config-if)# ipv6 ospf 1 area 1.0.0.0
switchxxxxxx(config-if)# exit
switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# router-id 192.168.255.5
switchxxxxxx(config-ospf)# area 1.0.0.0 range 2001:0DB8:0:1::/64
switchxxxxxx(config-ospf)# exit

area shutdown

To initiate a graceful shutdown of the Open Shortest Path First (OSPF) protocol in the current area, use the area shutdown command in router configuration mode. To restart the OSPF protocol, use the no form of this command.

Syntax

area area-id shutdown

no area area-id shutdown

Parameters

  • area-id—Identifier for the area. The identifier can be specified as either a decimal value or an IP address.

Default Configuration

OSPF stays active in the current area.

Command Mode

Router OSPF Configuration mode

User Guidelines

Use the area shutdown command in router configuration mode to temporarily shut down a protocol in the least disruptive manner and to notify its neighbors that it is going away. All traffic that has another path through the network will be directed to that alternate path.

Example

The following example shows how to enable a graceful shutdown of the OSPF protocol in area 10.0.0.0:

switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# area 10.0.0.0 shutdown
switchxxxxxx(config-ospf)# exit

area stub

To define an area as a stub area, use the area stub command in router address family topology or router configuration mode. To disable this function, use the no form of this command.

Syntax

area area-id stub [no-summary]

no area area-id stub

Parameters

  • area-id—Identifier for the stub area. The identifier can be specified as either a decimal value or an IP address.

  • no-summary—Prevents an Area Border Router (ABR) from sending summary link advertisements into the stub area.

Default Configuration

No stub area is defined.

Command Mode

Router OSPF Configuration mode

User Guidelines

If the area does not exist when the area stub command is configured it is created.

The no format of the area stub command does not remove the area, it only changes the area type to transit.

You must configure the area stub command on all routers and access servers in the stub area. Use the area router configuration command with the default-cost keyword to specify the cost of a default ninternal route sent into a stub area by an ABR.

There are two stub area router configuration commands: the area stub and area default-cost commands. In all routers attached to the stub area, the area should be configured as a stub area using the area stub command. The area default-cost command is needed only on an ABR attached to the stub area. If the area default-cost command is configured on non ABR attached to the area the configuration is saved but is not effected. The area default-cost command provides the metric for the summary default route generated by the ABR into the stub area.

To further reduce the number of link-state advertisements (LSAs) sent into a stub area, you can configure the no-summary keyword on the ABR to prevent it from sending summary LSAs (LSA type 3) into the stub area. The no-summary keyword configured on non ABR is saved but is not effected.


Note


To remove the specified area from the software configuration, use the no area area-id command (with no other keywords). That is, the no area area-id command removes all area options, such as area authentication, area default-cost, area nssa, area range, area stub, and area virtual-link.


Example

The following example assigns a default cost of 20 to stub network 10.0.0.0:

switchxxxxxx(config)# ipv6 router ospf
switchxxxxxx(config-ospf)# area 10.0.0.0 default-cost 20
switchxxxxxx(config-ospf)# area 10.0.0.0 stub
switchxxxxxx(config-ospf)# exit

clear ipv6 ospf process

To restart the Open Shortest Path First (OSPF) process, use the clear ip ospf process command in privileged EXEC mode.

Syntax

clear ipv6 ospf [process-id] process

Parameters

  • process-id—Process ID. If the parameter is omitted all the OSPF processes are restarted

Default Configuration

N/A

Command Mode

Privileged EXEC mode

User Guidelines

Use the process-id argument to restart only one OSPF process. If the process-id argument is not specified, all OSPF processes are restarted.

The clear ipv6 ospf process command changes the OSPF process router-id if it was reconfigured by the user else if the current used router-id has the default value the command runs the router-id re-election algorithm.

Example

Example 1. The following example restarts all the OSP processes

switchxxxxxx# clear ipv6 ospf process

Example 2. The following example restarts one OSP process with process-id 1:

switchxxxxxx# clear ipv6 ospf 1 process

default metric IPv6 OSPF

To set default metric values for routes redistributed into the Open Shortest Path First (OSPF) for IPv6 routing protocol, use the default-metric command in router configuration mode. To return to the default state, use the no form of this command.

Syntax

default-metric metric-value

no default-metric

Parameters

  • metric-value—Default metric value appropriate for the specified routing protocol. The range is from 1 to 4294967295.

Default Configuration

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

Command Mode

Router OSPF Configuration mode

User Guidelines

The default-metric command is used in conjunction with the redistribute router configuration 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, using a default metric provides a reasonable substitute and enables the redistribution to proceed.

Finer control over the metrics of reditributed routes can be gained by using the options to the redistribute command, including route maps.

Example

The following example shows an OSPF for IPv6 routing protocol redistributing static routes. All the redistributed routes are advertised with a metric of 10:

switchxxxxxx(config)# ipv6 router ospf 100
switchxxxxxx(config-ospf)# default-metric 10
switchxxxxxx(config-ospf)# redistribute static
switchxxxxxx(config-ospf)# exit

ipv6 ospf area

To enable OSPF for IPv6 on an interface, use the ipv6 ospf area command in interface configuration mode. To disable OSPF routing for interfaces defined, use the no form of this command.

Syntax

[shutdown]

no ipv6 ospf process-id area area-id

Parameters

  • process-id—Internal identification. It is locally assigned and can be any positive integer. The number used here is the number assigned administratively when enabling the OSPF routing process. The number must be in range 1-65535

  • area-id—Area that is to be associated with the OSPF interface

  • shutdown—OSPF is enabled on the interface in the shutdown state.

Default Configuration

OSPF for IPv6 is disabled.

Command Mode

Interface Configuration mode

User Guidelines

Before you enable OSPF for IPv6 on an interface using the ipv6 ospf area command, you must enable IPv6 on the interface.

If the OSPFv3 process has not be created it is created automatically.

In IPv6, users can configure many addresses on an interface. In OSPF for IPv6, all addresses on an interface are included by default. Users cannot select some addresses to be imported into OSPF for IPv6; either all addresses on an interface are imported, or no addresses on an interface are imported.

Use the ipv6 ospf area command with the shutdown keyword to create OSPFv3 process on an interface if you are going to change the default values of OSPF configuration and the use the no ipv6 ospf shutdown command.

There is no limit to the number of ipv6 ospf area commands you can use on the router. You must have at least two interfaces configured for OSPF for IPv6 to run.

Example

The following example enables OSPF for IPv6 on an interface:

switchxxxxxx(config)# ipv6 unicast-routing
switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-if)# ipv6 enable
switchxxxxxx(config-if)# ipv6 ospf 1 area 0.0.0.0
switchxxxxxx(config-if)# exit
switchxxxxxx(config)# interface vlan 200
switchxxxxxx(config-if)# ipv6 enable
switchxxxxxx(config-if)# ipv6 ospf 120 area 1.0.0.0.4.20.9
switchxxxxxx(config-if)# exit

ipv6 ospf cost

To explicitly specify the cost of sending a packet on an interface, use the ipv6 ospf cost command in IP interface configuration mode. To reset the path cost to the default value, use the no form of this command.

Syntax

ipv6 ospf cost interface-cost

no ipv6 ospf cost

Parameters

  • interface-cost—Unsigned integer value expressed as the link-state metric. It can be a value in the range from 1 to 65535.

Default Configuration

The default value depends on the interface’s ifSpeed (see User Guidelines).

Command Mode

Interface Configuration mode

User Guidelines

You must define OSPFv3 on an interface by the ipv6 ospf area command before using of the ipv6 ospf cost command on the same interface.

You can set the metric manually using this command, if you need to change the default.

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

10^10 / ifSpeed

Using this formula, the default path costs were calculated as noted in the following list. If these values do not suit your network, you can use your own method of calculating path costs.

10G Ethernet Default cost is 1

1G Ethernet Default cost is 10

100M Ethernet Default cost is 100

10M Ethernet Default cost is 1000

Example

The following example sets the interface cost value to 65:

switchxxxxxx(config)# interface vlan 200
switchxxxxxx(config-if)# ipv6 ospf cost 65
switchxxxxxx(config-if)# exit

ipv6 ospf dead-interval

To set the time period for which hello packets must not be seen before neighbors declare the router down, use the ipv6 ospf dead-interval command in interface configuration mode. To return to the default time, use the no form of this command.

Syntax

ipv6 ospf dead-interval seconds

no ipv6 ospf dead-interval

Parameters

  • seconds—Interval (in seconds) during which the router must receive at least one hello packet from a neighbor or else that neighbor is removed from the peer list and does not participate in routing. The range is 1 to 65535. The value must be the same for all nodes on the network.

Default Configuration

Four times the interval set by the ip ospf hello-interval command.

Command Mode

Interface Configuration mode

User Guidelines

The interval is advertised in router hello packets. This value must be the same for all routers and access servers on a specific network.

Example

The following example sets the OSPF dead interval to 60 seconds:

switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-if)# ipv6 ospf dead-interval 60
switchxxxxxx(config-if)# exit

ipv6 ospf hello-interval

To specify the interval between hello packets that are sent on the IP interface, use the ip ospf hello-interval command in IP interface configuration mode. To return to the default time, use the no form of this command.

Syntax

ipv6 ospf hello-interval seconds

no ipv6 ospf hello-interval

Parameters

  • seconds—Specifies the interval (in seconds). The value must be the same for all nodes on a specific network.

Default Configuration

10 seconds

Command Mode

Interface Configuration mode

User Guidelines

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

Example

The following example sets the interval between hello packets to 15 seconds:

switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-if)# ipv6 ospf hello-interval 15
switchxxxxxx(config-if)# exit

ipv6 ospf mtu-ignore

To disable Open Shortest Path First (OSPF) maximum transmission unit (MTU) mismatch detection on receiving Database Descriptor (DBD) packets, use the ip ospf mtu-ignore command in IP interface configuration mode. To reset to default, use the no form of this command.

Syntax

ipv6 ospf mtu-ignore

no ipv6 ospf mtu-ignore

Parameters

This command has no arguments or keywords.

Default Configuration

This command is disabled.

Command Mode

Interface Configuration mode

User Guidelines

OSPF checks whether 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 IP MTU configured on the incoming interface, OSPF adjacency will not be established.

Example

The following example disables MTU mismatch detection on receiving DBD packets:

switchxxxxxx(config)# interface ip 1.1.1.1
switchxxxxxx(config-if)# ipv6 ospf mtu-ignore
switchxxxxxx(config-if)# exit

ipv6 ospf name-lookup

To display Open Shortest Path First (OSPF) router IDs as Domain Naming System (DNS) names, use the ipv6 ospf name-lookup command in global configuration mode. To stop displaying OSPF router IDs as DNS names, use the no form of this command.

Syntax

ipv6 ospf name-lookup

no ipv6 ospf name-lookup

Parameters

This command has no arguments or keywords.

Default Configuration

This command is disabled.

Command Mode

Global Configuration mode

User Guidelines

This command makes it easier to identify a router because the router is displayed by name rather than by its router ID or neighbor ID.

Example

The following example disables MTU mismatch detection on receiving DBD packets:

switchxxxxxx(config)# ipv6 ospf name-lookup

ipv6 ospf prefix-suppression

To prevent OSPF from advertising the interface IPv6 prefixes, use the ipv6 ospf prefix-suppression command in interface configuration mode. To remove the per-interface configuration from the interface and allow the interface to inherit the IP prefix suppression setting from the router configuration, use the no form of this command:

Syntax

ipv6 ospf prefix-suppression [disable]

no ipv6 ospf prefix-suppression

Parameters

  • disable—Specifies that OSPF will advertise the interface IP prefix, regardless of the router mode configuration for IP prefix suppression

Default Configuration

Routing updates are sent on the interface.

Command Mode

Interface Configuration mode

User Guidelines

Use this command to suppress Ipv6 prefix(es) advertisements for the interface. This command can also be used to suppress prefixes of passive and Loopback interfaces.

By default, IPv6 prefix suppression is not configured on an interface. In this case the interface will inherit the behavior set by the prefix-suppression router configuration mode command set for the OSPFv3 process. Entering the ipv6 ospf prefix-suppression command will override the prefix-suppression router configuration mode command. Use the command with the disable option to disable all ipv6 prefix suppression on the interface - regardless of the router configuration mode setting.

Example

The following example enables ip prefix suppression on an interface VLAN 100:

switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-ip)# ip ospf prefix-suppression
switchxxxxxx(config-ip)# exit

ipv6 ospf priority

To set the router priority, which helps determine the designated router for this network, use the ipv6 ospf priority command in interface configuration mode. To return to the default value, use the no form of this command.

Syntax

ipv6 ospf priority number-value

no ipv6 ospf priority

Parameters

  • number-value—A number value that specifies the priority of the router. The range is from 0 to 255.

Default Configuration

The router priority is 1.

Command Mode

Interface Configuration mode

User Guidelines

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 multiaccess networks (in other words, not to point-to-point networks).

This priority value is used when you configure Open Shortest Path First (OSPF) for nonbroadcast networks using the ipv6 ospf neighbor command.

Example

The following example sets the router priority value to 4:

switchxxxxxx(config)# interface ip 1.1.1.1
switchxxxxxx(config-if)# ipv6 ospf priority 4
switchxxxxxx(config-if)# exit

ipv6 ospf retransmit-interval

To specify the time between link-state advertisement (LSA) retransmissions for adjacencies belonging to the IP interface, use the ip ospf retransmit-interval command in IP interface configuration mode. To return to the default value, use the no form of this command.

Syntax

ipv6 ospf retransmit-interval seconds

no ipv6 ospf retransmit-interval

Parameters

  • seconds—Time (in seconds) between retransmissions. It must be greater than the expected round-trip delay between any two routers on the attached network The range is from 1 to 65535 seconds. The default is 5 seconds.

Default Configuration

The default is 5 seconds

Command Mode

Interface Configuration mode

User Guidelines

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

The setting of the seconds argument should be greater than the expected round-trip delay between any two routers on the attached network. The setting of this parameter should also be conservative, or needless LSA retransmissions may occur. The value should be larger for serial lines and virtual links.

Example

The following example sets the retransmit interval value to 8 seconds:

switchxxxxxx(config)# interface ip 1.1.1.1
switchxxxxxx(config-if)# ipv6 ospf retransmit-interval 8
switchxxxxxx(config-if)# exit

ipv6 ospf shutdown

To initiate an Open Shortest Path First (OSPF) protocol graceful shutdown at the IP interface level, use the ip ospf shutdown command in interface configuration mode. To restart the OSPF protocol on an interface, use the no form of this command.

Syntax

ip ospf shutdown

no ip ospf shutdown

Parameters

This command has no arguments or keywords.

Default Configuration

This command is disabled.

Command Mode

Interface Configuration mode

User Guidelines

Use the ipv6 ospf shutdown command to put OSPF on a specific interface in shutdown mode.

Example

The following example shows how to initiate an OSPF protocol shutdown on IP interface 1.1.1.1:

switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-if)# ip ospf shutdown
switchxxxxxx(config-if)# exit

ipv6 ospf transmit-delay

To set the estimated time required to send a link-state update packet on the IP interface, use the ip ospf transmit-delay command in IP interface configuration mode. To return to the default value, use the no form of this command.

Syntax

ipv6 ospf transmit-delay seconds

no ipv6 ospf transmit-delay

Parameters

  • seconds—Time (in seconds) required to send a link-state update. The range is from 1 to 65535 seconds. The default is 1 second.

Default Configuration

The default is 1 second.

Command Mode

Interface Configuration mode

User Guidelines

Link-state advertisements (LSAs) in the update packet must have their ages incremented by the amount specified in the seconds argument before transmission. The value assigned should take into account the transmission and propagation delays for the interface.

If the delay is not added before transmission over a link, the time in which the LSA propagates over the link is not considered. This setting has more significance on very low-speed links.

Example

The following example sets the retransmit delay value to 3 seconds:

switchxxxxxx(config)# interface vlan 100
switchxxxxxx(config-ip)# ipv6 ospf transmit-delay 3
switchxxxxxx(config-ip)# exit

ipv6 router ospf

To enable Open Shortest Path First (OSPF) for IPv6 router configuration mode, use the ipv6 router ospf command in global configuration mode.

Syntax

ipv6 router ospf process-id

Parameters

  • process-id—Internal identification. It is locally assigned and can be a positive integer from 1 to 65535. The number used here is the number assigned administratively when enabling the OSPF for IPv6 routing process.

Default Configuration

No OSPF for IPv6 routing process is defined.

Command Mode

Global Configuration mode

User Guidelines

Use this command to enter the OSPF for IPv6 router configuration mode. If the OSPFv3 process has not been created it is created. From this mode, you can enter several commands to customize OSPF for IPv6.

Example

The following example enables router OSPF for IPv6 configuration mode and identifies the process with the number 1:

switchxxxxxx(config)# ipv6 router ospf 1

log-adjacency-changes ipv6

To configure the router to send a syslog message when an Open Shortest Path First (OSPF) for IPv6 neighbor goes up or down, use the log-adjacency-changes command in router configuration mode. To turn off this function, use the no form of this command.

Syntax

log-adjacency-changes [detail]

no log-adjacency-changes

Parameters

  • detail—Sends a syslog message for each state change, not just when a neighbor goes up or down.

Default Configuration

Enabled

Command Mode

Router OSPF Configuration mode

User Guidelines

This command allows you to know about OSPF neighbors going up or down. The log-adjacency-changes command provides a high level view of those changes of the peer relationship. The log-adjacency-changes command is on by default but only up/down (full/down) events are reported, unless the detail keyword is also used.

Example

The following example configures the router to send a syslog message when an OSPF neighbor state changes:

switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# log-adjacency-changes detail
switchxxxxxx(config-ospf)# exit

no area

To remove the specified area from the software configuration, use the no area command in router configuration mode.

Syntax

no area area-id

Parameters

  • area-id—Identifier for the removed area. The identifier can be specified as either a decimal value or an IP address.

Default Configuration

Area is defined.

Command Mode

Router OSPF Configuration mode

User Guidelines

To remove the specified area from the software configuration, use the no area area-id command. That is, the no area area-id command removes all area options, including area authentication, area default-cost, area nssa, area range, area stub, and area virtual-link.

Example

The following example removes area 1.0.0.0:

switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# no area 1.0.0.0
switchxxxxxx(config-ospf)# exit

passive-interface ipv6

To disable sending routing updates on an interface, use the passive-interface command in routerconfiguration mode. To reenable the sending of routing updates, use the no form of this command.

Syntax

passive-interface {default | interface-id}

no passive-interface {default | interface-id}

Parameters

  • default—All interfaces become passive.

  • interface-id—Interface identifier.

Default Configuration

No interfaces are passive. Routing updates are sent to all interfaces on which the routing protocol is enabled.

Command Mode

Router OSPF Configuration mode

User Guidelines

If you disable the sending of routing updates on an interface, the particular address prefix will continue to be advertised to other interfaces, and updates from other routers on that interface continue to be received and processed.

The default keyword sets all interfaces as passive by default. You can then configure individual interfaces where adjacencies are desired using the no passive-interface command. The default keyword is useful in Internet service provider (ISP) and large enterprise networks where many of the distribution routers have more than 200 interfaces.

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

Example

The following example sets all interfaces as passive, then activates VLAN 100:

switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# passive-interface default
switchxxxxxx(config-ospf)# no passive-interface vlan100
switchxxxxxx(config-ospf)# exit

prefix-suppression

To prevent OSPFV3 from advertising all IP prefixes for a specific OSPFv3 process except for prefixes that are associated with Loopback and passive interfaces, use the prefix-suppression command in router configuration mode. To advertise all IPv6 prefixes, use the no form of this command.

Syntax

prefix-suppression

no prefix-suppression

Parameters

N/A

Default Configuration

All IPv6` prefixes are advertised.

Command Mode

Router OSPF Configuration mode

User Guidelines

Use the prefix-suppression router configuration mode command to globally suppress advertisement of all IPv6 prefixes (except for prefixes that are associated with loopbacks and passive interfaces) for an entire OSPFv3 process.You can also suppress a specific IPv6 prefix by using the ipv6 ospf prefix-suppression command in IPv6 interface configuration mode. When the ipv6 ospf prefix-suppression command is configured, it takes precedence over the prefix-suppression router configuration command

Example

The following example globally suppresses all IPv6 prefixes for OSPFv3 process 248 except for prefixes that are associated with loopbacks and passive interfaces:

switchxxxxxx(config)# ipv6 router ospf 248
switchxxxxxx(config-ospf)# prefix-suppression
switchxxxxxx(config-ospf)# exit

redistribute (OSPFv3)

To redistribute IPv6 routes from one routing domain into another routing domain, use the redistribute command in address family configuration or router configuration mode. To disable redistribution, use the no form of this command.

Syntax

redistribute source-protocol [process-id] [metric metric-value] [metric-type type-value] [match {internal | external-1 | external-2] }]

no redistribute source-protocol [process-id] [metric metric-value] [metric-type type-value] [match {internal | external-1 | external-2] }]

Parameters

  • source-protocol—Source protocol from which routes are being redistributed. It can be one of the following keywords: connected, static, or ospf.

  • process-id—The process-id argument is used only together with the ospf keyword and specifies the appropriate OSPF process ID from which routes are to be redistributed. This identifies the routing process. This value takes the form of a nonzero decimal number. If it is omitted then a value of 1 is assumed.

  • metric metric-value—Specifies the metric assigned to the redistributed routes.

    If the metric value is set by the route map (by the set metric command) then the value will supersede the metric value specified by the metric-value argument.

    If no metric is specified, the following metric is assigned depending on the source protocol:

    • from OSPF

      1. the internal OSPF metric from the redistribution source process is advertised as the external metric in the redistribution destination process.

      2. the external OSPF metric from the redistribution source process is advertised as the external metric with value of 1.

    • from any protocol except OSPF - 20

  • metric-type type-value— Used only together with the ospf keyword. Specifies the external link type associated with the default 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 a metric-type is not specified, a Type 2 external route is adopted.
  • match {internal | external-1 | external-2]}—The match keyword is used only together with the ospf keyword and specifies the criteria by which OSPF routes are redistributed into the target OSPF process. It can be one of the following:

    • internal - Routes that are internal to a specific autonomous system.

    • external -1 - Routes that are external to the autonomous system, but are imported into OSPF as Type 1 external route.

    • external -2 - Routes that are external to the autonomous system, but are imported into OSPF as Type 2 external route

    By default the internal and external-1 routes are redistributed.

    Note


    A few the redistribute commands with different values of the match keyword may be defined.


Default Configuration

Route redistribution is disabled.

Command Mode

Address Family Configuration mode

Router OSPF Configuration mode

User Guidelines

Routes distributed to the source protocol are never redistributed by it. The connected keyword is used to redistribute to the target OSPF autonomous system routes that correspond to defined IP interfaces on which the destination OSPF process is not enabled. By default, the OSPF process advertises only IP interfaces on which the OSPF process is enabled.

The static keyword is used to redistribute to the target OSPF process static routes. By default, static routes are not redistributed to OSPF.

Changing or disabling any keyword will not affect the state of other keywords.

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

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

Removing options that you have configured for the redistribute command requires careful use of the no form of the redistribute command to ensure that you obtain the result that you are expecting.


Note


In IPv4, if you redistribute a protocol, by default you also redistribute the subnet on the interfaces over which the protocol is running. In IPv6 this is not the default behavior. To redistribute the subnet on the interfaces over which the protocol is running in IPv6, use the include-connected keyword.


Example

The following example redistributes OSPF 100 for IPv6 routes into the OSPF for IPv6 routing process 1:

switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# redistribute ospf 100 metric 32 metric-type 1
switchxxxxxx(config-ospf)# exit

router-id IPv6

To use a fixed router ID, use the router-id command in router configuration mode. To return to the default, use the no form of this command.

Syntax

router-id ipv4-address

no router-idipv4-address

Parameters

  • ipv4-address—Router ID in IPv4 address format.

Default Configuration

The minimum IPv4 address configured on the router.

Command Mode

Router OSPF Configuration mode

User Guidelines

You can configure an arbitrary value in the IP address. However, each router ID must be unique.

If the router ID of an OSPF process is not defined and the switch does not have an IPv4 address the OSPF process operational state is down.

If this command is used on an OSPF router process which is already active (has neighbors), the new router-ID is used at the next reload or at a manual OSPF process restart. To manually restart the OSPF process, use the clear ipv6 ospf process command.

Example

The following example specifies a fixed router ID:

switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# router-id 10.1.1.1
switchxxxxxx(config-ospf)# exit

show ipv6 ospf

To display general information about Open Shortest Path First (OSPF) routing processes, use the show ipv6 ospf command in user EXEC or privileged EXEC mode.

Syntax

show ipv6 ospf

Parameters

N/A

Default Configuration

N/A

Command Mode

User EXEC mode

Privileged EXEC mode

Example

The following is sample output from the show ipv6 ospf command:

switchxxxxxx# show ipv6 ospf
OSPFv3 Routing Process 1 with ID 192.168.0.0
Administrative state is UP
Operational state is UP
Default Redistribute Metric is 100
Redistributing is enabled from
Connected:
metric value is default metric
metric type is external 2
route-map name is alpha
with subnets
nssa only
Connected:
metric value is default metric
metric type is external 2
route-map name is alpha
with subnets
nssa only
static:
metric value is 50
metric type is external 1
no route-map
without subnets
OSPF 109:
internal:
internal metric value is preserved, metric type is external 1
metric value is preserved, metric type is external 1
route-map name is alp
with subnets
external 1
metric value is 100, metric type is external 1
with subnets
external 2
metric is value 100, metric type is external 2
with subnets
OSPF 120:
from metric type:
internal: metric value is default metric, metric type is external 1
metric value is default metric, metric type is external 1
with subnets
external 1: metric value is default metric, metric type is external 2
metric value is default metric, metric type is external 2
with subnets
Area BACKBONE(0)
Administrative state is UP
Number of interfaces in this area is 1
SPF algorithm executed 10 times
Number of ASBR is 0
Number of ABR is 0
Number of LSA in this area is 1. Total checksum is 0x16a9
Area 6.6.6.6
It is a stub area, no summary
Administrative state is UP
Number of interfaces in this area is 1
SPF algorithm executed 10 times
Number of ASBR is 0
Number of ABR is 0
Number of LSA in this area is 1. Total checksum is 0x16a9
Area 7.7.7.7
It is a NSSA area
Area BACKBONE(0)
Administrative state is UP
Number of interfaces in this area is 1
SPF algorithm executed 10 times
Number of ASBR is 0
Number of ABR is 0
Number of LSA in this area is 1. Total checksum is 0x16a9
Area 6.6.6.6
It is a stub area, no summary
Administrative state is UP
Number of interfaces in this area is 1
SPF algorithm executed 10 times
Number of ASBR is 0
Number of ABR is 0
Number of LSA in this area is 1. Total checksum is 0x16a9
Area 7.7.7.7
It is a NSSA area

show ipv6 ospf database

To display lists of information related to the Open Shortest Path First (OSPF) database for a specific router, use the show ipv6 ospf database command in user EXEC or privileged EXEC mode. The various forms of this command deliver information about different OSPF link-state advertisements (LSAs).

Syntax

show ipv6 ospf [process-id [area-id]] database

show ipv6 ospf [process-id [area-id]] database adv-router router-id

show ipv6 ospf [process-id [area-id]] database external

show ipv6 ospf [process-id [area-id]] database inter-area-prefix

show ipv6 ospf [process-id [area-id]] database inter-area router

show ipv6 ospf [process-id [area-id]] database link

show ipv6 ospf [process-id [area-id]] database network

show ipv6 ospf [process-id [area-id]] database nssa-external

show ipv6 ospf [process-id [area-id]] database prefix

show ipv6 ospf [process-id [area-id]] database [router]

Parameters

  • process-id—Displays information only about a specified process.

  • area-id—Displays information only about a specified area. The area-id argument can only be used if the process-id argument is specified.

  • adv-router [router-id]—Displays all the LSAs of the advertising router. This argument must be in the form documented in RFC 2740 where the address is specified in hexadecimal using 16-bit values between colons.

  • external—Displays information only about the external LSAs.

  • ipv6-prefix—Link-local IPv6 address of the neighbor. This argument must be in the form documented in RFC 2373 where the address is specified in hexadecimal using 16-bit values between colons.

  • link-state-id—An integer used to differentiate LSAs. In network and link LSAs, the link-state ID matches the interface index.

  • inter-area prefix—Displays information only about LSAs based on inter-area prefix LSAs.

  • inter-area-router—Displays information only about LSAs based on inter-area router LSAs.network—Displays information only about the network LSAs.

  • destination-router-id—The specified destination router ID.

  • link—Displays information only about the router LSAs.

  • interface—Displays information about the LSAs filtered by interface context.

  • interface-name—Specifies the LSA interface.

  • network—Displays information only about the network LSAs.

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

  • prefix—Displays information on the intra-area-prefix LSAs.

  • router—Displays information only about the router LSAs.

Command Mode

User EXEC mode

Privileged EXEC mode

User Guidelines

N/A

Example

Example 1. The following is sample output from the show ipv6 ospf database command when no arguments or keywords are used:

switchxxxxxx# show ipv6 ospf database
OSPFv3 Router with ID (172.16.4.4) (Process ID 1)
Router Link States (Area 0.0.0.0)
ADV Router Age Seq# Fragment ID Link count Bits
172.16.4.4 239 0x80000003 0 1 B
172.16.6.6 239 0x80000003 0 1 B
Inter Area Prefix Link States (Area 0.0.0.0)
ADV Router Age Seq# Prefix
172.16.4.4 249 0x80000001 FEC0:3344::/32
172.16.4.4 219 0x80000001 FEC0:3366::/32
172.16.6.6 247 0x80000001 FEC0:3366::/32
172.16.6.6 193 0x80000001 FEC0:3344::/32
172.16.6.6 82 0x80000001 FEC0::/32
Inter Area Router Link States (Area 0.0.0.0)
ADV Router Age Seq# Link ID Dest RtrID
172.16.4.4 219 0x80000001 50529027 172.16.3.3
172.16.6.6 193 0x80000001 50529027 172.16.3.3
Link (Type-8) Link States (Area 0.0.0.0)
ADV Router Age Seq# Link ID Interface
172.16.4.4 242 0x80000002 14 VLAN 100
172.16.6.6 252 0x80000002 14 VLAN 100
Intra Area Prefix Link States (Area 0.0.0.0)
ADV Router Age Seq# Link ID Ref-lstype Ref-LSID
172.16.4.4 242 0x80000002 0 0x2001 0
172.16.6.6 252 0x80000002 0 0x2001 0
The description of thesignificant fields shown in the display.
ADV Router—Advertising router ID.
Age—Link-state age.
Seq#—Link-state sequence number (detects old or duplicate LSAs).
Link ID—Interface ID number.
Ref-lstype—Referenced link-state type.
Ref-LSID—Referenced link-state ID.

Example 2. The following is sample output from the show ipv6 ospf database command with the router keyword:

switchxxxxxx# show ipv6 ospf database router
OSPFv3 Router with ID (172.16.6.6) (Process ID 1)
Router Link States (Area 0.0.0.0)
LS age: 383
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Router Links
Link State ID: 0
Advertising Router: 172.16.6.6
LS Seq Number: 80000003
Checksum: 0x7543
Length: 40
Area Border Router
Number of Links: 1
Link connected to: another Router (point-to-point)
Link Metric: 1
Local Interface ID: 14
Neighbor Interface ID: 14
Neighbor Router ID: 172.16.4.4

Example 3. The following is sample output from the show ipv6 ospf database command with the network keyword:

switchxxxxxx# show ipv6 ospf database network
Router Link States (Area 0.0.0.1)
ADV Router Age Seq# Fragment ID Link count Bits
172.16.4.4 239 0x80000003 0 1 B
172.16.6.6 239 0x80000003 0 1 B
Net Link States (Area 0.0.0.1)
ADV Router Age Seq# Attached Router
172.16.6.6 419 0x80000001 172.16.6.3
172.16.6.6 239 0x80000001 172.16.6.6

Example 4. The following is sample output from the show ipv6 ospf database command with the link self-originate keywords:

switchxxxxxx# show ipv6 ospf database link
OSPFv3 Router with ID (172.16.6.6) (Process ID 1)
Link (Type-8) Link States (Area 0.0.0.0)
LS age: 505
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Link-LSA (Interface: POS4/0)
Link State ID: 14 (Interface ID)
Advertising Router: 172.16.6.6
LS Seq Number: 80000002
Checksum: 0xABF6
Length: 60
Router Priority: 1
Link Local Address: FE80::205:5FFF:FED3:6408
Number of Prefixes: 2
Prefix Address: FEC0:4466::
Prefix Length: 32, Options: None
Prefix Address: FEC0:4466::
Prefix Length: 32, Options: None

Example 5. The following is sample output from the show ipv6 ospf database command with the prefix keyword:

switchxxxxxx# show ipv6 ospf database prefix
OSPFv3 Router with ID (172.16.6.6) (Process ID 1)
Intra Area Prefix Link States (Area 0.0.0.0)
Routing Bit Set on this LSA
LS age: 552
LS Type: Intra-Area-Prefix-LSA
Link State ID: 0
Advertising Router: 172.16.6.6
LS Seq Number: 80000002
Checksum: 0xA910
Length: 48
Referenced LSA Type: 2001
Referenced Link State ID: 0
Referenced Advertising Router: 172.16.6.6
Number of Prefixes: 2
Prefix Address: FEC0:4466::
Prefix Length: 32, Options: None, Metric: 1
Prefix Address: FEC0:4466::
Prefix Length: 32, Options: None, Metric: 1

Example 6. The :following is sample output from the show ipv6 ospf database command with the inter-area-prefix keyword

switchxxxxxx# show ipv6 ospf database inter-area-prefix
OSPF Routing Process 1 with ID 1.1.1.1
Router Link States(Area 0.0.0.1)
ADV Router Age Seq# Fragment ID Link count Bits
1.1.1.1 510 0x80000004 0 1 E
2.2.2.2 506 0x8000000a 0 1 B
Network Link States(Area 0.0.0.1)
ADV Router Age Seq# Attached Router
2.2.2.2 511 0x80000001 1.1.1.1
2.2.2.2 511 0x80000001 2.2.2.2
Type8 Link States(Area 0.0.0.1)
ADV Router Age Seq# Link ID Interface
1.1.1.1 510 0x80000001 gi1/0/1
Type8 Link States(Area 0.0.0.1)
ADV Router Age Seq# Link ID Interface
2.2.2.2 960 0x80000006 gi1/0/1

Example 7. The following is sample output from the show ipv6 ospf database command with the inter-area-router keyword:

switchxxxxxx# show ipv6 ospf database inter-area-router
OSPF Routing Process 1 with ID 1.1.1.1
Router Link States(Area 0.0.0.1)
ADV Router Age Seq# Fragment ID Link count Bits
1.1.1.1 514 0x80000004 0 1 E
2.2.2.2 510 0x8000000a 0 1 B
Network Link States(Area 0.0.0.1)
ADV Router Age Seq# Attached Router
2.2.2.2 515 0x80000001 1.1.1.1
2.2.2.2 515 0x80000001 2.2.2.2
Type8 Link States(Area 0.0.0.1)
ADV Router Age Seq# Link ID Interface
1.1.1.1 514 0x80000001 gi1/0/1
Type8 Link States(Area 0.0.0.1)
ADV Router Age Seq# Link ID Interface
2.2.2.2 964 0x80000006 gi1/0/1

Example 8. The following is sample output from the show ipv6 ospf database command with the external keyword:

switchxxxxxx# show ipv6 ospf database external
OSPFv3 Router with ID (172.16.6.6) (Process ID 1)
Type-5 AS External Link States
Routing Bit Set on this LSA
LS age: 654
LS Type: AS External Link
Link State ID: 0
Advertising Router: 172.16.3.3
LS Seq Number: 80000001
Checksum: 0x218D
Length: 32
Prefix Address: FEC0:3333::
Prefix Length: 32, Options: None
Metric Type: 2 (Larger than any link state path)
Metric: 20

show ipv6 ospf interface

To display Open Shortest Path First (OSPF)-related interface information, use the show ipv6 ospf interface command in user EXEC or privileged mode.

Syntax

show ipv6 ospf [process-id [area-id]] interface [interface-id] [brief]

Parameters

  • process-id—Internal identification. It is locally assigned and can be any positive integer. The number used here is the number assigned administratively when the OSPF routing process is enabled.

  • area-id—Displays information about a specified area only.

  • interface-id—Interface identifier.

  • brief—Displays brief overview information for OSPF interfaces, states, addresses and masks, and areas on the router.

Command Mode

User EXEC mode

Privileged EXEC mode

Example

Example 1. The following is sample output from the show ipv6 ospf interface command:

switchxxxxxx# show ipv6 ospf interface
VLAN 2 is up
Link Local Address 2001:0DB1:205:5FFF:FED3:5808, Interface ID 13
Area 1.0.0.0, Process ID 1, Instance ID 0, Router ID 172.16.3.3
Adminastrative state is up, Operational state is up
Network Type POINT_TO_POINT, Cost: 1
Transmit Delay is 1 sec, State POINT_TO_POINT,
Prefix-suppression is enabled
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:06
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 172.16.4.4
Suppress hello for 0 neighbor(s)
VLAN 100 is up
Link Local Address 2001:0DB1:205:5FFF:FED3:5808, Interface ID 3
Area 1.0.0.0, Process ID 1, Instance ID 0, Router ID 172.16.3.3
Adminastrative state is up, Operational state is up
Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 172.16.6.6, local address 2001:0DB1:205:5FFF:FED3:6408
Backup Designated router (ID) 172.16.3.3, local address 2001:0DB1:205:5FFF:FED3:5808
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:05
Adjacent with neighbor 172.16.6.6 (Designated Router)
Suppress hello for 0 neighbor(s
The description of the significant fields shown in the display.
VLAN 2, vlan 100—Status of the network interface.
Link Local Address—Interface IPv6 address.
Area 1.0.0.0, Process ID 1, Instance ID 0, Router ID 172.16.3.3—The area ID, process ID,
instance ID, and router ID of the area from which this route is learned.
Network Type POINT_TO_POINT, Cost: 1—Network type and link-state cost.
Transmit Delay—Transmit delay, interface state, and router priority.
Designated Router—Designated router ID and respective interface IP address.
Backup Designated router—Backup designated router ID and respective interface IP address.
Timer intervals configured—Configuration of timer intervals.
Hello—Number of seconds until the next hello packet is sent out this interface.

Example 2. The following sample output from the show ipv6 ospf interface brief command shows a summary of information:

switchxxxxxx# show ipv6 ospf interface brief
Interface Process ID Area ID Cost OSPF Oper St Passive
----------------- ------------- --------------------- -------- ------------------- -----------
tunnel 2 1 172.116.211.116 100 up Yes
VLAN 1000 1 1.1.2.1 35 down
VLAN 1 1 20 55 up

show ipv6 ospf neighbor

To display Open Shortest Path First (OSPF) neighbor information on a per-interface basis, use the show ipv6 ospf neighbor command in user EXEC or privileged EXEC mode.

Syntax

show ipv6 ospf [process-id [area-id]] neighbor [interface-id] [neighbor-id] [detail]

Parameters

  • process-id—Internal identification. It is locally assigned and can be any positive integer. The number used here is the number assigned administratively when the OSPF routing process isenabled.

  • area-id—Displays information only about a specified area.

  • interface-id—Interface identifier.

  • neighbor-id—Neighbor ID.

  • detail—Displays all neighbors in detail (lists all neighbors).

Command Mode

User EXEC mode

Privileged EXEC mode

Example

Example 1. The following is sample output from the show ipv6 ospf neighbor command:

switchxxxxxx# show ipv6 ospf neighbor
Neighbor ID Pri State Dead Time Interface ID Interface
172.16.4.4 1 FULL/ - 00:00:31 14 POS4/0
172.16.3.3 1 FULL/BDR 00:00:30 3 FastEthernet00
172.16.5.5 1 FULL/ - 00:00:33 13 ATM3/0

Example 2. The following is sample output from the show ipv6 ospf neighbor command with the detail keyword:

switchxxxxxx# show ipv6 ospf neighbor detail
Neighbor 172.16.4.4
In the area 0.0.0.0 via interface POS4/0
Neighbor: interface-id 14, link-local address FE80::205:5FFF:FED3:5406
Neighbor priority is 1, State is FULL, 6 state changes
Options is 0x63AD1B0D
Dead timer due in 00:00:33
Neighbor 172.16.3.3
In the area 1.0.0.0 via interface FastEthernet0/0
Neighbor: interface-id 3, link-local address FE80::205:5FFF:FED3:5808
Neighbor priority is 1, State is FULL, 6 state changes
DR is 172.16.6.6 BDR is 172.16.3.3
Options is 0x63F813E9
Dead timer due in 00:00:33
Neighbor 172.16.5.5
In the area 2 via interface ATM3/0
Neighbor: interface-id 13, link-local address FE80::205:5FFF:FED3:6006
Neighbor priority is 1, State is FULL, 6 state changes
Options is 0x63F7D249
Dead timer due in 00:00:38
The description of the significant fields shown in the display.
Neighbor ID; Neighbor—Neighbor router ID.
In the area—Area and interface through which the OSPF neighbor is known.
Pri; Neighbor priority—Router priority of the neighbor, neighbor state.
State—OSPF state.
Options—Hello packet options field contents. (E-bit only. Possible values are 0 and 2; 2 indicates
area is not a stub; 0 indicates area is a stub.)
Dead timer due in—Expected time before Cisco IOS software will declare the neighbor dead.

show ipv6 ospf router-id

To display OSPF process router-id, use the show ipv6 ospf router-id command in user EXEC or privileged EXEC mode.

Syntax

show ipv6 ospf [process-id] router-id

Parameters

  • process-id—Internal identification. It is locally assigned and can be any positive integer. The number used here is the number assigned administratively when the OSPF routing process is enabled.

Command Mode

User EXEC mode

Privileged EXEC mode

User Guidelines

The process-id argument can be entered as a decimal number or as an IPv6 address format.

Example

The following is sample output from the show ipv6 ospf router-id command:

switchxxxxxx# show ipv6 ospf router-id
Process-ID Current Router-ID Next Router-ID after Restart
Value Type Value Type
-------------- ------------------- --------- ------------------- ---------
1 1.1.1.192 default 1.1.1.1 default
2 1.1.1.192 default 100.100.100.100 manual
3 2.2.2.2 manual 2.2.2.2 default
4 10.10.10.10 manual 1.1.1.1 default
5 10.10.10.10 manual 2.2.2.2 manual

show ipv6 ospf snmp

To display OSPF snmp configuration, use the show ipv6 ospf snmp command in user EXEC or privileged EXEC mode.

Syntax

show ipv6 ospf snmp

Command Mode

User EXEC mode

Privileged EXEC mode

User Guidelines

Use the show ipv6 ospf snmp command to display the OSPF snmp configuration

Example

The following is sample output from the show ipv6 ospf snmp command:

switchxxxxxx# show ipv6 ospf snmp
The standard OSPF MIB is mapped to OSPF process 2
SNMP notifications for OSPF are enabled
SNMP notifications Rate Limit: 10 seconds and 7 notifications during the window time
Authentication Failure Notifications are enabled
Bad Packet Notifications are disabled
Virtual Link Bad Packet Notifications are enabled
SNMP IF State Change Notifications are enabled
SNMP Neighbor State Change Notifications are enabled
SNMP Virtual IF State Change Notifications are enabled
SNMP Virtual Neighbor State Change Notifications are enabled

shutdown ipv6 ospf

To initiate a graceful shutdown of the Open Shortest Path First (OSPF) protocol under the current instance, use the shutdown command in router configuration mode. To restart the OSPF protocol, use the no form of this command.

Syntax

shutdown

no shutdown

Parameters

This command has no arguments or keywords.

Default Configuration

OSPF stays active under the current instance.

Command Mode

Router OSPF Configuration mode

User Guidelines

Use the shutdown command in router configuration mode to temporarily shut down a protocol in the least disruptive manner and to notify its neighbors that it is going away. All traffic that has another path through the network will be directed to that alternate path.

The no shutdown command changes the OSPF process router-id if it was reconfigured by the user else if the current used router-id has the default value the command runs the router-id re-election algorithm.

Example

The following example shows how to enable a graceful shutdown of the OSPF protocol:

switchxxxxxx(config)# ipv6 router ospf 1
switchxxxxxx(config-ospf)# shutdown
switchxxxxxx(config-ospf)# exit

snmp-process ipv6 ospf

To specify an OSPF process accessed via the standard OSPF MIB, use the snmp-process ipv6 ospf command in global configuration mode. To return to the default, use the no form of this command.

Syntax

snmp-process ipv6 ospf process-id

no snmp-process ipv6 ospf

Parameters

  • process-id—OSPF process ID.

Default Configuration

The minimal existed OSPF process.

Command Mode

Global Configuration mode

User Guidelines

The standard MIB do not include the OSPF process-ID and by default is mapped to the minimal OSPF process. Use the snmp-process ipv6 command to change the mapping.

Example

The following example maps the standard MIBs to OSPF process 100:

switchxxxxxx(config)# snmp-process ipv6 ospf 100

snmp-server enable traps ipv6 ospf errors

To enable Simple Network Management Protocol (SNMP) notifications for Open Shortest Path First (OSPF) errors, use the snmp-server enable traps ipv6 ospf errors command in global configuration mode. To disable SNMP notifications for OSPF errors, use the no form of thiscommand.

Synatx

snmp-server enable traps ipv6 ospf errors [bad-packet] [virt-bad-packet]

no snmp-server enable traps ipv6 ospf errors [bad-packet][virt-bad-packet]

Parameters

  • bad-packet—Enables only the ospfIfRxBadPacket trap. Allows SNMP notifications to be sent when an OSPF packet that has not been parsed has been received on a nonvirtual interface.

  • virt-bad-packet—Enables only the ospfVirtIfRxBadPacket trap. Allows SNMP notifications to be sent when an OSPF packet that has not been parsed has been received on a virtual interface.

Default Configuration

SNMP notifications for OSPF errors are disabled.

Command Mode

Global Configuration mode

User Guidelines

When you enter the snmp-server enable traps ipv6 ospf errors command without any optional keywords, all OSPF error traps will be enabled. To enable only one or more OSPF error traps, enter one or more of the optional keywords.

Example

The following example enables the router to send all OSPF error notifications:

switchxxxxxx(config)# snmp-server enable traps ipv6 ospf errors

snmp-server enable traps ipv6 ospf rate-limit

To limit the number of Open Shortest Path First (OSPF) traps that are sent during a specified number of seconds, use the snmp-server enable traps ipv6 ospf rate-limit command in global configuration mode. To disable the limit placed on the number of OSPF traps sent during a specified number of seconds, use the no form of this command.

Syntax

snmp-server enable traps ipv6 ospf rate-limit [seconds [trap-number]

no snmp-server enable traps ipv6 ospf rate-limit

Parameters

  • seconds—Sets the rate limit window size, in seconds. A number from 2 to 60. The default value is 10.

  • trap-number—Sets the maximum number of traps sent during the window time. A number from 0 to 300. The default number is 7.

Default Configuration

No limit is placed on the number of OSPF traps sent.

Command Mode

Global Configuration mode

User Guidelines

There is a possibility that a router sends trap bursts, which can drain network resources in a small interval of time. It is recommended that you enter the snmp-server enable traps ipv6 ospf rate-limit command to configure a sliding window mechanism that will limit the number of traps that are sent within a specified number of seconds.

Example

The following example sets the trap rate limit window so that during a 40-second window of time, no more that 50 traps are sent:

switchxxxxxx(config)# snmp-server enable traps ipv6 ospf rate-limit 40 50

snmp-server enable traps ipv6 ospf state-change

To enable Simple Network Management Protocol (SNMP) notifications for Open Shortest Path First (OSPF) transition state changes, use the snmp-server enable traps ipv6 ospf state-change command in global configuration mode. To disable SNMP notifications for OSPF transition state changes, use the no form of this command.

Syntax

snmp-server enable traps ipv6 ospf state-change [if-state-change] [neighbor-state-change] [virtif-state-change] [virtneighbor-state-change]

no snmp-server enable traps ipv6 ospf state-change [if-state-change] [neighbor-state-change] [virtif-state-change] [virtneighbor-state-change]

Parameters

  • if-state-change—Enables only the ospfIfStateChange trap. Sends SNMP notifications when there has been a change in the state of a nonvirtual OSPF interface.

  • neighbor-state-change—Enables only the ospfNbrStateChange trap. Sends SNMP notifications when there has been a change in the state of a nonvirtual OSPF neighbor

  • virtif-state-change—Enables only the ospfVirtIfStateChange trap. Sends SNMP notifications when there has been a change in the state of a virtual OSPF interface.

  • virtneighbor-state-change—Enables only the ospfVirtNbrStateChange trap. Sends SNMP notifications when there has been a change in the state of a virtual OSPF neighbor.

Default Configuration

SNMP notifications for OSPF transition state changes are disabled.

Command Mode

Global Configuration mode

User Guidelines

To enable all traps for transition state changes, enter the snmp-server enable traps ipv6 ospf state-change command without of the optional keywords.

Example

The following example enables the router to send SNMP notifications for transition state changes for virtual interfaces and virtual neighbors:

switchxxxxxx(config)# snmp-server enable traps ipv6 ospf state-change virtif-state-change
virtneighbor-state-change