OSPF Show Commands
Use these commands to display OSPF information.
show ip ospf
M4350
This command displays information relevant to OSPF on the switch.
| Format | show ip ospf |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| 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 nondefault 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 (Router OSPF Config). |
| 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 (Router OSPF Config). |
| 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 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 reoriginates its own router LSAs, setting the cost of all nonstub 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, in which met is the metric to be sent in summary LSAs when 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 are 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.
Note: The row is only listed if stub router is active.
|
| Stub Router Startup Time Remaining | The remaining time, in seconds, until OSPF exits stub router mode. This row is only listed if OSPF is in startup stub router mode. |
| Stub Router Duration | The time elapsed since the router last entered the stub router mode. The row is only listed if stub router is active and the router entered stub mode because of a resource limitation. The duration is displayed in DD:HH:MM:SS format. |
| External LSDB Overflow | When the number of nondefault 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 nondefault 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. |
| Retransmit Entries High Water Mark | The maximum number of LSAs on all neighbors’ retransmit lists. |
| 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.
|
| 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:
|
| 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. |
| Prefix-suppression | Displays whether prefix-suppression is enabled or disabled. |
(alpha3) #show ip ospf
Router ID...................................... 3.3.3.3
OSPF Admin Mode................................ Enable
RFC 1583 Compatibility......................... Enable
External LSDB Limit............................ No Limit
Exit Overflow Interval......................... 0
Spf Delay Time................................. 5
Spf Hold Time.................................. 10
Flood Pacing Interval.......................... 33 ms
LSA Refresh Group Pacing Time.................. 60 sec
Opaque Capability.............................. Enable
AutoCost Ref BW................................ 100 Mbps
Default Passive Setting........................ Disabled
Maximum Paths.................................. 4
Default Metric................................. Not configured
Stub Router Configuration...................... <val>
Stub Router Startup Time....................... <val> seconds
Summary LSA Metric Override.................... Enabled (<met>)
Default Route Advertise........................ Disabled
Always......................................... FALSE
Metric......................................... Not configured
Metric Type.................................... External Type 2
Number of Active Areas......................... 1 (1 normal, 0 stub, 0 nssa)
ABR Status..................................... Disable
ASBR Status.................................... Disable
Stub Router.................................... FALSE
Stub Router Status............................. Inactive
Stub Router Reason............................. <reason>
Stub Router Startup Time Remaining............. <duration> seconds
Stub Router Duration........................... <duration>
External LSDB Overflow......................... FALSE
External LSA Count............................. 0
External LSA Checksum.......................... 0
AS_OPAQUE LSA Count............................ 0
AS_OPAQUE LSA Checksum......................... 0
New LSAs Originated............................ 55
LSAs Received.................................. 82
LSA Count...................................... 1
Maximum Number of LSAs......................... 24200
LSA High Water Mark............................ 9
AS Scope LSA Flood List Length................. 0
Retransmit List Entries........................ 0
Maximum Number of Retransmit Entries........... 96800
Retransmit Entries High Water Mark............. 1
NSF Helper Support............................. Always
NSF Helper Strict LSA Checking................. Enabled
Prefix-suppression............................. Disabled
show ip ospf abr
M4350
This command displays the internal OSPF routing table entries to Area Border Routers (ABR).
| Format | show ip ospf abr |
| Mode |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| Type |
The type of the route to the destination. It can be either:
|
| 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
M4350
This command displays information about the area. The area-id identifies the OSPF area that is being displayed.
| Format | show ip ospf area area-id |
| Modes |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| 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. |
| Flood List Length | The number of LSAs waiting to be flooded within the area. |
| 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 configured as a stub area. |
The following OSPF NSSA specific information displays only if the area is configured as an NSSA.
| Term | Definition |
|---|---|
| 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. |
Command example:
(R1) #show ip ospf area 1
AreaID......................................... 0.0.0.1
External Routing............................... Import External LSAs
Spf Runs....................................... 10
Area Border Router Count....................... 0
Area LSA Count................................. 3004
Area LSA Checksum.............................. 0x5e0abed
Flood List Length.............................. 0
Import Summary LSAs............................ Enable
show ip ospf asbr
M4350
This command displays the internal OSPF routing table entries to Autonomous System Boundary Routers (ASBR).
| Format | show ip ospf asbr |
| Mode |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| Type |
The type of the route to the destination. It can be one of the following values:
|
| 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
M4350
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 area-id parameter to display database information about a specific area. Use the optional parameters to specify the type of link state advertisements to display.
| Format | show ip ospf [[area-id] database [{database-summary | [{asbr-summary | external | network | nssa-external | opaque-area | opaque-as | opaque-link | router | summary}] [lsid] [{adv-router [ipaddr] | self-originate}]}]] |
| Mode |
Privileged EXEC User EXEC |
| Parameter | Description |
|---|---|
| asbr-summary | Displays the autonomous system boundary router (ASBR) summary LSAs. |
| external | Displays the external LSAs. |
| network | Displays the network LSAs. |
| nssa-external | Displays NSSA external LSAs. |
| opaque-area | Displays area opaque LSAs. |
| opaque-as | Displays AS opaque LSAs. |
| opaque-link | Displays link opaque LSAs. |
| router | Displays router LSAs. |
| summary | Displays the LSA database summary information. |
| lsid | Specifies the link state ID (LSID). The value of lsid can be an IP address or an integer in the range of 0-4294967295. |
| adv-router | Displays the LSAs that are restricted by the advertising router. |
| self-originate | Displays the LSAs that are self originated. |
If OSPF is enabled, for each link-type and area, the following information is displayed:
| Term | Definition |
|---|---|
| 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. It 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
M4350
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 database database-summary |
| Modes |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| 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 OSPF 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. |
| Opaque AS | Number of opaque AS LSAs in the database. |
| Total | Number of entries for all areas. |
show ip ospf interface
M4350
This command displays the information for the physical interface or virtual interface tables. The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id can be a number from 1–4093.
| Format | show ip ospf interface {unit/slot/port | vlan vlan-id | loopback loopback-id} |
| Mode |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| IP Address | The IP address for the specified interface. |
| Subnet Mask | A mask of the network and host portion of the IP address for the OSPF interface. |
| Secondary IP Address(es) | The secondary IP addresses if any are configured on the 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. |
| OSPF Network Type | The type of network on this interface that the OSPF is running on. |
| 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 Acknowledgment Interval for the specified interface. |
| Transmit Delay | A number representing the OSPF Transmit Delay Interval for the specified interface. |
| Authentication Type | The OSPF Authentication Type for the specified interface is: none, simple, and encrypt. |
| Metric Cost | The cost of the OSPF interface. |
| Passive Status | Shows whether the interface is passive or not. |
| OSPF MTU-ignore | Indicates whether to ignore MTU mismatches in database descriptor packets sent from neighboring routers. |
| Flood Blocking | Indicates whether flood blocking is enabled on the interface. |
The information below displays only if OSPF is enabled.
| Term | Definition |
|---|---|
| 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. |
| Local Link LSAs | The number of Link Local Opaque LSAs in the link-state database. |
| Local Link LSA Checksum | The sum of LS Checksums of Link Local Opaque LSAs in the link-state database. |
| Prefix-suppression | Displays whether prefix-suppression is enabled, disabled, or unconfigured on the interface. |
Command example:
The following output displays when the OSPF Admin Mode is disabled:
(NETGEAR Switch) #show ip ospf interface 1/0/1
IP Address..................................... 0.0.0.0
Subnet Mask.................................... 0.0.0.0
Secondary IP Address(es).......................
OSPF Admin Mode................................ Disable
OSPF Area ID................................... 0.0.0.0
OSPF Network Type.............................. Broadcast
Router Priority................................ 1
Retransmit Interval............................ 5
Hello Interval................................. 10
Dead Interval.................................. 40
LSA Ack Interval............................... 1
Transmit Delay................................. 1
Authentication Type............................ None
Metric Cost.................................... 1 (computed)
Passive Status................................. Non-passive interface
OSPF Mtu-ignore................................ Disable
Flood Blocking................................. Disable
OSPF is not enabled on this interface.
show ip ospf interface brief
M4350
This command displays brief information for the physical interface or virtual interface tables.
| Format | show ip ospf interface brief |
| Mode |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| Interface | The interface number. |
| 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. |
| Cost | The metric cost of the OSPF 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. |
| Retransmit Interval | A number representing the OSPF Retransmit Interval for the specified interface. |
| Interface Transmit Delay | A number representing the OSPF Transmit Delay for the specified interface. |
| LSA Ack Interval | A number representing the OSPF LSA Acknowledgment Interval for the specified interface. |
show ip ospf interface stats
M4350
This command displays the statistics for a specific interface. The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id can be a number from 1–4093.
| Format | show ip ospf interface stats {unit/slot/port | vlan vlan-id} |
| Modes |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| 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. |
| 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.
Note: This field applies only to OSPFv2.
|
| Virtual Link Not Found | The number of received OSPF packets discarded where the ingress interface is in a nonbackbone 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.
Note: This field applies only 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.
Note: This field applies only 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.
Note: Does not apply 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. |
| Hellos Ignored | The number of received Hello packets that were ignored by this router from the new neighbors after the limit has been reached for the number of neighbors on an interface or on the system as a whole. |
The following table 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 Acknowledgment | 40 | 135 |
show ip ospf lsa-group
M4350
This command displays the number of self-originated LSAs within each LSA group.
| Format | show ip ospf lsa-group |
| Modes |
Privileged EXEC User EXEC |
| Field | Description |
|---|---|
| Total self-originated LSAs | The number of LSAs the router is currently originating. |
| Average LSAs per group | The number of self-originated LSAs divided by the number of LSA groups. The number of LSA groups is the refresh interval (1800 seconds) divided by the pacing interval (configured with timers pacing lsa-group) plus two. |
| Pacing group limit | The maximum number of self-originated LSAs in one LSA group. If the number of LSAs in a group exceeds this limit, OSPF redistributes LSAs throughout the refresh interval to achieve better balance. |
| Groups | For each LSA pacing group, the output shows the range of LSA ages in the group and the number of LSAs in the group. |
show ip ospf neighbor
M4350
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, only the information for that interface displays.
The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id can be a number from 1–4093.
The ip-address argument is the IP address of the neighbor, and when you specify this, detailed information about the neighbor displays.
| Format | show ip ospf neighbor [interface {unit/slot/port | vlan vlan-id}] [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:
| Term | Definition |
|---|---|
| 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 the unit/slot/port format. |
| State |
The state of the neighboring routers. Possible values are:
|
| 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.
| Term | Definition |
|---|---|
| Interface | The interface number. |
| 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 (that is, 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 | The amount of time, in seconds, to wait before the router assumes the neighbor is unreachable. |
| Up Time | Neighbor uptime; how long since the adjacency last reached the Full state. |
| State | The state of the neighboring routers. |
| Events | The number of times this neighbor relationship has changed state, or an error has occurred. |
| Retransmitted LSAs | The number of LSAs retransmitted to this neighbor. |
| Retransmission Queue Length | An integer representing the current length of the retransmission queue of the specified neighbor router Id of the specified interface. |
| Restart Helper Status |
Indicates the status of this router as a helper during a graceful restart of the router specified in the command line:
|
| Restart Reason |
When this router is in helpful neighbor mode, this indicates the reason for the restart as provided by the restarting router:
When the switch sends a grace LSA, it sets the Restart Reason to Software Restart on a planned warm restart (when the initiate failover command is invoked), and to Unknown on an unplanned warm restart. |
| Remaining Grace Time | The number of seconds remaining in the current graceful restart interval. This is displayed only when this router is currently acting as a helpful neighbor for the router specified in the command. |
| Restart Helper Exit Reason |
Indicates the reason that the specified router last exited a graceful restart.
|
Command example:
(alpha1) #show ip ospf neighbor 170.1.1.50
Interface.....................................0/17
Neighbor IP Address...........................170.1.1.50
Interface Index...............................17
Area Id.......................................0.0.0.2
Options.......................................0x2
Router Priority...............................1
Dead timer due in (secs)......................15
Up Time.......................................0 days 2 hrs 8 mins 46 secs
State.........................................Full/BACKUP-DR
Events........................................4
Retransmitted LSAs............................32
Retransmission Queue Length...................0
Restart Helper Status........................ Helping
Restart Reason............................... Software Restart (1)
Remaining Grace Time......................... 10 sec
Restart Helper Exit Reason................... In Progress
show ip ospf range
M4350
This command displays the set of OSPFv2 area ranges configured for a specified area.
| Format | show ip ospf range area-id |
| Modes | Privileged EXEC |
| Term | Definition |
|---|---|
| Prefix | The summary prefix. |
| Subnet Mask | The subnetwork mask of the summary prefix. |
| Type | S (Summary Link) or E (External Link) |
| Action | Advertise or Suppress |
| Cost | Metric to be advertised when the range is active. If a static cost is not configured, the field displays Auto. If the action is Suppress, the field displays N/A. |
| Active | Whether the range is currently active. Y or N. |
Command example:
(R1) #show ip ospf range 0
Prefix Subnet Mask Type Action Cost Active
10.1.0.0 255.255.0.0 S Advertise Auto N
172.20.0.0 255.255.0.0 S Advertise 500 Y
show ip ospf statistics
M4350
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 command shows statistics for how long ago the SPF ran, how long the SPF took, the reasons why the SPF was scheduled, the individual components of the routing table calculation time and to show the RIB update time. The most recent statistics are displayed at the end of the table.
| Format | show ip ospf statistics |
| Modes | Privileged EXEC |
| Term | Definition |
|---|---|
| Delta T | The time since the routing table was computed. The time is in the format hours, minutes, and seconds (hh:mm:ss). |
| Intra | The time taken to compute intra-area routes, in milliseconds. |
| Summ | The time taken to compute inter-area routes, in milliseconds. |
| Ext | The time taken to compute external routes, in milliseconds. |
| SPF Total | The total time to compute routes, in milliseconds. The total may exceed the sum of the Intra, Summ, and Ext times. |
| RIB Update | The time from the completion of the routing table calculation until all changes have been made in the common routing table [the Routing Information Base (RIB)], in milliseconds. |
| Reason |
The event or events that triggered the SPF. Reason codes are as follows:
|
Command example:
(NETGEAR Switch) #show ip ospf statistics
Area 0.0.0.0: SPF algorithm executed 15 times
Delta T Intra Summ Ext SPF Total RIB Update Reason
00:05:33 0 0 0 0 0 R
00:05:30 0 0 0 0 0 R
00:05:19 0 0 0 0 0 N, SN
00:05:15 0 10 0 10 0 R, N, SN
00:05:11 0 0 0 0 0 R
00:04:50 0 60 0 60 460 R, N
00:04:46 0 90 0 100 60 R, N
00:03:42 0 70 10 90 160 R
00:03:39 0 70 40 120 240 X
00:03:36 0 60 60 130 160 X
00:01:28 0 60 50 130 240 X
00:01:25 0 30 50 110 310 SN
00:01:22 0 0 40 50 260 SN
00:01:19 0 0 20 20 190 X
00:01:16 0 0 0 0 110 R, X
show ip ospf stub table
M4350
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 |
| Term | Definition |
|---|---|
| Area ID | A 32-bit identifier for the created stub area. |
| Type of Service | The type of service associated with the stub metric. NETGEAR supports only 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
M4350
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 |
| Modes | Privileged EXEC |
| Parameter | Description |
|---|---|
| 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. |
Command example:
(NETGEAR Switch) #show ip ospf traffic
Time Since Counters Cleared: 4000 seconds
OSPFv2 Packet Statistics
Hello Database Desc LS Request LS Update LS ACK Total
Recd: 500 10 20 50 20 600
Sent: 400 8 16 40 16 480
LSAs Retransmitted................0
LS Update Max Receive Rate........20 pps
LS Update Max Send Rate...........10 pps
Number of LSAs Received
T1 (NETGEAR Switch)...............10
T2 (Network)......................0
T3 (Net Summary)..................300
T4 (ASBR Summary).................15
T5 (External).....................20
T7 (NSSA External)................0
T9 (Link Opaque)..................0
T10 (Area Opaque).................0
T11 (AS Opaque)...................0
Total.............................345
OSPFv2 Queue Statistics
Current Max Drops Limit
Hello 0 10 0 500
ACK 2 12 0 1680
Data 24 47 0 500
Event 1 8 0 1000
show ip ospf virtual-link
M4350
This command displays the OSPF Virtual Interface information for a specific area and neighbor. The area-id parameter identifies the area and the neighbor parameter identifies the neighbor's router ID.
| Format | show ip ospf virtual-link area-id neighbor |
| Modes |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| 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. |
| Interface Transmit Delay | The configured transmit 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
M4350
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 |
| Term | Definition |
|---|---|
| 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. |
| Transmit Delay | The configured transmit delay for the OSPF virtual interface. |