Monitoring OSPF
Two sets of commands enable you to monitor OSPF operation on your router: the debug and the show commands. Both sets of commands provide information about your router's OSPF state and configuration.
The task you are performing with each of these monitoring commands is basically the same for each command; that is, you are requesting information. The results of this request can vary. For instance, the debug commands provide information (some of which is dynamically obtained from router logs) about problems with the network or the router, whereas the show commands provide information about the actual state and configuration of your router.
debug Commands
The debug commands provide information about the following OSPF items:
- Adjacencies
- Designated router
- General events
- Link-state advertisements
- Neighbors
- Packets received
- Packets sent
- Route events
- SPF events
debug ip ospf
- Use to display information about selected OSPF events. This command has many keywords so you can specify a variety of OSPF events.
- You can set the level of severity for the events you want displayed: 07.
- You can set the verbosity of the messages you want displayed: low, medium, high.
- Example 1
host1#debug ip ospf adjExample 2 host1#debug ipv6 ospf lsaUse the no version to cancel the display of any information about the designated variable. ospf log-adjacency-changes
host1(config-router)#ospf log-adjacency-changesUse the no version to disable the logging of changes in the state of an OSPF neighbor. undebug ip ospf
- Use to cancel the display of information about a selected event.
- The same OSPF variables can be designated as in the debug ip ospf or debug ipv6 ospf commands.
- Example 1
host1#undebug ip ospf adjExample 2 host1#undebug ipv6 ospf lsaThere is no no version. show Commands
The show commands provide information about the following OSPFv2 and OSPFv3 items:
- Routing processes
- Border routers
- Database
- Interfaces
- Neighbors
- Traffic
- Virtual links
- Internal statistics
- MPLS tunnels and opaque LSAs
You can use the output filtering feature of the show command to include or exclude lines of output based on a text string you specify. See JUNOSe System Basics Configuration Guide, Chapter 2, Command-Line Interface, for details.
show ip ospf
- Routing ProcessProcess ID, router ID, domain ID
- OSPF administrative stateEnabled or disabled
- OSPF operational stateEnabled or disabled
- Incremental External SPFOn or off
- Graceful Restart CapabilityOn or off
- Time limit to complete graceful restartAmount of time (in seconds) during which the router can reacquire OSPF neighbors that were fully operational prior to the restart
- Time limit to flush grace LSAsAmount of time (in seconds) during which the router can remove grace LSAs over all interfaces
- Graceful Restart Helper CapabilityOn or off
- Graceful Restart Help:
- Not Aborted On Topology Change
- Aborted On Any Topology Change
- Aborted On Any Non-External Topology Change
- OSPF set trap fieldEnabled or disabled
- RouterRouter types: internal, area border, or autonomous system boundary routers
- OSPF StatisticsPackets received and sent; LSA discard count
- TOS typeNumber of types of service supported
- SPF timersTimers configured on the router
- Maximum path splitsMaximum equal-cost paths supported
- AreasAreas configured and their parameters
- Number of areasNumber of areas in the router
host1#show ip ospfRouting Process OSPF 1 with Router ID, 0.0.0.0, Domain ID 0.0.0.0 OSPF administrative state is enabled OSPF operational state is disabled Incremental External SPF is ON Graceful Restart Capability is ON Time limit to complete graceful restart 180 seconds Time limit to flush grace LSAs 15 seconds Graceful Restart Helper Capability is OFF Graceful Restart Help Not Aborted On Topology Change Ospf set trap field disabled OSPF Statistics: Rcvd: 0 total, 0 checksum errors 0 hello, 0 database desc, 0 link state req 0 link state updates, 0 link state acks Sent: 0 total, 0 pkts dropped 0 hello, 0 database desc, 0 link state req 0 link state updates, 0 link state acks LSA discard count: 0 Supports only single TOS(TOS0) routes SPF schedule delay 0 secs, Hold time between two SPFs 3 secs Maximum path splits 4 Number of active areas in this router is 0 0 normal, 0 stub, 0 NSSA.Example 2 host1#show ip ospfRouting Process OSPF 4 with Router ID, 10.0.0.1, Domain ID 0.0.0OSPF administrative state is enabledOSPF operational state is enabledIncremental External SPF is ONGraceful Restart Capability is OFFGraceful Restart Helper Capability is OFFGraceful Restart Help Not Aborted On Topology ChangeOspf set trap field disabledOSPF Statistics:Rcvd: 0 total, 0 pkts dropped, 0 checksum errors0 hello, 0 database desc, 0 link state req0 link state updates, 0 link state acksSent: 1 total, 0 pkts dropped1 hello, 0 database desc, 0 link state req0 link state updates, 0 link state acksLSA discard count: 0Supports only single TOS(TOS0) routesSPF schedule delay 0 secs, Hold time between two SPFs 3 secsMaximum path splits 4Area BACKBONE(0.0.0.0)SPF algorithm executed 5 timesABDR count 0ASBDR count 0LSA Count 1Number of interfaces in this area is 1Area ranges are:Area 0.0.0.1Area is a stub areaType-3 summary is filteredSPF algorithm executed 5 timesABDR count 0ASBDR count 0LSA Count 0Number of interfaces in this area is 0Area ranges are:Area 0.0.0.2Area is nssaType-3 summary is filteredSPF algorithm executed 4 timesABDR count 0ASBDR count 0LSA Count 0Number of interfaces in this area is 0Area ranges are:Area 0.0.0.5Area is nssaSPF algorithm executed 3 timesABDR count 0ASBDR count 0LSA Count 0Number of interfaces in this area is 0Area ranges are:Number of active areas in this router is 41 normal, 1 stub, 2 NSSA.Example 3 host1#show ipv6 ospfRouting Process OSPFv3 1 with Router ID 10.1.1.1OSPFv3 administrative state is enabledOSPFv3 operational state is enabledIncremental External SPF is OFFGraceful Restart capability is OFFGraceful Restart helper capability is OFFOspf set trap field disabledSPF schedule delay 0 secs, Hold time between two SPFs 3 secsMaximum path splits 4Area BACKBONE(0.0.0.0)SPF algorithm executed 13 timesABDR count 1ASBDR count 1LSA Count 117Number of interfaces in this area is 3Area ranges are:Number of active areas in this router is 11 normal, 0 stub, 0 NSSA.show ip ospf border-routers
- DestinationDestination's router ID
- NEXT HOPNext hop toward the destination
- InterfaceInterface for which you are obtaining the information
- Router TypeRouter type of the destination: either an ABR or AS boundary router, or both
- Route TypeType of this route: either an intra-area or interarea route
- AreaArea ID of the area from which this route is learned
host1#show ip ospf border-routersDestination NEXT HOP Interface Router Type Route Type Area5.5.0.250 5.5.6.250 fastethernet0 ABR/ASBR INTRA 0.0.0.05.5.0 250 4.4.4.250 fastethernet0 ABR/ASBR INTRA 0.0.0.16.6.6.250 4.4.4.13 fastethernet0 ABR INTRA 0.0.0.1Example 2 host1#show ipv6 ospf border-routersOSPF Area Border RoutersDestination NEXT_HOP Interface RouteType Area10.0.0.10 FE80::3 ATM4/1.39 INTRA 0.0.0.010.0.0.11 FE80::4 ATM4/0.41 INTRA 0.0.0.010.0.0.11 FE80::5 ATM4/1.48 INTRA 100.0.0.1OSPF Autonomous System Border RoutersDestination NEXT_HOP Interface RouteType Area10.1.1.4 FE80::3 ATM4/1.39 INTER 0.0.0.010.1.1.5 FE80::4 ATM4/0.41 INTER 0.0.0.0show ip ospf database
- Use to display the full IP OSPF database, a summary of the database, or LSAs specific to the given area.
- Field descriptions
- For router links, set to the router's OSPF router ID
- For network links, set to the IP interface address of the network's designated router
- For type 3 summary LSAs, set to an IP network number
- For type 4 summary LSAs, set to an AS boundary router ID
- For type 5 externals, set to an IP network number
- For link LSAs, set to the interface ID
- For network links, set to the interface ID
- For router links, set to integer
- For intra-area prefix links, set to integer
- For interarea prefix links, set to integer
- For interarea router links, set to integer
- For external links, set to integer
- For grace links, set to integer
- ADV RouterID of the advertising router
- AgeLink-state age
- Seq#Link-state sequence number (detects old or duplicate LSAs)
- ChecksumFletcher checksum of the complete contents of the LSA
- AreaArea for which data is displayed
- RouterNumber of router LSAs
- NetworkNumber of network LSAs
- Intra-PrefixNumber of intra-prefix LSAs
- Inter-PrefixNumber of inter-prefix LSAs
- Inter-RouterNumber of inter-outer LSAs
- Link LSAsNumber of link LSAs
- Grace LSAsNumber of graceful restart LSAs
- External LSAsNumber of external LSAs
- MaxAgeNumber of LSAs that have reached the maximum age
- AreaArea for this LSA
- LS ageLSA age
- OptionsOptional capabilities supported by this router
- LS TypeLSA type
- Link State IDLink-state ID of the link local LSA
- LengthLength of the LSA (in bytes)
- Bit setBit set used by this LSA type
- Link connected toType of network to which the link connects
- Neighboring router's Router IDRouter ID of the neighboring router
- Neighboring router's Interface IDInterface ID of the neighboring router
- Local Interface IDLocal interface ID
- MetricCost of this interface
- Attached RouterAddresses of any attached routers
- Router PriorityPriority value configured for the router
- Link Local AddressOriginating router's link-local interface address on the link
- PrefixesPrefixes associated with this LSA
- Number of PrefixesNumber of prefixes associated with this LSA
- Referenced LSA TypeRouter LSA or network LSA with which the IPv6 address prefixes should be associated
- Referenced LSA Advertising RouterRouter LSA or network LSA with which the IPv6 address prefixes should be associated
- Referenced LSA IDRouter LSA or network LSA with which the IPv6 address prefixes should be associated
- asbrAddress of the AS boundary router
- LS Seq NumberSequence number of the LSA
- TLVsType of TLV included in LSA
- 1(Restart duration)Duration of the restart, in seconds
- 2(Restart Reason)Reason that the peer restarted: Unknown, Software Restart, Software Reload, Software Upgrade, Switch to redundant control processor
- 3(Unknown)Any recognized type is listed as type 3, unknown; consequently the meaning and units of the value are unknown as well
- lengthLength of the TLV; varies according to the TLV
- ValueValue of the TLV; varies according to TLV
host1#show ip ospf databaseOSPF DatabaseRouter Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# Checksum5.1.101.1 5.1.101.1 932 0x80000069 0x102f192.168.1.13 192.168.1.13 1763 0x80000099 0xaa4e192.168.1.10 192.168.1.10 285 0x80000087 0xada6192.168.1.11 192.168.1.11 401 0x80000087 0xaba5192.168.24.6 192.168.24.6 622 0x800005bf 0x6087Network Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# Checksum56.56.56.220 5.6.6.1 499 0x80000069 0x26a0192.168.1.12 192.168.254.6 622 0x8000009e 0xebc2Summary Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# Checksum4.4.4.0 5.5.0.250 497 0x8000005a 0x2ca64.4.4.0 192.168.1.13 528 0x80000059 0x 45dAS Summary Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# Checksum5.5.0.250 192.168.1.13 491 0x80000002 0xe9d4AS External Link StatesLink ID ADV Router Age Seq# Checksum8.8.8.0 5.5.0.250 502 0x8000005f 0x2d67Router Link States (Area 0.0.0.1)Link ID ADV Router Age Seq# Checksum5.5.0.250 5.5.0.250 498 0x80000067 0xdec1192.168.1.13 192.168.1.13 505 0x800000a5 0x3b32Network Link States (Area 0.0.0.1)Link ID ADV Router Age Seq# Checksum4.4.4.13 192.168.1.13 505 0x80000001 0x410b5.1.0.0 192.168.1.13 940 0x80000059 0x82c45.2.0.0 5.5.0.250 495 0x80000001 0x51bf5.2.0.0 192.168.1.13 932 0x80000059 0x76cf5.3.0.0 5.5.0.250 495 0x80000001 0x45ca5.3.0.0 192.168.1.13 932 0x80000059 0x6ada56.56.56.0 5.5.0.250 495 0x80000062 0xc469AS Summary Link States (Area 0.0.0.1)Link ID ADV Router Age Seq# Checksum5.5.0.250 5.5.0.250 496 0x800000001 0x51c0Example 2OSPFv3 general output host1#show ipv6 ospf databaseOSPF DatabaseV3 Router Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# Checksum0.0.0.0 2.2.2.2 167 0x80000003 0xa9e30.0.0.0 3.3.3.3 168 0x80000002 0x2c63V3 Inter-Area Net Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# Checksum0.0.0.1 2.2.2.2 33 0x80000004 0x5288V3 Inter-Area Router Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# Checksum0.0.0.1 2.2.2.2 33 0x80000001 0x a0fV3 Intra-Area Prefix Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# Checksum0.0.0.1 2.2.2.2 167 0x80000003 0xc8ba0.0.0.1 3.3.3.3 168 0x80000003 0xdc9eV3 Link Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# Checksum50.0.0.10 2.2.2.2 178 0x80000001 0xb51d50.0.0.13 3.3.3.3 178 0x80000001 0x8c3eV3 Router Link States (Area 0.0.0.1)Link ID ADV Router Age Seq# Checksum0.0.0.0 1.1.1.1 40 0x80000003 0xf7a40.0.0.0 2.2.2.2 168 0x80000003 0x7825V3 Inter-Area Net Link States (Area 0.0.0.1)Link ID ADV Router Age Seq# Checksum0.0.0.2 2.2.2.2 33 0x80000004 0x6a4fV3 Intra-Area Prefix Link States (Area 0.0.0.1)Link ID ADV Router Age Seq# Checksum0.0.0.1 1.1.1.1 169 0x80000003 0x911a0.0.0.1 2.2.2.2 168 0x80000003 0xa5fdV3 Link Link States (Area 0.0.0.1)Link ID ADV Router Age Seq# Checksum50.0.0.6 1.1.1.1 180 0x80000001 0x44b750.0.0.9 2.2.2.2 178 0x80000001 0x1bd8V3 External Link StatesLink ID ADV Router Age Seq# Checksum0.0.0.1 1.1.1.1 40 0x80000001 0xe5a0Example 3OSPFv3 database summary information host1:v2#show ipv6 ospf database database-summaryArea Router Network Intra-Prefix Inter-Prefix Inter-Router------- ------ ------- ------------ ------------ ------------0.0.0.0 2 1 3 0 0Area MaxAge------- ------0.0.0.0 0Link LSAs: 2, Max age: 0Grace LSAs: 1, Max age: 0External LSAs: 0, Max age: 0Example 4OSPFv3 LSA output (router) host1#show ipv6 ospf database routerV3 Router Link States (Area 0.0.0.0)LS age: 433Options: ( V6-Bit , R-Bit , ExternalRoutingCapability, No Nssa-LSA)LS Type: Router LinksLink State ID: 0.0.0.0Advertising Router: 1.1.1.1LS Seq Number: 0x80000002Checksum: 0x c90Length: 40Bit E setLink connected to: a Point To Point NetworkNeighboring router's Router Id: 2.2.2.2Neighboring router's Interface Id: 0x3200000aLocal Interface ID : 0x32000006Metric 1LS age: 432Options: ( V6-Bit , R-Bit , ExternalRoutingCapability, No Nssa-LSA)LS Type: Router LinksLink State ID: 0.0.0.0Advertising Router: 2.2.2.2LS Seq Number: 0x80000002Checksum: 0x8519Length: 40Link connected to: a Point To Point NetworkNeighboring router's Router Id: 1.1.1.1Neighboring router's Interface Id: 0x32000006Local Interface ID : 0x3200000aMetric 1Example 5OSPFv3 LSA output (network) host1#show ipv6 ospf database network(Area 0.0.0.1)LS Type: Network LSALink State ID: 0.0.0.14Advertising Router: 3.3.3.3LS age: 131LS Seq Number: 0x80000001Checksum: 0x6c69Length: 32Options: V6-bit set, ExternalRoutingCapability, R-bit setAttached Router: 3.3.3.3Attached Router: 2.2.2.2Example 6OSPFv3 LSA output (link) host1#show ipv6 ospf database linkV3 Link Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# ChecksumLS age: 280LS Type: LinkLink State ID: 0x32000006Advertising Router: 1.1.1.1LS Seq Number: 0x80000001Checksum: 0x44b7Length: 56Router Priority 0Link Local Address fe80::90:1a00:200:670Prefixes1:1:1:1000:: / 60 options 0 metric 0LS age: 282LS Type: LinkLink State ID: 0x3200000aAdvertising Router: 2.2.2.2LS Seq Number: 0x80000001Checksum: 0x11e1Length: 56Router Priority 0Link Local Address fe80::90:1a00:300:670Prefixes1:1:1:1000:: / 60 options 0 metric 0Example 7OSPFv3 LSA output (intra-area-prefix) host1#show ipv6 ospf database intra-area-prefixV3 Intra Area Prefix Link States (Area 0.0.0.0)LS age: 162LS Type: Intra Area Prefix LinksLink State ID: 0.0.0.1Advertising Router: 1.1.1.1LS Seq Number: 0x80000003Checksum: 0x911aLength: 44Number of Prefixes 1Referenced LSA Type 0x 2001Referenced LSA Advertising Router 1.1.1.1Referenced LSA ID 0Prefixes1:1:1:1000:: / 60 options 0 metric 1LS age: 161LS Type: Intra Area Prefix LinksLink State ID: 0.0.0.1Advertising Router: 2.2.2.2LS Seq Number: 0x80000003Checksum: 0xa5fdLength: 44Number of Prefixes 1Referenced LSA Type 0x 2001Referenced LSA Advertising Router 2.2.2.2Referenced LSA ID 0Prefixes1:1:1:1000:: / 60 options 0 metric 1Example 8OSPFv3 LSA output (interarea router) host1#show ipv6 ospf database inter-area-routerV3 Inter-Area-Router Link States (Area 0.0.0.0)LS age: 304LS Type: Inter Area Net LinksLink State ID: 0.0.0.1Advertising Router: 2.2.2.2LS Seq Number: 0x80000001Checksum: 0x a0fLength: 32Metric: 1Options: 19asbr: 1.1.1.1Example 9OSPFv3 LSA output (graceful restart helper) host1#show ipv6 ospf database graceV3 Grace Link States (Area 0.0.0.1)LS age: 3LS Type: GraceLink State ID: 0x00000002Advertising Router: 2.2.2.2LS Seq Number: 0x80000001Checksum: 0x8409Length: 44TLVsType: 1(Restart duration), length: 4, Value: 150Type: 2(Restart Reason), length: 1, Value: 2(Software Reload)Type: 3(Unknown), length: 4, Value: 33686018show ip ospf database link-local
- InterfaceInterface for which you are obtaining link-local LSA
- LS ageAge of LSA
- LS TypeType of LSA (Link Local)
- Link State IDLink-state ID of the link local LSA
- Advertising RouterRouter ID of the router that originated the LSA
- LS Seq NumberLink-state sequence number to identify duplicate or old LSIDs
- ChecksumChecksum of the complete contents of the LSA
- LengthLength of the LSA in bytes
- Opaque LSA TypeType of opaque LSA
- NeighborNeighbor IP address
- Grace PeriodHelper grace period in seconds
- Restart ReasonReason for restart; Planned Restart or Unplanned Restart
host1#show ip ospf database link-localLink-Local StatesInterface : ATM1/3.80LS age: 17LS Type: Link LocalLink State ID: 3.0.0.0Advertising Router: 100.1.1.67LS Seq Number: 0x80000002Checksum: 0xac91Length: 36Opaque LSA Type : Restart GraceNeighbor 0.0.0.0Grace Period 90 secondsRestart Reason : Unplanned Restartshow ip ospf database opaque-area
- Use to display lists of information about the TE opaque LSAs.
- The TE router address LSA describes a stable IP address on the originating router that can be used for TE purposessuch as setting up TE LSPs to this address.
- The TE link LSA describes TE information about an interface on the originating router.
- Field descriptions
- LS ageAge of LSA
- OptionsOptional capabilities supported by the described portion of the routing domain
- LS TypeType of LSA; opaque area TE router address or opaque area TE link LSA
- Link State IDLink-state ID of the opaque LSA
- Advertising RouterRouter ID of the router that originated the LSA
- LS Seq NumberLink-state sequence number to identify duplicate or old LSIDs
- ChecksumChecksum of the complete contents of the LSA
- LengthLength of the LSA in bytes
- TE Router-IDTraffic engineering router ID of the originating router
- Link TypePoint-to-point or multiaccess
- Link IDFor point-to-point interfaces, this is the router ID of the router at the remote end; for multiaccess interfaces, this is the address of the DR
- Local AddressIP address of the local interface for the link
- Remote AddressIP address of the remote (neighbor's) interface for the link
- TE MetricLink metric for traffic engineering purposes; can be different from the standard OSPF link
- Max BWMaximum bandwidth that can be used on this link in this direction
- Max Reservable BWMaximum bandwidth that can be reserved on this link; can exceed the maximum bandwidth in the event of oversubscription
- Max Unreserved BWAmount of bandwidth not yet reserved at each of the eight priority levels; each value is less than or equal to the maximum reservable bandwidth
- ColorBitmask that specifies the administrative group membership for this link; a link that is a member of more than one group will have multiple bits set
host1#show ip ospf database opaque-areaOpaque-area Link States (Area 0.0.0.0)LS age: 914Options: (TOS-capable, No Type7-LSA, ExternalRoutingCapability, NoMulticast Capability, No External Attributes LSA)LS Type: Opaque-Area (TE Router Address)Link State ID: 1.0.0.0(Instance)Advertising Router: 100.1.1.1LS Seq Number: 0x80000003Checksum: 0xd293Length: 28TE Router-ID: 100.1.1.1LS age: 919Options: (TOS-capable, No Type7-LSA, ExternalRoutingCapability, NoMulticast Capability, No External Attributes LSA)LS Type: Opaque-Area (TE Links)Link State ID: 1.0.0.1(Instance)Advertising Router: 100.1.1.1LS Seq Number: 0x80000003Checksum: 0xf66eLength: 124Link Type: P2PLink ID: 1744896257Local Address 14.1.1.2Remote Address 14.1.1.1TE Metric 0Max BW 1000 kb/sec (125000 Bps)Max Reservable BW 1000 kb/sec (125000 Bps)Max Unreserved BW : pri 0 1000 kb/sec (125000 Bps)Max Unreserved BW : pri 1 1000 kb/sec (125000 Bps)Max Unreserved BW : pri 2 1000 kb/sec (125000 Bps)Max Unreserved BW : pri 3 1000 kb/sec (125000 Bps)Max Unreserved BW : pri 4 1000 kb/sec (125000 Bps)Max Unreserved BW : pri 5 1000 kb/sec (125000 Bps)Max Unreserved BW : pri 6 1000 kb/sec (125000 Bps)Max Unreserved BW : pri 7 1000 kb/sec (125000 Bps)Color 0show ip ospf interface
- Use to display a list of OSPFv2 or OSPFv3 interfaces.
- Use the optional areaId or areaIdInt values to specify an OSPF area ID in either IP or decimal format.
- Field descriptions
- Interface value (fastEthernet)Status of the physical link and the operational status of the protocol
- Internet AddressInterface IP address
- AreaArea identifier: IP address
- Network typeBroadcast, NBMA, Point-to-Point, or Point-to-Multipoint
- Authentication typeNone, simple, or MD5
- CostMetric for OSPF transmission
- Transmit DelayTime between transmissions from the specified interface
- Interface StateCurrent state of the specified interface
- PriorityRouter's priority on the specified interface
- Designated RouterDesignated router ID and respective interface IP address
- Backup Designated RouterDesignated router ID and respective interface IP address of the backup router
- Timer intervalsConfiguration of timer intervals: Hello, Dead, Wait, and Retransmit
- Neighbor CountNumber of neighbors and their state; adjacent neighbors
- LDP is configured through LDP autoconfigIndicates whether LDP is configured on the interface by means of autoconfiguration; supported only for OSPFv2
- LDP-IGP SynchronizationStatus of synchronization, Achieved or Pending; supported only for OSPFv2
host1#show ip ospf interfaceFastEthernet0 is up, OSPF line protocol is upOSPF interface configuration:Internet Address 192.168.1.250, Area 0.0.0.0Network type BROADCAST, No authenticationCost: 1Transmit Delay is 1 sec, Interface State DROTHER, Priority 1Designated Router (Interface address) 192.168.1.107Backup Designated Router (Interface address) 192.168.1.214Timer intervals configured, Hello 10, Dead 40, Wait 120, Retransmit 5Neighbor Count is 2, Adjacent neighbor count is 2Adjacent with neighbor 192.168.1.107 (Designated Router)Adjacent with neighbor 192.168.254.7 (Backup Designated Router)LDP is configured through LDP autoconfigLDP-IGP Synchronization: AchievedExample 2 host1#show ipv6 ospf interfaceATM4/0.12 is up, OSPFv3 line protocol is upArea 0.0.0.0, Intf ID: 0x320004, Instance ID: 0Link Local Address: fe80::90:1a00:100:80Interface is activeNetwork type POINT-TO-POINTInterface State POINT-TO-POINTCost: 1, Priority 1No designated router on this networkNo backup designated router on this networkTimer intervals configured:Hello 10, Dead 40, Wait 40Transmit Delay is 1 sec(s)Retransmit interval is 5 secsNeighbor Count is 1FULL Adjacent neighbor count is 1Adjacent with neighbor 11.0.0.2FastEthernet0/0 is up, OSPFv3 line protocol is upOSPF interface configuration:Interface ID 0.0.1.1IPv6 link-local address FE80::3/128IPv6 prefix address 3000::1/64, Area 0.0.0.0Network type BROADCASTCost: 1Transmit Delay is 1 sec, Interface State BACKUPDR, Priority 1Designated Router's router ID 1.1.1.1Backup Designated Router's router ID 2.2.2.2Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5Neighbor Count is 1, Adjacent neighbor count is 1Adjacent with neighbor 3.3.3.3 (Designated Router)show ip ospf internal-statistics
show ipv6 ospf internal-statistics
- Use to display internal OSPFv2 or OSPFv3 statistics, such as allocation failures for different OSPF components.
- Use the delta keyword to display statistics relative to the current baseline.
- Field descriptions
- LSA bytes allocatedNumber of bytes allocated for LSAs
- Router LSA bytes allocatedNumber of bytes allocated for router LSAs
- Summary bytes allocatedNumber of bytes allocated for summary LSAs
- Neighbor RTX bytes allocatedNumber of bytes allocated for neighbor retransmissions
- Timers bytes allocatedNumber of bytes allocated for OSPF timers
- Ospf total bytes freeTotal number of bytes free
- Ospf heap total bytes allocatedTotal number of bytes allocated from the OSPF heap
- Neighbor allocation failuresNumber of neighbor allocation failures
- LSA allocation failuresNumber of LSA allocation failures
- LSA HDR allocation failuresNumber of LSA header allocation failures
- DB Request allocation failuresNumber of database request allocation failures
- RTX allocation failuresNumber of neighbor retransmission allocation failures
- LS Ack allocation failuresNumber of LSA acknowledgment packet allocation failures
- DD pkt allocation failuresNumber of database description packet allocation failures
- OSPF interface allocation failuresNumber of interface allocation failures
- OSPF general packet allocation failuresNumber of general packet allocation failures
host1#show ip ospf internal-statisticsRouting Process OSPF 1 with Router ID 5.72.3.1Internal OSPF Statistics, bytes allocated/free:LSA bytes allocated: 216Router LSA bytes allocated: 936Summary bytes allocated: 0Neighbor RTX bytes allocated: 0Timers bytes allocated: 352Ospf total bytes free: 824368Ospf heap total bytes allocated: 1048576Internal OSPF Statistics, allocation failures:Neighbor allocation failures: 0LSA allocation failures: 0LSA HDR allocation failures: 0DB Request allocation failures: 0RTX allocation failures: 0LS Ack allocation failures: 0DD pkt allocation failures: 0OSPF interface allocation failures: 0OSPF general packet allocation failures: 0Example 2 host1#show ipv6 ospf internal-statisticsRouting Process OSPFv3 1 with Router ID 1.1.1.1Internal OSPF Statistics, bytes allocated/free:LSA bytes allocated: 39Router LSA bytes allocated: 1314774Summary bytes allocated: 0Timers bytes allocated: 96Ospf total bytes free: 16Ospf heap total bytes allocated: 1000Internal OSPF Statistics, allocation failures:Neighbor allocation failures: 0LSA allocation failures: 0LSA HDR allocation failures: 0DB Request allocation failures: 0RTX allocation failures: 0LS Ack allocation failures: 0DD pkt allocation failures: 0OSPF interface allocation failures: 0OSPF general packet allocation failures: 0show ip ospf neighbors
- Use to display information about OSPF neighbors on a per-interface basis.
- Use the optional areaId or areaIdInt values, in the show ipv6 ospf neighbors command, to specify an OSPFv3 area ID in either IP or decimal format.
- You can use the history keyword with the show ip ospf neighbors command to display a history of up to 10 events for all OSPF neighbors or a specific OSPF neighbor. This neighbor uptime tracking feature is not available for OSPFv3. For more information, see Neighbor Uptime Tracking.
- Field descriptions
- DRDesignated router
- BDRBackup designated router
- DR OtherNeighbor to a designated router or a backup designated router
- Dead TimeInterval since last hello packet from neighbor
- AddressIP address of the neighbor's interface
- Intf IDInterface ID of the neighbor's interface
- InterfaceName of the specified interface and its port number
- Transition logList of transitions events for a neighbor
- InterfaceInterface for the neighbor
- EventTransition event
- CauseCause of transition event
- TimeTime stamp for the event in day month date HH:MM:SS format
host1#show ip ospf neighborsNeighbor ID Pri State Dead Time Address Interface10.0.8.1 1 TWO-WAY/DR Other 00:00:39 10.0.76.1 fastEthernet11/010.0.71.1 1 FULL/DR 00:00:42 10.0.76.2 fastEthernet11/010.0.96.1 1 FULL/BDR 00:00:28 10.0.76.4 fastEthernet11/0host1#show ipv6 ospf neighborsNeighbor ID Pri State Dead Time Intf ID Interface1.1.1.1 1 TWO-WAY/DROTHER 00:00:40 0x3200042a FastEthernet13/1.1723.3.3.3 1 FULL/BDR 00:00:40 0x32000494 FastEthernet13/1.1724.4.4.4 1 FULL/DR 00:00:40 0x320004c9 FastEthernet13/1.172host1#show ip ospf neighbors historyTransition log for neighbor 10.10.8.2:Interface Event Cause Time==============================================ATM2/0.8 Seen NA WED DEC 14 07:02:27Transition log for neighbor 10.10.12.2:Interface Event Cause Time==============================================ATM2/0.12 Seen NA WED DEC 14 07:09:12ATM2/0.12 DOWN Interface down WED DEC 14 07:05:47ATM2/0.12 Seen NA WED DEC 14 07:02:32show ip ospf remote-neighbor interface
- OSPF remote-neighborRemote neighbor address for this interface
- Update-sourceUpdate source for this interface
- Remote-neighbor reachableReachable status of the remote neighbor, yes or no
- AreaArea of this interface
- Network typeNetwork type for this interface
- CostCost value for this interface
- Transmit DelayTransmit delay for this interface, in seconds
- Interface StateInterface state
- PriorityPriority value for this interface
- Designated routerDesignated router on this network, if any
- Backup designated routerBackup designated router on this network, if any
- HelloHello timer value, in seconds
- DeadDead interval timer value, in seconds
- WaitWait interval timer value, in seconds
- RetransmitRetransmit interval timer value, in seconds
- Neighbor CountNumber of neighbors to this interface
- Adjacent neighbor countNumber of adjacent neighbors to this interface
- Adjacent with neighborAddress of the neighbor adjacent to this interface
host1#show ip ospf remote-neighbor interfaceOSPF remote-neighbor 221.221.221.221 interface configuration:Update-source loopback0Remote-neighbor reachable: yesArea 0.0.0.0Network type POINT-TO-POINT, No authenticationCost: 1Transmit Delay is 1 sec, Interface State POINT-TO-POINT, Priority 1No designated router on this networkNo backup designated router on this networkTimer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5Neighbor Count is 1, Adjacent neighbor count is 1Adjacent with neighbor 221.221.221.221show ip ospf spf-log
- Intra SPF logLog for SPF calculations run to compute intra-area LSAs
- Inter SPF logLog for SPF calculations run to compute interarea LSAs
- External SPF logLog for SPF calculations run to compute routes outside the OSPF routing domain
- WhenAmount of time since a full SPF calculation took place, in hours:minutes:seconds; the previous 20 calculations are logged
- DurationNumber of milliseconds to complete this SPF run; the elapsed time is in actual clock time, not CPU time
- LSA Router IdWhenever a full SPF calculation is triggered by a new LSA, the router ID is stored in the router
- TriggersList of reasons that triggered a full SPF calculation
host1#show ip ospf spf-logIntra SPF logWhen Duration LSA Router Id Triggers00:04:42 0.000 23.23.23.3 Protocol Off00:04:38 0.000 23.23.23.3 LSA Add00:04:34 0.000 12.12.12.2 LSA Add00:04:30 0.010 23.23.23.3 LSA Update00:03:51 0.000 23.23.23.3 Protocol Off00:03:47 0.000 23.23.23.3 LSA Add00:03:43 0.000 12.12.12.2 LSA Add00:03:39 0.000 23.23.23.3 LSA UpdateInter SPF logWhen Duration LSA Router Id Triggers00:04:46 0.010 23.23.23.3 Protocol Off00:04:42 0.000 23.23.23.3 LSA Add00:04:38 0.000 12.12.12.2 LSA Add00:04:34 0.000 23.23.23.3 LSA Update00:03:55 0.000 23.23.23.3 Protocol Off00:03:51 0.000 23.23.23.3 LSA Add00:03:47 0.000 12.12.12.2 LSA Add00:03:43 0.000 23.23.23.3 LSA UpdateExternal SPF logWhen Duration LSA Router Id Triggers00:04:47 0.000 23.23.23.3 Protocol Off00:04:43 0.000 23.23.23.3 LSA Add00:04:39 0.000 12.12.12.2 LSA Add00:04:35 0.010 23.23.23.3 LSA Update00:03:56 0.000 23.23.23.3 Protocol Off00:03:52 0.000 23.23.23.3 LSA Add00:03:48 0.000 12.12.12.2 LSA Add00:03:44 0.000 23.23.23.3 LSA Updateshow ipv6 ospf summary-prefix
host1#show ipv6 ospf summary-prefixSummary Prefixes4:: / 645:: / 64show ipv6 ospf traffic
- Use to display OSPFv3 packet statistics.
- Use the delta keyword to display statistics relative to the current baseline.
- Field descriptions
- totalTotal number of packets received
- checksum errorsTotal number of packets received that contained checksum errors
- helloTotal number of hello packets received
- database descTotal number of database description packets received
- link state reqTotal number of link-state request packets received
- link state updatesTotal number of link-state update packets received
- link state acksTotal number of link-state acknowledge packets received
- totalTotal number of sent packets
- pkts droppedTotal number of packets dropped
- helloTotal number of hello packets sent
- database descTotal number of database description packets sent
- link state reqTotal number of link-state request packets sent
- link state updatesTotal number of link-state update packets sent
- link state acksTotal number of link-state acknowledge packets sent
host1#show ipv6 ospf trafficOSPFv3 Statistics:Rcvd: 249 total, 0 checksum errors242 hello, 2 database desc, 1 link state req4 link state updates, 1 link state acksSent: 251 total, 0 pkts dropped242 hello, 3 database desc, 1 link state req4 link state updates, 1 link state acksLSA discard count: 0show ip ospf virtual-links
- Virtual link to routerOSPF neighbor and the current state of the virtual link
- Transmit DelayTime (in seconds) between transmissions from the specified interface
- Timer intervalsTimer intervals (in seconds) configured for the link: Hello, Dead, and Retransmit
host1#show ip ospf virtual-linksVirtual link to router 192.168.1.13 in state POINT-TO-POINTTransmit Delay is 1 secTimer intervals configured, Hello 10 sec, Dead 40 sec, Retransmit 5 sec