This section describes the commands you use to view and configure OSPF, which is a linkstate routing protocol that you use to route traffic within a network.
router ospf
Use this command to enter Router OSPF mode.
Format: router ospf
Mode: Global Config
enable (OSPF)
This command resets the default administrative mode of OSPF in the router (active).
Default: enabled
Format: enable
Mode: Router OSPF Config
no enable (OSPF)
This command sets the administrative mode of OSPF in the router to inactive.
Format: no enable
Mode: Router OSPF Config
network
The command is used to configure the network on which the OSPF runs along with the
The command redistributes all the connected routes of the VRF to its OSPF instance.
Format: redistribute connect
Mode: Router OSPF Config
redistribute static
The command redistributes all the static routes of the VRF to its OSPF instance.
Format: redistribute static
Mode: Router OSPF Config
redistribute static
The command redistributes all the static routes of the VRF to its OSPF instance.
Format: redistribute static
Mode: Router OSPF Confignetwork area (OSPF)
Use this command to enable OSPFv2 on an interface and set its area ID if the IP address of an interface is covered by this network command.
Default: disabled
Format: network<ip-address>< wildcard-mask> area <area-id>
Mode: Router OSPF Config
no network area (OSPF)
Use this command to disable the OSPFv2 on a interface if the IP address of an interface was earlier covered by this network command.
Format: no network<ip-address>< wildcard-mask> area <area-id>
Mode: Router OSPF Config
1583compatibility
This command enables OSPF 1583 compatibility.
NOTE: 1583 compatibility mode is enabled by default. If all OSPF routers in the routing domain are capable of operating according to RFC 2328, OSPF 1583 compatibility mode should be disabled.
Default: enabled
Format: 1583compatibility
Mode: Router OSPF Config
no 1583compatibility
This command disables OSPF 1583 compatibility.
Format: no 1583compatibility
Mode: Router OSPF Config
area default-cost (OSPF)
This command configures the default cost for the stub area. You must specify the area ID and an integer value between 1-16777215.
Format: area <areaid> default-cost <1-16777215>
Mode: Router OSPF Config
area nssa (OSPF)
This command configures the specified areaid to function as an NSSA.
Format: area <areaid> nssa
Mode: Router OSPF Config
no area nssa
This command disables nssa from the specified area id.
Format: no area <areaid> nssa
Mode: Router OSPF Config
area nssa default-info-originate (OSPF)
This command configures the metric value and type for the default route advertised into the NSSA. The optional metric parameter specifies the metric of the default route and is to be in a range of 1-16777214. If no metric is specified, the default value is ****. The metric type can be comparable (nssa-external 1) or non-comparable (nssa-external 2).
Format: area <areaid> nssa default-info-originate [<metric>] [{comparable | non-comparable}]
Mode: Router OSPF Config
no area nssa default-info-originate (OSPF)
This command disables the default route advertised into the NSSA.
Format: no area <areaid> nssa default-info-originate
Mode: Router OSPF Config
area nssa no-redistribute (OSPF)
This command configures the NSSA Area Border router (ABR) so that learned external routes will not be redistributed to the NSSA.
Format: area <areaid> nssa no-redistribute
Mode: Router OSPF Config
no area nssa no-redistribute (OSPF)
This command disables the NSSA ABR so that learned external routes are redistributed to the NSSA.
Format: no area <areaid> nssa no-redistribute
Mode: Router OSPF Config
area nssa no-summary (OSPF)
This command configures the NSSA so that summary LSAs are not advertised into the NSSA.
Format: area <areaid> nssa no-summary
Mode: Router OSPF Config
no area nssa no-summary (OSPF)
This command disables nssa from the summary LSAs.
Format: no area <areaid> nssa no-summary
Mode: Router OSPF Config
area nssa translator-role (OSPF)
This command configures the translator role of the NSSA. A value of always causes the router to assume the role of the translator the instant it becomes a border router and a value of candidate causes the router to participate in the translator election process when it attains border router status.
This command disables the nssa translator role from the specified area id.
Format: no area <areaid> nssa translator-role {always | candidate}
Mode: Router OSPF Config
area nssa translator-stab-intv (OSPF)
This command configures the translator <stabilityinterval> of the NSSA. The<stabilityinterval> is the period of time that an elected translator continues to perform its duties after it determines that its translator status has been deposed by another router.
Format: area <areaid> nssa translator-stab-intv <stabilityinterval>
Mode: Router OSPF Config
no area nssa translator-stab-intv (OSPF)
This command disables the nssa translator’s <stabilityinterval> from the specified area id.
Format: no area <areaid> nssa translator-stab-intv <stabilityinterval>
Mode: Router OSPF Config
area range (OSPF)
This command creates a specified area range for a specified NSSA. The <ipaddr> is a valid IP address. The <subnetmask> is a valid subnet mask. The LSDB type must be specified by either summarylink or nssaexternallink, and the advertising of the area range can be allowed or suppressed.
Format: area <areaid> range <ipaddr> <subnetmask> {summarylink | nssaexternallink} [advertise | not-advertise]
Mode: Router OSPF Config
no area range
This command deletes a specified area range. The <ipaddr> is a valid IP address. The <subnetmask> is a valid subnet mask.
Format: no area <areaid> range <ipaddr> <subnetmask>
Mode: Router OSPF Config
area stub (OSPF)
This command creates a stub area for the specified area ID. A stub area is characterized by the fact that AS External LSAs are not propagated into the area. Removing AS External LSAs and Summary LSAs can significantly reduce the link state database of routers within the stub area.
Format: area <areaid> stub
Mode: Router OSPF Config
no area stub
This command deletes a stub area for the specified area ID.
Format: no area <areaid> stub
Mode: Router OSPF Config
area stub no-summary (OSPF)
This command configures the Summary LSA mode for the stub area identified by <areaid>. Use this command to prevent LSA Summaries from being sent.
Default: disabled
Format: area <areaid> stub no-summary
Mode: Router OSPF Config
no area stub no-summary
This command configures the default Summary LSA mode for the stub area identified by <areaid>.
Format: no area <areaid> stub no-summary
Mode: Router OSPF Config
area virtual-link (OSPF)
This command creates the OSPF virtual interface for the specified <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.
Format: area <areaid> virtual-link <neighbor>
Mode: Router OSPF Config
no area virtual-link
This command deletes the OSPF virtual interface from the given interface, identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.
Format: no area <areaid> virtual-link <neighbor>
Mode: Router OSPF Config
area virtual-link authentication
This command configures the authentication type and key for the OSPF virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor. The value for <type> is either none, simple, or encrypt. The [key] is composed of standard displayable, non-control keystrokes from a Standard 101/102-key keyboard. The authentication key must be 8 bytes or less if the authentication type is simple. If the type is encrypt, the key may be up to 16 bytes. Unauthenticated interfaces do not need an authentication key. If the type is encrypt, a key id in the range of 0 and 255 must be specified.The default value for authentication type is none. Neither the default password key nor the default key id are configured.
This command configures the default authentication type for the OSPF virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.
Format: no area <areaid> virtual-link <neighbor> authentication
Mode: Router OSPF Config
area virtual-link dead-interval (OSPF)
This command configures the dead interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor. The range for seconds is 1 to 65535.
Default: 40
Format: area <areaid> virtual-link<neighbor> dead-interval <seconds>
Mode: Router OSPF Config
no area virtual-link dead-interval
This command configures the default dead interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.
Format: no area <areaid> virtual-link <neighbor> dead-interval
Mode: Router OSPF Config
area virtual-link hello-interval (OSPF)
This command configures the hello interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor. The range for <seconds> is 1 to 65535.
Default: 10
Format: area <areaid> virtual-link <neighbor> hello-interval <1-65535>
Mode: Router OSPF Config
no area virtual-link hello-interval
This command configures the default hello interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.
Format: no area <areaid> virtual-link <neighbor> hello-interval
Mode: Router OSPF Config
area virtual-link retransmit-interval (OSPF)
This command configures the retransmit interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor. The range for seconds is 0 to 3600.
Default: 5
Format: area <areaid> virtual-link <neighbor> retransmit-interval <seconds>
Mode: Router OSPF Config
no area virtual-link retransmit-interval
This command configures the default retransmit interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.
Format: no area <areaid> virtual-link <neighbor> retransmit-interval
Mode: Router OSPF Config
area virtual-link transmit-delay (OSPF)
This command configures the transmit delay for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor. The range for seconds is 0 to 3600 (1 hour).
Default: 1
Format: area <areaid> virtual-link <neighbor> transmit-delay <seconds>
Mode: Router OSPF Config
no area virtual-link transmit-delay
This command resets the default transmit delay for the OSPF virtual interface to the default value.
Format: no area <areaid> virtual-link <neighbor> transmit-delay
Mode: Router OSPF Config
auto-cost (OSPF)
By default, OSPF computes the link cost of each interface from the interface bandwidth. Faster links have lower metrics, making them more attractive in route selection. The configuration parameters in the auto cost reference bandwidth and bandwidth commands give you control over the default link cost. You can configure for OSPF an interface bandwidth that is independent of the actual link speed. A second configuration parameter allows you to control the ratio of interface bandwidth to link cost. The link cost is computed as the ratio of a reference bandwidth to the interface bandwidth (ref_bw / interface bandwidth), where interface bandwidth is defined by the bandwidth command. Because the default reference bandwidth is 100 Mbps, OSPF uses the same default link cost for all interfaces whose bandwidth is 100 Mbps or greater. Use the auto-cost command to change the reference bandwidth, specifying the reference bandwidth in megabits per second (Mbps). The reference bandwidth range is 1-4294967 Mbps.
Default: 100 Mbps
Format: auto-cost reference-bandwidth 1-4294967
Mode: Router OSPF Config
no auto-cost reference-bandwidth (OSPF)
Use this command to set the reference bandwidth to the default value.
Format: no auto-cost reference-bandwidth
Mode: Router OSPF Config
capability opaque
Use this command to enable Opaque Capability on the Router. The information contained in Opaque LSAs may be used directly by OSPF or indirectly by an application wishing to distribute information throughout the OSPF domain. The software supports the storing and flooding of Opaque LSAs of different scopes. The default value of enabled means that OSPF will forward opaque LSAs by default. If you want to upgrade from a previous release, where the default was disabled, opaque LSA forwarding will be enabled. If you want to disable opaque LSA forwarding, then you should enter the command no capability opaque in OSPF router configuration mode after the software upgrade
Format: capability opaque
Mode: Router Config
no capability opaque
Use this command to disable opaque capability on the router.
Format: no capability opaque
Mode: Router Config
clear ip ospf
Use this command to disable and re-enable OSPF.
Format: clear ip ospf
Mode: Privileged EXEC
clear ip ospf configuration
Use this command to reset the OSPF configuration to factory defaults.
Format: clear ip ospf configuration
Mode: Privileged EXEC
clear ip ospf counters
Use this command to reset global and interface statistics.
Format: clear ip ospf counters
Mode: Privileged EXEC
clear ip ospf neighbor
Use this command to drop the adjacency with all OSPF neighbors. On each neighbor’s interface, send a one-way hello. Adjacencies may then be re-established. To drop all adjacencies with a specific router ID, specify the neighbor’s Router ID using the optional parameter [neighbor-id].
Format: clear ip ospf neighbor [neighbor-id]
Mode: Privileged EXEC
clear ip ospf neighbor interface
To drop adjacency with all neighbors on a specific interface, use the optional parameter [unit/slot/port]. To drop adjacency with a specific router ID on a specific interface, use the optional parameter [neighbor-id].
Format: clear ip ospf neighbor interface [unit/slot/port] [neighbor-id]
Mode: Privileged EXEC
clear ip ospf redistribution
Use this command to flush all self-originated external LSAs. Reapply the redistribution configuration and re-originate prefixes as necessary.
Format: clear ip ospf redistribution
Mode: Privileged EXEC
default-information originate (OSPF)
This command is used to control the advertisement of default routes.
This command is used to control the advertisement of default routes.
Format: no default-information originate [metric] [metric-type]
Mode: Router OSPF Config
default-metric (OSPF)
This command is used to set a default for the metric of distributed routes.
Format: default-metric <1-16777214>
Mode: Router OSPF Config
no default-metric (OSPF)
This command is used to set a default for the metric of distributed routes.
Format: no default-metric
Mode: Router OSPF Config
distance ospf (OSPF)
This command sets the route preference value of OSPF in the router. Lower route preference values are preferred when determining the best route. The type of OSPF can be intra, inter, type-1, or type-2. The OSPF specification (RFC 2328) requires that preferences must be given to the routes learned via OSPF in the following order: intra< inter < type-1 < type-2. The <preference> range is 1 to 255. A route with a preference of 255 cannot be used to forward traffic.
This command sets the default route preference value of OSPF in the router. The type of OSPF can be intra, inter, type-1, or type-2.
Format: no distance ospf {intra | inter | type1 | type2 | nssa-type1 | nssa-type2} <preference>
Mode: Router OSPF Config
distribute-list out (OSPF)
Use this command to specify the access list to filter routes received from the source protocol.
Format: distribute-list <1-199> out {rip | static | connected}
Mode: Router OSPF Config
no distribute-list out
Use this command to specify the access list to filter routes received from the source protocol.
Format: no distribute-list <1-199> out {rip | static | connected}
Mode: Router OSPF Config
exit-overflow-interval (OSPF)
This command configures the exit overflow interval for OSPF. It describes the number of seconds after entering Overflow state that a router will wait before attempting to leave the Overflow State. This allows the router to again originate non-default AS-external-LSAs. When set to 0, the router will not leave Overflow State until restarted. The range for seconds is 0 to 2147483647 seconds.
Default: 0
Format: exit-overflow-interval <seconds>
Mode: Router OSPF Config
no exit-overflow-interval
This command configures the default exit overflow interval for OSPF.
Format: no exit-overflow-interval
Mode: Router OSPF Config
external-lsdb-limit (OSPF)
This command configures the external LSDB limit for OSPF. If the value is -1, then there is no limit. When the number of non-default AS-external-LSAs in a router's link-state database reaches the external LSDB limit, the router enters overflow state. The router never holds more than the external LSDB limit non-default AS-external-LSAs in it database. The external LSDB limit MUST be set identically in all routers attached to the OSPF backbone and/or any regular OSPF area. The range for limit is -1 to 2147483647.
Default: -1
Format: external-lsdb-limit <limit>
Mode: Router OSPF Config
no external-lsdb-limit
This command configures the default external LSDB limit for OSPF.
Format: no external-lsdb-limit
Mode: Router OSPF Config
log-adjacency-changes
To enable logging of OSPFv2 neighbor state changes, use the log-adjacency-changes command in router configuration mode. State changes are logged with INFORMATIONAL severity.
Default: Adjacency state changes are logged, but without the detail option.
Format: log-adjacency-changes [detail]
Mode: OSPFv2 Router Configuration
detail: (Optional) When this keyword is specified, all adjacency state changes are logged. Otherwise, OSPF only logs transitions to FULL state and when a backwards transition occurs.
no log-adjacency-changes
Use the no form of the command to disable state change logging.
ip ospf area id
This command sets the OSPF area to which the specified router interface belongs. The <areaid> is an IP address, formatted as a 4-digit dotted-decimal number or a decimal value in the range of <0-4294967295>. The <areaid> uniquely identifies the area to which the interface connects. Assigning an area id, which does not exist on an interface, causes the area to be created with default values.
Format: ip ospf areaid <areaid>
Mode: Interface Config
bandwidth
By default, OSPF computes the link cost of an interface as the ratio of the reference bandwidth to the interface bandwidth. Reference bandwidth is specified with the autocost command. For the purpose of the OSPF link cost calculation, use the bandwidth command to specify the interface bandwidth. The bandwidth is specified in kilobits per second. If no bandwidth is configured, the bandwidth defaults to the actual interface bandwidth for port-based routing interfaces and to 10 Mbps for VLAN routing interfaces. This command does not affect the actual speed of an interface. You can use this command to configure a single interface or a range of interfaces.
Default: actual interface bandwidth
Format: bandwidth 1-10000000
Mode: Interface Config
no bandwidth
Use this command to set the interface bandwidth to its default value.
Format: no bandwidth
Mode: Interface Config
ip ospf authentication
This command sets the OSPF Authentication Type and Key for the specified interface. The value of <type> is either none, simple or encrypt. The <key> is composed of standard displayable, non-control keystrokes from a Standard 101/102-key keyboard. The authentication key must be 8 bytes or less if the authentication type is simple. If the type is encrypt, the key may be up to 16 bytes. If the type is encrypt a <keyid> in the range of 0 and 255 must be specified. Unauthenticated interfaces do not need an authentication key or authentication key ID. There is no default value for this command.
This command sets the default OSPF Authentication Type for the specified interface.
Format: no ip ospf authentication
Mode: Interface Config
ip ospf cost
This command configures the cost on an OSPF interface. The <cost> parameter has a range of 1 to 65535.
Default: 10
Format: ip ospf cost <1-65535>
Mode: Interface Config
no ip ospf cost
This command configures the default cost on an OSPF interface.
Format: no ip ospf cost
Mode: Interface Config
ip ospf database-filter all out
Use the ip ospf database-filter all out command in Interface Configuration mode to disable OSPFv2 LSA flooding on an interface.
Default: Disabled
Format: ip ospf database-filter all out
Mode: Interface Configuration
no ip ospf database-filter all out
Use the no ip ospf database-filter all out command in Interface Configuration mode to enable OSPFv2 LSA flooding on an interface.
Default: Disabled
Format: ip ospf database-filter all out
Mode: Interface Configuration
ip ospf dead-interval
This command sets the OSPF dead interval for the specified interface. The value for <seconds> is a valid positive integer, which represents the length of time in seconds that a router's Hello packets have not been seen before its neighbor routers declare that the router is down. The value for the length of time must be the same for all routers attached to a common network. This value should be some multiple of the Hello Interval (i.e. 4). Valid values range in seconds from 1 to 2147483647.
Default: 40
Format: ip ospf dead-interval <seconds>
Mode: Interface Config
no ip ospf dead-interval
This command sets the default OSPF dead interval for the specified interface.
Format: no ip ospf dead-interval
Mode: Interface Config
ip ospf hello-interval
This command sets the OSPF hello interval for the specified interface. The value for seconds is a valid positive integer, which represents the length of time in seconds. The value for the length of time must be the same for all routers attached to a network. Valid values range from 1 to 65535.
Default: 10
Format: ip ospf hello-interval <seconds>
Mode: Interface Config
no ip ospf hello-interval
This command sets the default OSPF hello interval for the specified interface.
Format: no ip ospf hello-interval
Mode: Interface Config
ip ospf priority
This command sets the OSPF priority for the specified router interface. The priority of the interface is a priority integer from 0 to 255. A value of 0 indicates that the router is not eligible to become the designated router on this network.
Default: 1, which is the highest router priority.
Format: ip ospf priority <0-255>
Mode: Interface Config
no ip ospf priority
This command sets the default OSPF priority for the specified router interface.
Format: no ip ospf priority
Mode: Interface Config
ip ospf retransmit-interval
This command sets the OSPF retransmit Interval for the specified interface. The retransmit interval is specified in seconds. The value for <seconds> is the number of seconds between link-state advertisement retransmissions for adjacencies belonging to this router interface. This value is also used when retransmitting database description and link-state request packets. Valid values range from 0 to 3600 (1 hour).
Default: 5
Format: ip ospf retransmit-interval <0-3600>
Mode: Interface Config
no ip ospf retransmit-interval
This command sets the default OSPF retransmit Interval for the specified interface.
Format: no ip ospf retransmit-interval
Mode: Interface Config
ip ospf transmit-delay
This command sets the OSPF Transit Delay for the specified interface. The transmit delay is specified in seconds. In addition, it sets the estimated number of seconds it takes to transmit a link state update packet over this interface. Valid values for <seconds> range from 1 to 3600 (1 hour).
Default: 1
Format: ip ospf transmit-delay <1-3600>
Mode: Interface Config
no ip ospf transmit-delay
This command sets the default OSPF Transit Delay for the specified interface.
Format: no ip ospf transmit-delay
Mode: Interface Config
ip ospf mtu-ignore
This command disables OSPF maximum transmission unit (MTU) mismatch detection. OSPF Database Description packets specify the size of the largest IP packet that can be sent without fragmentation on the interface. When a router receives a Database Description packet, it examines the MTU advertised by the neighbor. By default, if the MTU is larger than the router can accept, the Database Description packet is rejected and the OSPF adjacency is not established.
Default: enabled
Format: ip ospf mtu-ignore
Mode: Interface Config
no ip ospf mtu-ignore
This command enables the OSPF MTU mismatch detection.
Format: no ip ospf mtu-ignore
Mode: Interface Config
router-id (OSPF)
This command sets a 4-digit dotted-decimal number uniquely identifying the router ospf id. The <ipaddress> is a configured value.
Format: router-id <ipaddress>
Mode: Router OSPF Config
redistribute (OSPF)
This command configures OSPF protocol to allow redistribution of routes from the specified source protocol/routers.
This command sets the number of paths that OSPF can report for a given destination where maxpaths is platform dependent.
Default: 4
Format: maximum-paths <maxpaths>
Mode: Router OSPF Config
no maximum-paths
This command resets the number of paths that OSPF can report for a given destination back to its default value.
Format: no maximum-paths
Mode: Router OSPF Config
passive-interface default (OSPF)
Use this command to enable global passive mode by default for all interfaces. It overrides any interface level passive mode. OSPF will not form adjacencies over a passive interface.
Default: disabled
Format: passive-interface default
Mode: Router OSPF Config
no passive-interface default
Use this command to disable the global passive mode by default for all interfaces. Any interface previously configured to be passive reverts to non-passive mode.
Format: no passive-interface default
Mode: Router OSPF Config
passive-interface (OSPF)
Use this command to set the interface or tunnel as passive. It overrides the global passive mode that is currently effective on the interface or tunnel.
Use this command to set the interface or tunnel as non-passive. It overrides the global passive mode that is currently effective on the interface or tunnel.
Format: no passive-interface {unit/slot/port | tunnel tunnel-id}
Mode: Router OSPF Config
timers pacing flood
To adjust the rate at which OSPFv2 sends LS Update packets, use the timers pacing flood command in router OSPFv2 global configuration mode. OSPF distributes routing information in Link State Advertisements (LSAs), which are bundled into Link State Update (LS Update) packets. To reduce the likelihood of sending a neighbor more packets than it can buffer, OSPF rate limits the transmission of LS Update packets. By default, OSPF sends up to 30 updates per second on each interface (1/the pacing interval). Use this command to adjust this packet rate.
Default: 33 milliseconds
Format: timers pacing flood milliseconds
Mode: OSPFv2 Router Configuration
milliseconds: The average time between transmission of LS Update packets. The range is from 5 ms to 100 ms. The default is 33 ms.
no timers pacing flood
To revert LSA transmit pacing to the default rate, use the no timers pacing flood command.
Format: no timers pacing flood
Mode: OSPFv2 Router Configuration
timers pacing lsa-group
To adjust how OSPF groups LSAs for periodic refresh, use the timers pacing lsa-group command in OSPFv2 Router Configuration mode. OSPF refreshes self-originated LSAs approximately once every 30 minutes. When OSPF refreshes LSAs, it considers all self-originated LSAs whose age is from 1800 to 1800 plus the pacing group size. Grouping LSAs for refresh allows OSPF to combine refreshed LSAs into a minimal number of LS Update packets. Minimizing the number of Update packets makes LSA distribution more efficient. When OSPF originates a new or changed LSA, it selects a random refresh delay for the LSA. When the refresh delay expires, OSPF refreshes the LSA. By selecting a random refresh delay, OSPF avoids refreshing a large number of LSAs at one time, even if a large number of LSAs are originated at one time.
Default: 60 seconds
Format: timers pacing lsa-group seconds
Mode: OSPFv2 Router Configuration
seconds: Width of the window in which LSAs are refreshed. The range for the pacing group window is from 10 to 1800 seconds.
timers spf
Use this command to configure the SPF delay time and hold time. The valid range for both parameters is 0-65535 seconds.
Default: delay-time—5; hold-time—10
Format: timers spf <delay-time> <hold-time>
Mode: Router OSPF Config
trapflags (OSPF)
This command enables OSPF traps.
Default: enabled
Format: trapflags
Mode: Router OSPF Config
no trapflags
This command disables OSPF traps.
Format: no trapflags
Mode: Router OSPF Config
OSPF Graceful Restart Commands
The OSPF protocol can be configured to participate in the checkpointing service, so that these protocols can execute a "graceful restart" when the management unit fails. In a graceful restart, the hardware to continues forwarding IPv4 packets using OSPF routes while a backup switch takes over management unit responsibility Graceful restart uses the concept of "helpful neighbors". A fully adjacent router enters helper mode when it receives a link state announcement (LSA) from the restarting management unit indicating its intention of performing a graceful restart. In helper mode, a switch continues to advertise to the rest of the network that they have full adjacencies with the restarting router, thereby avoiding announcement of a topology change and and the potential for flooding of LSAs and shortest-path-first (SPF) runs (which determine OSPF routes). Helpful neighbors continue to forward packets through the restarting router. The restarting router relearns the network topology from its helpful neighbors.
Graceful restart can be enabled for either planned or unplanned restarts, or both. A planned restart is initiated by the operator through the management command initiate failover. The operator may initiate a failover in order to take the management unit out of service (for example, to address a partial hardware failure), to correct faulty system behavior which cannot be corrected through less severe management actions, or other reasons. An unplanned restart is an unexpected failover caused by a fatal hardware failure of the management unit or a software hang or crash on the management unit.
nsf
Use this command to enable the OSPF graceful restart functionality on an interface. To disable graceful restart, use the no form of the command.
Default: Disabled
Format: nsf [ietf] [planned-only]
Mode: OSPF Router Configuration
ietf: This keyword is accepted but not required.
planned-only: This optional keyword indicates that OSPF should only perform a graceful restart when the restart is planned (i.e., when the restart is a result of the initiate failover command).
no nsf
Use this command to disable graceful restart for all restarts.
nsf restart-interval
Use this command to configure the number of seconds that the restarting router asks its neighbors to wait before exiting helper mode. This is referred to as the grace period. The restarting router includes the grace period in its grace LSAs. For planned restarts (using the initiate failover command), the grace LSAs are sent prior to restarting the management unit, whereas for unplanned restarts, they are sent after reboot begins. The grace period must be set long enough to allow the restarting router to reestablish all of its adjacencies and complete a full database exchange with each of those neighbors.
Default: 120 seconds
Format: nsf [ietf] restart-interval 1-1800
Mode: OSPF Router Configuration
ietf: This keyword is accepted but not required.
seconds: The number of seconds that the restarting router asks its neighbors to wait before exiting helper mode. The range is from 1 to 1800 seconds.
no nsfrestart-interval
Use this command to revert the grace period to its default value.
Format: no [ietf] nsf restart-interval
Mode: OSPF Router Configuration
nsf helper
Use this command to enable helpful neighbor functionality for the OSPF protocol. You can enable this functionality for planned or unplanned restarts, or both.
Default: OSPF may act as a helpful neighbor for both planned and unplanned restarts
Format: nsf helper [planned-only]
Mode: OSPF Router Configuration
planned-only: This optional keyword indicates that OSPF should only help a restarting router performing a planned restart.
no nsf helper
Use this command to disable helpful neighbor functionality for OSPF.
Format: no nsf helper
Mode: OSPF Router Configuration
nsf ietf helper disable
Use this command to disable helpful neighbor functionality for OSPF.
Format: nsf ietf helper disable
Mode: OSPF Router Configuration
NOTE: The commands no nsf helper and nsf ietf helper disable are functionally equivalent. The command nsf ietf helper disable is supported solely for compatibility with other network software CLI.
nsf helper strict-lsa-checking
The restarting router is unable to react to topology changes. In particular, the restarting router will not immediately update its forwarding table; therefore, a topology change may introduce forwarding loops or black holes that persist until the graceful restart completes. By exiting the graceful restart on a topology change, a router tries to eliminate the loops or black holes as quickly as possible by routing around the restarting router. A helpful neighbor considers a link down with the restarting router to be a topology change, regardless of the strict LSA checking configuration. Use this command to require that an OSPF helpful neighbor exit helper mode whenever a topology change occurs.
Default: Enabled.
Format: nsf [ietf] helper strict-lsa-checking
Mode: OSPF Router Configuration
ietf: This keyword is accepted but not required.
no nsf [ietf] helper strict-lsa-checking
Use this command to allow OSPF to continue as a helpful neighbor in spite of topology changes.
Default: Enabled.
Format: nsf [ietf] helper strict-lsa-checking
Mode: OSPF Router Configuration
OSPFv2 Stub Router Commands
max-metric router-lsa
To configure OSPF to enter stub router mode, use this command in Router OSPF Global Configuration mode. When OSPF is in stub router mode, as defined by RFC 3137, OSPF sets the metric in the non-stub links in its router LSA to LsInfinity. Other routers therefore compute very long paths through the stub router, and prefer any alternate path. Doing so eliminates all transit traffic through the stub router, when alternate routes are available. Stub router mode is useful when adding or removing a router from a network or to avoid transient routes when a router reloads.
You can administratively force OSPF into stub router mode. OSPF remains in stub router mode until you take OSPF out of stub router mode. Alternatively, you can configure OSPF to start in stub router mode for a configurable period of time after the router boots up. If you set the summary LSA metric to 16,777,215, other routers will skip the summary LSA when they compute routes.
If you have configured the router to enter stub router mode on startup (max-metric router-lsa on-startup), and then enter max-metric router lsa, there is no change. If OSPF is administratively in stub router mode (the maxmetric router-lsa command has been given), and you configure OSPF to enter stub router mode on startup (max-metric router-lsa on-startup), OSPF exits stub router mode (assuming the startup period has expired) and the configuration is updated.
Default: OSPF is not in stub router mode by default
on-startup: (Optional) OSPF starts in stub router mode after a reboot.
seconds: (Required if on-startup) The number of seconds that OSPF remains in stub router mode after a reboot. The range is 5 to 86,400 seconds. There is no default value.
summary-lsa: (Optional) Set the metric in type 3 and type 4 summary LSAs to LsInfinity (0xFFFFFF).
metric: (Optional) Metric to send in summary LSAs when in stub router mode. The range is 1 to 16,777,215. The default is 16,711,680 (0xFF0000).
no max-metric router-lsa
Use this command in OSPFv2 Router Configuration mode to disable stub router mode. The command clears either type of stub router mode (always or on-startup) and resets the summary-lsa option. If OSPF is configured to enter global configuration mode on startup, and during normal operation you want to immediately place OSPF in stub router mode, issue the command no max-metric router-lsa on-startup. The command no max-metric router-lsa summary-lsa causes OSPF to send summary LSAs with metrics computed using normal procedures defined in RFC 2328.
Format: no max-metric router-lsa [on-startup] [summary-lsa]
Mode: OSPFv2 Router Configuration
clear ip ospf stub-router
Use the clear ip ospf stub-router command in Privileged EXEC mode to force OSPF to exit stub router mode when it has automatically entered stub router mode because of a resource limitation. OSPF only exits stub router mode if it entered stub router mode because of a resource limitation or it if is in stub router mode at startup. This command has no effect if OSPF is configured to be in stub router mode permanently.
Format: clear ip ospf stub-router
Mode: Privileged EXEC
OSPF Show Commands
show ip ospf
This command displays information relevant to the OSPF router.
Format: show ip ospf
Mode: Privileged EXEC
Router ID: A 32-bit integer in dotted decimal format identifying the router, about which information is displayed. This is a configured value.
OSPF Admin Mode: Shows whether the administrative mode of OSPF in the router is enabled or disabled. This is a configured value.
RFC 1583 Compatibility: Indicates whether 1583 compatibility is enabled or disabled. This is a configured value.
External LSDB Limit: The maximum number of non-default AS-external-LSA (link state advertisement) entries that can be stored in the link-state database.
Exit Overflow Interval: The number of seconds that, after entering overflow state, a router will attempt to leave overflow state.
Spf Delay Time: The number of seconds between two subsequent changes of LSAs, during which time the routing table calculation is delayed.
Spf Hold Time: The number of seconds between two consecutive spf calculations.
Flood Pacing Interval: The average time, in milliseconds, between LS Update packet transmissions on an interface. This is the value configured with the command Timers pacing flood.
LSA Refresh Group Pacing Time: The size in seconds of the LSA refresh group window. This is the value configured with the command Timers pacing lsa-group.
Opaque Capability: Shows whether the router is capable of sending Opaque LSAs. This is a configured value.
Autocost Ref BW: Shows the value of auto-cost reference bandwidth configured on the router.
Default Passive Setting: Shows whether the interfaces are passive by default.
Maximum Paths: The maximum number of paths that OSPF can report for a given destination.
Default Metric: Default value for redistributed routes.
Stub Router Configuration: When OSPF runs out of resources to store the entire link state database, or any other state information, OSPF goes into stub router mode. As a stub router, OSPF re-originates its own router LSAs, setting the cost of all non-stub interfaces to infinity. Use this field to set stub router configuration to one of Always, Startup, None.
Stub Router Startup Time: Configured value in seconds. This row is only listed if OSPF is configured to be a stub router at startup.
Summary LSA Metric Override: One of Enabled (met), Disabled, where met is the metric to be sent in summary LSAs in stub router mode.
Default Route Advertise: Indicates whether the default routes received from other source protocols are advertised or not.
Always: Shows whether default routes are always advertised.
Metric: The metric of the routes being redistributed. If the metric is not configured, this field is blank.
Metric Type: Shows whether the routes are External Type 1 or External Type 2.
Number of Active Areas: The number of active OSPF areas. An "active" OSPF area is an area with at least one interface up.
ABR Status: Shows whether the router is an OSPF Area Border Router.
ASBR Status: Reflects whether the ASBR mode is enabled or disabled. Enable implies that the router is an autonomous system border router. The router automatically becomes an ASBR when it is configured to redistribute routes learnt from other protocols. The possible values for the ASBR status is enabled (if the router is configured to redistribute routes learned by other protocols) or disabled (if the router is not configured for the same).
Stub Router Status: One of Active, Inactive.
Stub Router Reason: One of Configured, Startup, Resource Limitation. The row is only listed if stub router is active.
Stub Router Time Remaining: The remaining time until OSPF exits stub router mode. This row is only listed if OSPF is in startup stub router mode.
External LSDB Overflow: When the number of non-default external LSAs exceeds the configured limit, External LSDB Limit, OSPF goes into LSDB overflow state. In this state, OSPF withdraws all of its self originated non-default external LSAs. After the Exit Overflow Interval, OSPF leaves the overflow state, if the number of external LSAs has been reduced.
External LSA Count: The number of external (LS type 5) link-state advertisements in the link-state database.
External LSA Checksum: The sum of the LS checksums of external link-state advertisements contained in the link state database.
AS_OPAQUE LSA Count: Shows the number of AS Opaque LSAs in the link-state database.
AS_OPAQUE LSA Checksum: Shows the sum of the LS Checksums of AS Opaque LSAs contained in the link-state database.
New LSAs Originated: The number of new link-state advertisements that have been originated.
LSAs Received: The number of link-state advertisements received determined to be new instantiations.
LSA Count: The total number of link state advertisements currently in the link state database.
Maximum Number of LSAs: The maximum number of LSAs that OSPF can store.
LSA High Water Mark: The maximum size of the link state database since the system started.
AS Scope LSA Flood List Length: The number of LSAs currently in the global flood queue waiting to be flooded through the OSPF domain. LSAs with AS flooding scope, such as type 5 external LSAs and type 11 Opaque LSAs.
Retransmit List Entries: The total number of LSAs waiting to be acknowledged by all neighbors. An LSA may be pending acknowledgment from more than one neighbor.
Maximum Number of Retransmit Entries: The maximum number of LSAs that can be waiting for acknowledgment at any given time.
Retransmit Entries High Water Mark: The maximum number of LSAs on all neighbors retransmit lists at any given time.
NSF Support: Indicates whether nonstop forwarding (NSF) is enabled for the OSPF protocol for planned restarts, unplanned restarts or both (Always).
NSF Restart Interval: The user-configurable grace period during which a neighboring router will be in the helper state after receiving notice that the management unit is performing a graceful restart.
NSF Restart Status: The current graceful restart status of the router: Not Restarting, Planned Restart and Unplanned Restart.
NSF Restart Age: Number of seconds until the graceful restart grace period expires.
NSF Restart Exit Reason: Indicates why the router last exited the last restart:
None: Graceful restart has not been attempted.
In Progress: Restart is in progress.
Completed: The previous graceful restart completed successfully.
Timed Out: The previous graceful restart timed out.
Topology Changed: The previous graceful restart terminated prematurely because of a topology change.
NSF Help Support: Indicates whether helpful neighbor functionality has been enabled for OSPF for planned restarts, unplanned restarts, or both (Always).
NSF help Strict LSA checking: Indicates whether strict LSA checking has been enabled. If enabled, then an OSPF helpful neighbor will exit helper mode whenever a topology change occurs. If disabled, an OSPF neighbor will continue as a helpful neighbor in spite of topology changes.
show ip ospf
This command displays information relevant to the OSPF router.
Format: show ip ospf
Mode: Privileged EXEC
NOTE: Some of the information below displays only if you enable OSPF and configure certain features.
Router ID: A 32-bit integer in dotted decimal format identifying the router, about which information is displayed. This is a configured value.
OSPF Admin Mode: Shows whether the administrative mode of OSPF in the router is enabled or disabled. This is a configured value.
ASBR Mode: Indicates whether the ASBR mode is enabled or disabled. Enable implies that the router is an autonomous system border router. Router automatically becomes an ASBR when it is configured to redistribute routes learnt from other protocol. The possible values for the ASBR status is enabled (if the router is configured to re-distribute routes learnt by other protocols) or disabled (if the router is not configured for the same).
RFC 1583 Compatibility: Indicates whether 1583 compatibility is enabled or disabled. This is a configured value.
ABR Status: Shows whether the router is an OSPF Area Border Router.
Exit Overflow Interval: The number of seconds that, after entering OverflowState, a router will attempt to leave OverflowState.
External LSA Count: The number of external (LS type 5) link-state advertisements in the link-state database.
Spf Delay Time: Specifies the shortest path first delay time in seconds.
Spf Hold Time: Specifies the shortest path first hold time in seconds.
External LSA Checksum: The sum of the LS checksums of external link-state advertisements contained in the link-state database.
New LSAs Originated: The number of new link-state advertisements that have been originated.
LSAs Received: The number of link-state advertisements received determined to be new instantiations.
External LSDB Limit: The maximum number of non-default AS-external-LSAs entries that can be stored in the link-state database.
Default Metric: Default value for redistributed routes.
Default Route Advertise: Indicates whether the default routes received from other source protocols are advertised or not
Always: Shows whether default routes are always advertised.
Metric: The metric for the advertised default routes. If the metric is not configured, this field is blank.
Metric Type: Shows whether the routes are External Type 1 or External Type 2.
Maximum Paths: The maximum number of paths that OSPF can report for a given destination.
Redistributing: This field is a heading and appears only if you configure the system to take routes learned from a non-OSPF source and advertise them to its peers.
Source: The source protocol/routes that are being redistributed. Possible values are static, connected, BGP, or RIP.
Metric: The metric of the routes being redistributed.
Metric: Type Shows whether the routes are External Type 1 or External Type 2.
Tag: The decimal value attached to each external route.
Subnets: For redistributing routes into OSPF, the scope of redistribution for the specified protocol.
Distribute-List: The access list used to filter redistributed routes.
show ip ospf abr
This command displays the internal OSPF routing table entries to Area Border Routers (ABR). This command takes no options.
Format: show ip ospf abr
Modes: Privileged EXEC/User EXEC
Type: The type of the route to the destination. It can be either intra (Intra-area route) or inter(Inter-area route)
Router ID: Router ID of the destination
Cost: Cost of using this route
Area ID: The area ID of the area from which this route is learned.
Next Hop: Next hop toward the destination
Next Hop Intf: The outgoing router interface to use when forwarding traffic to the next hop.
show ip ospf area
This command displays information about the area. The <areaid> identifies the OSPF area that is being displayed.
Format: show ip ospf area <areaid>
Modes: Privileged EXEC/User EXEC
AreaID: The area id of the requested OSPF area.
External Routing: A number representing the external routing capabilities for this area.
Spf Runs: The number of times that the intra-area route table has been calculated using this area's link-state database.
Area Border Router Count: The total number of area border routers reachable within this area.
Area LSA Count: Total number of link-state advertisements in this area's link-state database, excluding AS External LSA's.
Area LSA Checksum: A number representing the Area LSA Checksum for the specified AreaID excluding the external (LS type 5) link-state advertisements.
Import Summary LSAs: Shows whether to import summary LSAs.
OSPF Stub Metric Value: The metric value of the stub area. This field displays only if the area is a configured as a stub area.
The following OSPF NSSA specific information displays only if the area is configured as an NSSA.
Import Summary LSAs: Shows whether to import summary LSAs into the NSSA.
Redistribute into NSSA: Shows whether to redistribute information into the NSSA.
Default Information Originate: Shows whether to advertise a default route into the NSSA
Default Metric: The metric value for the default route advertised into the NSSA.
Default Metric Type: The metric type for the default route advertised into the NSSA.
Translator Role: The NSSA translator role of the ABR, which is always or candidate.
Translator Stability Interval: The amount of time that an elected translator continues to perform its duties after it determines that its translator status has been deposed by another router.
Translator State: Shows whether the ABR translator state is disabled, always, or elected.
show ip ospf asbr
This command displays the internal OSPF routing table entries to Autonomous System Boundary Routers (ASBR). This command takes no options.
Format: show ip ospf asbr
Modes: Privileged EXEC/User EXEC
Type: The type of the route to the destination. It can be either intra(Intra-area route) or inter(Inter-area route)
Router ID: Router ID of the destination
Cost: Cost of using this route
Area ID: The area ID of the area from which this route is learned.
Next Hop: Next hop toward the destination
Next Hop Intf: The outgoing router interface to use when forwarding traffic to the next hop.
show ip ospf database
This command displays information about the link state database when OSPF is enabled. If you do not enter any parameters, the command displays the LSA headers for all areas. Use the optional <areaid> parameter to display database information about a specific area. Use the optional parameters to specify the type of link state advertisements to display. Use asbrsummary to show the autonomous system boundary router (ASBR) summary LSAs. Use external to display the external LSAs. Use network to display the network LSAs. Use nssaexternal to display NSSA external LSAs. Use router to display router LSAs. Use summary to show the LSA database summary information. Use <lsid> to specify the link state ID (LSID). The value of <lsid> can be an IP address or an integer in the range of 0-4294967295. Use adv-router to show the LSAs that are restricted by the advertising router. Use selforiginate to display the LSAs in that are self originated. The information below is only displayed if OSPF is enabled.
For each link-type and area, the following information is displayed.
Link Id: A number that uniquely identifies an LSA that a router originates from all other self originated LSAs of the same LS type.
Adv Router: The Advertising Router. Is a 32 bit dotted decimal number representing the LSDB interface.
Age: A number representing the age of the link state advertisement in seconds.
Sequence: A number that represents which LSA is more recent.
Checksum: The total number LSA checksum.
Options: This is an integer. It indicates that the LSA receives special handling during routing calculations.
Rtr Opt: Router Options are valid for router links only.
show ip ospf database database-summary
Use this command to display the number of each type of LSA in the database for each area and for the router. The command also displays the total number of LSAs in the database.
Format: show ip ospf [<areaid>] database database-summary
Modes: Privileged EXEC/User EXEC
Router: Total number of router LSAs in the OSPF link state database.
Network: Total number of network LSAs in the OSPF link state database.
Summary Net: Total number of summary network LSAs in the database.
Summary ASBR: Number of summary ASBR LSAs in the database.
Type-7 Ext: Total number of Type-7 external LSAs in the database.
Self-Originated Type-7: Total number of self originated AS external LSAs in the OSPFv3 link state database.
Opaque Link: Number of opaque link LSAs in the database.
Opaque Area: Number of opaque area LSAs in the database.
Subtotal: Number of entries for the identified area.
Total: Number of entries for all areas.
show ip ospf interface
This command displays the information for the IFO object or virtual interface tables.
Format: show ip ospf interface {<unit/slot/port> | loopback <loopback-id>}
Modes: Privileged EXEC/User EXEC
IP Address: The IP address for the specified interface.
Secondary IP Address(es): Secondary Ip address for the specified interface.
Subnet Mask: A mask of the network and host portion of the IP address for the OSPF interface.
OSPF Admin Mode: States whether OSPF is enabled or disabled on a router interface.
OSPF Area ID: The OSPF Area Id for the specified interface.
Router Priority: A number representing the OSPF Priority for the specified interface.
Retransmit Interval: A number representing the OSPF Retransmit Interval for the specified interface.
Hello Interval: A number representing the OSPF Hello Interval for the specified interface.
Dead Interval: A number representing the OSPF Dead Interval for the specified interface.
LSA Ack Interval: A number representing the OSPF LSA Acknowledgement Interval for the specified interface.
Iftransit Delay Interval: A number representing the OSPF Transit Delay for the specified interface.
Authentication Type: The OSPF Authentication Type for the specified interface are: none, simple, and encrypt.
The information below will only be displayed if OSPF is enabled.
OSPF Interface Type: Broadcast LANs, such as Ethernet and IEEE 802.5, take the value broadcast. The OSPF Interface Type will be 'broadcast'.
State: The OSPF Interface States are: down, loopback, waiting, point-to-point, designated router, and backup designated router.
Designated Router: The router ID representing the designated router.
Backup Designated Router: The router ID representing the backup designated router.
Number of Link Events: The number of link events.
Metric Cost: The cost of the OSPF interface.
show ip ospf interface brief
This command displays brief information for the IFO object or virtual interface tables.
Format: show ip ospf interface brief
Modes: Privileged EXEC/User EXEC
Interface: Valid slot and port number separated by a forward slash.
Admin Mode: States whether OSPF is enabled or disabled on a router interface.
Area ID: The OSPF Area Id for the specified interface.
Router Priority: A number representing the OSPF Priority for the specified interface.
Hello Interval: A number representing the OSPF Hello Interval for the specified interface.
Dead Interval: A number representing the OSPF Dead Interval for the specified interface.
Retrax Intval: A number representing the OSPF Retransmit Interval for the specified interface.
Retrax Delay: A number representing the OSPF Transit Delay for the specified interface.
LSA Ack Interval: A number representing the OSPF LSA Acknowledgement Interval for the specified interface.
show ip ospf interface stats
This command displays the statistics for a specific interface. The information below will only be displayed if OSPF is enabled.
Format: show ip ospf interface stats <unit/slot/port>
Modes: Privileged EXEC/User EXEC
OSPF Area ID: The area id of this OSPF interface.
Area Border Router Count: The total number of area border routers reachable within this area. This is initially zero, and is calculated in each SPF pass.
AS Border Router Count: The total number of Autonomous System border routers reachable
within this area.
Area LSA Count: The total number of link-state advertisements in this area's link-state database, excluding AS External LSAs.
IP Address: The IP address associated with this OSPF interface.
OSPF Interface Events: The number of times the specified OSPF interface has changed its state, or an error has occurred.
Virtual Events: The number of state changes or errors that occurred on this virtual link.
Neighbor Events: The number of times this neighbor relationship has changed state, or an error has occurred.
External LSA Count: The number of external (LS type 5) link-state advertisements in the link-state database.
Sent Packets: The number of OSPF packets transmitted on the interface.
Received Packets: The number of valid OSPF packets received on the interface.
Discards: The number of received OSPF packets discarded because of an error in the packet or an error in processing the packet.
Bad Version: The number of received OSPF packets whose version field in the OSPF header does not match the version of the OSPF process handling the packet.
Source Not On Local Subnet: The number of received packets discarded because the source IP address is not within a subnet configured on a local interface. This field only applies to OSPFv2.
Virtual Link Not Found: The number of received OSPF packets discarded where the ingress interface is in a non-backbone area and the OSPF header identifies the packet as belonging to the backbone, but OSPF does not have a virtual link to the packet’s sender.
Area Mismatch: The number of OSPF packets discarded because the area ID in the OSPF header is not the area ID configured on the ingress interface.
Invalid Destination Address: The number of OSPF packets discarded because the packet’s destination IP address is not the address of the ingress interface and is not the AllDrRouters or AllSpfRouters multicast addresses.
Wrong Authentication Type: The number of packets discarded because the authentication type specified in the OSPF header does not match the authentication type configured on the ingress interface. This field only applies to OSPFv2.
Authentication Failure: The number of OSPF packets dropped because the sender is not an existing neighbor or the sender’s IP address does not match the previously recorded IP address for that neighbor. This field only applies to OSPFv2.
No Neighbor at Source Address: The number of OSPF packets dropped because the sender is not an existing neighbor or the sender’s IP address does not match the previously recorded IP address for that neighbor. This field is not applicable to Hellos.
Invalid OSPF Packet Type: The number of OSPF packets discarded because the packet type field in the OSPF header is not a known type.
Table below lists the number of OSPF packets of each type sent and received on the interface.
Packet Type
Sent
Received
Hello
6960
6960
Database Description
3
3
LS Request
1
1
LS Update
141
42
LS Acknowledgement
40
135
show ip ospf neighbor
This command displays information about OSPF neighbors. If you do not specify a neighbor IP address, the output displays summary information in a table. If you specify an interface or tunnel, only the information for that interface or tunnel displays. The <ip-address> is the IP address of the neighbor, and when you specify this, detailed information about the neighbor displays. The information below only displays if OSPF is enabled and the interface has a neighbor.
Format: show ip ospf neighbor [interface <unit/slot/port>] [<ip-address>]
Modes: Privileged EXEC/User EXEC
If you do not specify an IP address, a table with the following columns displays for all neighbors or the neighbor associated with the interface that you specify:
Router ID: The 4-digit dotted-decimal number of the neighbor router.
Priority: The OSPF priority for the specified interface. The priority of an interface is a priority integer from 0 to 255. A value of '0' indicates that the router is not eligible to become the designated router on this network.
IP Address: The IP address of the neighbor.
Interface: The interface of the local router in unit/slot/port format.
State: The state of the neighboring routers. Possible values are:
Down: initial state of the neighbor conversation - no recent information has been received from the neighbor.
Attempt: no recent information has been received from the neighbor but a more concerted effort should be made to contact the neighbor.
Init: an Hello packet has recently been seen from the neighbor, but bidirectional communication has not yet been established.
2 way: communication between the two routers is bidirectional.
Exchange start: the first step in creating an adjacency between the two neighboring routers, the goal is to decide which router is the master and to decide upon the initial DD sequence number.
Exchange: the router is describing its entire link state database by sending Database Description packets to the neighbor.
Loading: Link State Request packets are sent to the neighbor asking for the more recent LSAs that have been discovered (but not yet received) in the Exchange state.
Full: the neighboring routers are fully adjacent and they will now appear in router-LSAs and network-LSAs.
Dead Time: The amount of time, in seconds, to wait before the router assumes the neighbor is unreachable.
If you specify an IP address for the neighbor router, the following fields display:
Interface: Valid slot and port number separated by a forward slash.
Neighbor IP Address: The IP address of the neighbor router.
Interface Index: The interface ID of the neighbor router.
Area ID: The area ID of the OSPF area associated with the interface.
Options: An integer value that indicates the optional OSPF capabilities supported by the neighbor. The neighbor's optional OSPF capabilities are also listed in its Hello packets. This enables received Hello Packets to be rejected (i.e., neighbor relationships will not even start to form) if there is a mismatch in certain crucial OSPF capabilities.
Router Priority: The OSPF priority for the specified interface. The priority of an interface is a priority integer from 0 to 255. A value of '0' indicates that the router is not eligible to become the designated router on this network.
Dead Timer due in (secs): Due The amount of time, in seconds, to wait before the router assumes the neighbor is unreachable.
State: The state of the neighboring routers.
Events: The number of times this neighbor relationship has changed state, or an error has occurred.
Retransmission Queue Length: An integer representing the current length of the retransmission queue of the specified neighbor router Id of the specified interface.
show ip ospf range
This command displays information about the area ranges for the specified <areaid>. The <areaid> identifies the OSPF area whose ranges are being displayed.
Format: show ip ospf range <areaid>
Modes: Privileged EXEC/User EXEC
Area ID: The area id of the requested OSPF area.
IP Address: An IP address which represents this area range.
Subnet Mask: A valid subnet mask for this area range.
Lsdb Type: The type of link advertisement associated with this area range.
Advertisement: The status of the advertisement. Advertisement has two possible settings: enabled or disabled.
show ip ospf statistics
This command displays information about recent Shortest Path First (SPF) calculations. The SPF is the OSPF routing table calculation. The output lists the number of times the SPF has run for each OSPF area. A table follows this information. For each of the 15 most recent SPF runs, the table lists how long ago the SPF ran, how long the SPF took, and the reasons why the SPF was scheduled.
Format: show ip ospf statistics
Modes: Privileged EXEC/User EXEC
Delta T: How long ago the SPF ran. The time is in the format hh:mm:ss, giving the hours, minutes, and seconds since the SPF run.
SPF Duration: How long the SPF took in milliseconds.
Reason: The reason the SPF was scheduled. Reason codes are as follows:
R: a router LSA has changed
N: a network LSA has changed
SN: a type 3 network summary LSA has changed
SA: a type 4 ASBR summary LSA has changed
X: a type 5 or type 7 external LSA has changed
show ip ospf stub table
This command displays the OSPF stub table. The information below will only be displayed if OSPF is initialized on the switch.
Format: show ip ospf stub table
Modes: Privileged EXEC/User EXEC
Area ID: A 32-bit identifier for the created stub area.
Type of Service: The type of service associated with the stub metric. The product only supports Normal TOS.
Metric Val: The metric value is applied based on the TOS. It defaults to the least metric of the type of service among the interfaces to other areas. The OSPF cost for a route is a function of the metric value.
Import Summary LSA: Controls the import of summary LSAs into stub areas.
show ip ospf traffic
This command displays OSPFv2 packet and LSA statistics and OSPFv2 message queue statistics. Packet statistics count packets and LSAs since OSPFv2 counters were last cleared (using the command clear ip ospf counters).
Format: show ip ospf traffic
Mode: Privileged EXEC
OSPFv2 Packet Statistics: The number of packets of each type sent and received since OSPF counters were last cleared.
LSAs Retransmitted: The number of LSAs retransmitted by this router since OSPF counters were last cleared.
LS Update Max Receive Rate: The maximum rate of LS Update packets received during any 5-second interval since OSPF counters were last cleared. The rate is in packets per second.
LS Update Max Send Rate: The maximum rate of LS Update packets transmitted during any 5-second interval since OSPF counters were last cleared. The rate is in packets per second.
Number of LSAs Received: The number of LSAs of each type received since OSPF counters were last cleared.
OSPFv2 Queue Statistics: For each OSPFv2 message queue, the current count, the high water mark, the number of packets that failed to be enqueued, and the queue limit. The high water marks are not cleared when OSPF counters are cleared.
NOTE: The clear ip ospf counters command does not clear the message queue high water marks.
show ip ospf virtual-link
This command displays the OSPF Virtual Interface information for a specific area and neighbor. The <areaid> parameter identifies the area and the <neighbor> parameter identifies the neighbor's Router ID.
Format: show ip ospf virtual-link <areaid> <neighbor>
Modes: Privileged EXEC/User EXEC
Area ID: The area id of the requested OSPF area.
Neighbor Router ID: The input neighbor Router ID.
Hello Interval: The configured hello interval for the OSPF virtual interface.
Dead Interval: The configured dead interval for the OSPF virtual interface.
Iftransit Delay Interval: The configured transit delay for the OSPF virtual interface.
Retransmit Interval: The configured retransmit interval for the OSPF virtual interface.
Authentication Type: The configured authentication type of the OSPF virtual interface.
State: The OSPF Interface States are: down, loopback, waiting, point-to-point, designated router, and backup designated router. This is the state of the OSPF interface.
Neighbor State: The neighbor state.
show ip ospf virtual-link brief
This command displays the OSPF Virtual Interface information for all areas in the system.
Format: show ip ospf virtual-link brief
Modes: Privileged EXEC/User EXEC
Area Id: The area id of the requested OSPF area.
Neighbor: The neighbor interface of the OSPF virtual interface.
Hello Interval: The configured hello interval for the OSPF virtual interface.
Dead Interval: The configured dead interval for the OSPF virtual interface.
Retransmit Interval: The configured retransmit interval for the OSPF virtual interface.
Transit Delay: The configured transit delay for the OSPF virtual interface.