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
debug ipv6 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: 0–7.
- You can set the verbosity of the messages you want displayed: low, medium, high.
- Example 1host1#debug ip ospf adj
- Example 2host1#debug ipv6 ospf lsa
- Use the no version to cancel the display of any information about the designated variable.
- See debug ip ospf
- See debug ipv6 ospf
ospf log-adjacency-changes
- Use to enable the logging of changes in the state of an OSPF neighbor.
- Examplehost1(config-router)#ospf log-adjacency-changes
- Use the no version to disable the logging of changes in the state of an OSPF neighbor.
- See ospf log-adjacency-changes
undebug ip ospf
undebug ipv6 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 1host1#undebug ip ospf adj
- Example 2host1#undebug ipv6 ospf lsa
- There is no no version.
- See undebug ip ospf
- See undebug ipv6 ospf
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, for details.
show ip ospf
show ipv6 ospf
- Use to display general information about OSPF routing processes.
- Field descriptions
- Routing Process—Process ID, router ID, domain ID
- OSPF administrative state—Enabled or disabled
- OSPF operational state—Enabled or disabled
- Incremental External SPF—On or off
- Graceful Restart Capability—On or off
- Time limit to complete graceful restart—Amount 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 LSAs—Amount of time (in seconds) during which the router can remove grace LSAs over all interfaces
- Graceful Restart Helper Capability—On 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 field—Enabled or disabled
- Router—Router types: internal, area border, or autonomous system boundary routers
- OSPF Statistics—Packets received and sent; LSA discard count
- TOS type—Number of types of service supported
- SPF timers—Timers configured on the router
- Maximum path splits—Maximum equal-cost paths supported
- Areas—Areas configured and their parameters
- Number of areas—Number of areas in the router
- Example 1
host1#show ip ospf
Routing 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 ospf
Routing Process OSPF 4 with Router ID, 10.0.0.1, Domain ID 0.0.0 OSPF administrative state is enabled OSPF operational state is enabled Incremental External SPF is ON Graceful Restart Capability is OFF 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 pkts dropped, 0 checksum errors 0 hello, 0 database desc, 0 link state req 0 link state updates, 0 link state acks Sent: 1 total, 0 pkts dropped 1 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 Area BACKBONE(0.0.0.0) SPF algorithm executed 5 times ABDR count 0 ASBDR count 0 LSA Count 1 Number of interfaces in this area is 1 Area ranges are: Area 0.0.0.1 Area is a stub area Type-3 summary is filtered SPF algorithm executed 5 times ABDR count 0 ASBDR count 0 LSA Count 0 Number of interfaces in this area is 0 Area ranges are: Area 0.0.0.2 Area is nssa Type-3 summary is filtered SPF algorithm executed 4 times ABDR count 0 ASBDR count 0 LSA Count 0 Number of interfaces in this area is 0 Area ranges are: Area 0.0.0.5 Area is nssa SPF algorithm executed 3 times ABDR count 0 ASBDR count 0 LSA Count 0 Number of interfaces in this area is 0 Area ranges are: Number of active areas in this router is 4 1 normal, 1 stub, 2 NSSA. - Example 3
host1#show ipv6 ospf Routing Process OSPFv3 1 with Router ID 10.1.1.1 OSPFv3 administrative state is enabled OSPFv3 operational state is enabled Incremental External SPF is OFF Graceful Restart capability is OFF Graceful Restart helper capability is OFF Ospf set trap field disabled SPF schedule delay 0 secs, Hold time between two SPFs 3 secs Maximum path splits 4 Area BACKBONE(0.0.0.0) SPF algorithm executed 13 times ABDR count 1 ASBDR count 1 LSA Count 117 Number of interfaces in this area is 3 Area ranges are: Number of active areas in this router is 1 1normal, 0 stub, 0 NSSA.
- See show ip ospf
- See show ipv6 ospf
show ip ospf border-routers
show ipv6 ospf border-routers
- Use to display a list of OSPF border routers.
- Field descriptions
- Destination—Destination's router ID
- NEXT HOP—Next hop toward the destination
- Interface—Interface for which you are obtaining the information
- Router Type—Router type of the destination: either an ABR or AS boundary router, or both
- Route Type—Type of this route: either an intra-area or interarea route
- Area—Area ID of the area from which this route is learned
- Example 1
host1#show ip ospf border-routers Destination NEXT HOP Interface Router Type Route Type Area 5.5.0.250 5.5.6.250 fastethernet0 ABR/ASBR INTRA 0.0.0.0 5.5.0 250 4.4.4.250 fastethernet0 ABR/ASBR INTRA 0.0.0.1 6.6.6.250 4.4.4.13 fastethernet0 ABR INTRA 0.0.0.1
- Example 2
host1#show ipv6 ospf border-routers OSPF Area Border Routers Destination NEXT_HOP Interface RouteType Area 10.0.0.10 FE80::3 ATM4/1.39 INTRA 0.0.0.0 10.0.0.11 FE80::4 ATM4/0.41 INTRA 0.0.0.0 10.0.0.11 FE80::5 ATM4/1.48 INTRA 100.0.0.1OSPF Autonomous System Border Routers
Destination NEXT_HOP Interface RouteType Area 10.1.1.4 FE80::3 ATM4/1.39 INTER 0.0.0.0 10.1.1.5 FE80::4 ATM4/0.41 INTER 0.0.0.0 - See show ip ospf border-routers
- See show ipv6 ospf border-routers
show ip ospf database
show ipv6 ospf database
- Use to display the full IP OSPF database, a summary of the database, or LSAs specific to the given area.
- Field descriptions
- Link ID—Link-state ID of the LSA; for OSPFv2:
- 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
- Link ID—Link-state ID of the LSA; for OSPFv3:
- 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 Router—ID of the advertising router
- Age—Link-state age
- Seq#—Link-state sequence number (detects old or duplicate LSAs)
- Checksum—Fletcher checksum of the complete contents of the LSA
- Area—Area for which data is displayed
- Router—Number of router LSAs
- Network—Number of network LSAs
- Intra-Prefix—Number of intra-prefix LSAs
- Inter-Prefix—Number of inter-prefix LSAs
- Inter-Router—Number of inter-outer LSAs
- Link LSAs—Number of link LSAs
- Grace LSAs—Number of graceful restart LSAs
- External LSAs—Number of external LSAs
- MaxAge—Number of LSAs that have reached the maximum age
- Area—Area for this LSA
- LS age—LSA age
- Options—Optional capabilities supported by this router
- LS Type—LSA type
- Link State ID—Link-state ID of the link local LSA
- Length—Length of the LSA (in bytes)
- Bit set—Bit set used by this LSA type
- Link connected to—Type of network to which the link connects
- Neighboring router’s Router ID—Router ID of the neighboring router
- Neighboring router’s Interface ID—Interface ID of the neighboring router
- Local Interface ID—Local interface ID
- Metric—Cost of this interface
- Attached Router—Addresses of any attached routers
- Router Priority—Priority value configured for the router
- Link Local Address—Originating router's link-local interface address on the link
- Prefixes—Prefixes associated with this LSA
- Number of Prefixes—Number of prefixes associated with this LSA
- Referenced LSA Type—Router LSA or network LSA with which the IPv6 address prefixes should be associated
- Referenced LSA Advertising Router—Router LSA or network LSA with which the IPv6 address prefixes should be associated
- Referenced LSA ID—Router LSA or network LSA with which the IPv6 address prefixes should be associated
- asbr—Address of the AS boundary router
- LS Seq Number—Sequence number of the LSA
- TLVs—Type 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
- length—Length of the TLV; varies according to the TLV
- Value—Value of the TLV; varies according to TLV
- Link ID—Link-state ID of the LSA; for OSPFv2:
- Example 1—OSPFv2 output
host1#show ip ospf database OSPF Database
Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum 5.1.101.1 5.1.101.1 932 0x80000069 0x102f 192.168.1.13 192.168.1.13 1763 0x80000099 0xaa4e 192.168.1.10 192.168.1.10 285 0x80000087 0xada6 192.168.1.11 192.168.1.11 401 0x80000087 0xaba5 192.168.24.6 192.168.24.6 622 0x800005bf 0x6087
Network Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum 56.56.56.220 5.6.6.1 499 0x80000069 0x26a0 192.168.1.12 192.168.254.6 622 0x8000009e 0xebc2
Summary Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum 4.4.4.0 5.5.0.250 497 0x8000005a 0x2ca6 4.4.4.0 192.168.1.13 528 0x80000059 0x 45d
AS Summary Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum 5.5.0.250 192.168.1.13 491 0x80000002 0xe9d4
AS External Link States
Link ID ADV Router Age Seq# Checksum 8.8.8.0 5.5.0.250 502 0x8000005f 0x2d67
Router Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum 5.5.0.250 5.5.0.250 498 0x80000067 0xdec1 192.168.1.13 192.168.1.13 505 0x800000a5 0x3b32
Network Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum 4.4.4.13 192.168.1.13 505 0x80000001 0x410b 5.1.0.0 192.168.1.13 940 0x80000059 0x82c4 5.2.0.0 5.5.0.250 495 0x80000001 0x51bf 5.2.0.0 192.168.1.13 932 0x80000059 0x76cf 5.3.0.0 5.5.0.250 495 0x80000001 0x45ca 5.3.0.0 192.168.1.13 932 0x80000059 0x6ada 56.56.56.0 5.5.0.250 495 0x80000062 0xc469
AS Summary Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum 5.5.0.250 5.5.0.250 496 0x800000001 0x51c0
- Example 2—OSPFv3 general output
host1#show ipv6 ospf database OSPF Database V3 Router Link States (Area 0.0.0.0)Link ID ADV Router Age Seq# Checksum 0.0.0.0 2.2.2.2 167 0x80000003 0xa9e3 0.0.0.0 3.3.3.3 168 0x80000002 0x2c63
V3 Inter-Area Net Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum 0.0.0.1 2.2.2.2 33 0x80000004 0x5288
V3 Inter-Area Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum 0.0.0.1 2.2.2.2 33 0x80000001 0x a0f
V3 Intra-Area Prefix Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum 0.0.0.1 2.2.2.2 167 0x80000003 0xc8ba 0.0.0.1 3.3.3.3 168 0x80000003 0xdc9e
V3 Link Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum 50.0.0.10 2.2.2.2 178 0x80000001 0xb51d 50.0.0.13 3.3.3.3 178 0x80000001 0x8c3e
V3 Router Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum 0.0.0.0 1.1.1.1 40 0x80000003 0xf7a4 0.0.0.0 2.2.2.2 168 0x80000003 0x7825
V3 Inter-Area Net Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum 0.0.0.2 2.2.2.2 33 0x80000004 0x6a4f
V3 Intra-Area Prefix Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum 0.0.0.1 1.1.1.1 169 0x80000003 0x911a 0.0.0.1 2.2.2.2 168 0x80000003 0xa5fd
V3 Link Link States (Area 0.0.0.1) Link ID ADV Router Age Seq# Checksum 50.0.0.6 1.1.1.1 180 0x80000001 0x44b7 50.0.0.9 2.2.2.2 178 0x80000001 0x1bd8V3 External Link States
Link ID ADV Router Age Seq# Checksum 0.0.0.1 1.1.1.1 40 0x80000001 0xe5a0
- Example 3—OSPFv3 database summary information
host1:v2#show ipv6 ospf database database-summary Area Router Network Intra-Prefix Inter-Prefix Inter-Router ------- ------ ------- ------------ ------------ ------------ 0.0.0.0 2 1 3 0 0 Area MaxAge ------- ------ 0.0.0.0 0
Link LSAs: 2, Max age: 0 Grace LSAs: 1, Max age: 0 External LSAs: 0, Max age: 0
- Example 4—OSPFv3 LSA output (router)
host1#show ipv6 ospf database router V3 Router Link States (Area 0.0.0.0) LS age: 433 Options: ( V6-Bit , R-Bit , ExternalRoutingCapability, No Nssa-LSA) LS Type: Router Links Link State ID: 0.0.0.0 Advertising Router: 1.1.1.1 LS Seq Number: 0x80000002 Checksum: 0x c90 Length: 40 Bit E set Link connected to: a Point To Point Network Neighboring router's Router Id: 2.2.2.2 Neighboring router's Interface Id: 0x3200000a Local Interface ID : 0x32000006 Metric 1LS age: 432 Options: ( V6-Bit , R-Bit , ExternalRoutingCapability, No Nssa-LSA) LS Type: Router Links Link State ID: 0.0.0.0 Advertising Router: 2.2.2.2 LS Seq Number: 0x80000002 Checksum: 0x8519 Length: 40
Link connected to: a Point To Point Network Neighboring router's Router Id: 1.1.1.1 Neighboring router's Interface Id: 0x32000006 Local Interface ID : 0x3200000a Metric 1 - Example 5—OSPFv3 LSA output (network)
host1#show ipv6 ospf database network (Area 0.0.0.1) LS Type: Network LSA Link State ID: 0.0.0.14 Advertising Router: 3.3.3.3 LS age: 131 LS Seq Number: 0x80000001 Checksum: 0x6c69 Length: 32 Options: V6-bit set, ExternalRoutingCapability, R-bit set Attached Router: 3.3.3.3 Attached Router: 2.2.2.2 - Example 6—OSPFv3 LSA output (link)
host1#show ipv6 ospf database link V3 Link Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum
LS age: 280 LS Type: Link Link State ID: 0x32000006 Advertising Router: 1.1.1.1 LS Seq Number: 0x80000001 Checksum: 0x44b7 Length: 56 Router Priority 0 Link Local Address fe80::90:1a00:200:670 Prefixes 1:1:1:1000:: / 60 options 0 metric 0LS age: 282 LS Type: Link Link State ID: 0x3200000a Advertising Router: 2.2.2.2 LS Seq Number: 0x80000001 Checksum: 0x11e1 Length: 56 Router Priority 0 Link Local Address fe80::90:1a00:300:670 Prefixes 1:1:1:1000:: / 60 options 0 metric 0 - Example 7—OSPFv3 LSA output (intra-area-prefix)
host1#show ipv6 ospf database intra-area-prefix
V3 Intra Area Prefix Link States (Area 0.0.0.0) LS age: 162 LS Type: Intra Area Prefix Links Link State ID: 0.0.0.1 Advertising Router: 1.1.1.1 LS Seq Number: 0x80000003 Checksum: 0x911a Length: 44 Number of Prefixes 1 Referenced LSA Type 0x 2001 Referenced LSA Advertising Router 1.1.1.1 Referenced LSA ID 0 Prefixes 1:1:1:1000:: / 60 options 0 metric 1LS age: 161 LS Type: Intra Area Prefix Links Link State ID: 0.0.0.1 Advertising Router: 2.2.2.2 LS Seq Number: 0x80000003 Checksum: 0xa5fd Length: 44 Number of Prefixes 1 Referenced LSA Type 0x 2001 Referenced LSA Advertising Router 2.2.2.2 Referenced LSA ID 0 Prefixes 1:1:1:1000:: / 60 options 0 metric 1 - Example 8—OSPFv3 LSA output (interarea router)
host1#show ipv6 ospf database inter-area-router
V3 Inter-Area-Router Link States (Area 0.0.0.0) LS age: 304 LS Type: Inter Area Net Links Link State ID: 0.0.0.1 Advertising Router: 2.2.2.2 LS Seq Number: 0x80000001 Checksum: 0x a0f Length: 32 Metric: 1 Options: 19 asbr: 1.1.1.1 - Example 9—OSPFv3 LSA output (graceful restart helper)
host1#show ipv6 ospf database grace V3 Grace Link States (Area 0.0.0.1) LS age: 3 LS Type: Grace Link State ID: 0x00000002 Advertising Router: 2.2.2.2 LS Seq Number: 0x80000001 Checksum: 0x8409 Length: 44 TLVs Type: 1(Restart duration), length: 4, Value: 150 Type: 2(Restart Reason), length: 1, Value: 2(Software Reload) Type: 3(Unknown), length: 4, Value: 33686018 - See show ip ospf database
- See show ipv6 ospf database
show ip ospf database link-local
- Use to display OSPF database link local states.
- Field descriptions
- Interface—Interface for which you are obtaining link-local LSA
- LS age—Age of LSA
- LS Type—Type of LSA (Link Local)
- Link State ID—Link-state ID of the link local LSA
- Advertising Router—Router ID of the router that originated the LSA
- LS Seq Number—Link-state sequence number to identify duplicate or old LSIDs
- Checksum—Checksum of the complete contents of the LSA
- Length—Length of the LSA in bytes
- Opaque LSA Type—Type of opaque LSA
- Neighbor—Neighbor IP address
- Grace Period—Helper grace period in seconds
- Restart Reason—Reason for restart; Planned Restart or Unplanned Restart
- Example
host1#show ip ospf database link-local Link-Local States
Interface : ATM1/3.80 LS age: 17 LS Type: Link Local Link State ID: 3.0.0.0 Advertising Router: 100.1.1.67 LS Seq Number: 0x80000002 Checksum: 0xac91 Length: 36 Opaque LSA Type : Restart Grace Neighbor 0.0.0.0 Grace Period 90 seconds Restart Reason : Unplanned Restart
- See show ip ospf database
show 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 purposes—such 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 age—Age of LSA
- Options—Optional capabilities supported by the described portion of the routing domain
- LS Type—Type of LSA; opaque area TE router address or opaque area TE link LSA
- Link State ID—Link-state ID of the opaque LSA
- Advertising Router—Router ID of the router that originated the LSA
- LS Seq Number—Link-state sequence number to identify duplicate or old LSIDs
- Checksum—Checksum of the complete contents of the LSA
- Length—Length of the LSA in bytes
- TE Router-ID—Traffic engineering router ID of the originating router
- Link Type—Point-to-point or multiaccess
- Link ID—For 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 Address—IP address of the local interface for the link
- Remote Address—IP address of the remote (neighbor’s) interface for the link
- TE Metric—Link metric for traffic engineering purposes; can be different from the standard OSPF link
- Max BW—Maximum bandwidth that can be used on this link in this direction
- Max Reservable BW—Maximum bandwidth that can be reserved on this link; can exceed the maximum bandwidth in the event of oversubscription
- Max Unreserved BW—Amount of bandwidth not yet reserved at each of the eight priority levels; each value is less than or equal to the maximum reservable bandwidth
- Color—Bitmask 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
- Example
host1#show ip ospf database opaque-area
Opaque-area Link States (Area 0.0.0.0)
LS age: 914 Options: (TOS-capable, No Type7-LSA, ExternalRoutingCapability, No Multicast 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.1 LS Seq Number: 0x80000003 Checksum: 0xd293 Length: 28 TE Router-ID: 100.1.1.1
LS age: 919 Options: (TOS-capable, No Type7-LSA, ExternalRoutingCapability, No Multicast Capability, No External Attributes LSA) LS Type: Opaque-Area (TE Links) Link State ID: 1.0.0.1(Instance) Advertising Router: 100.1.1.1 LS Seq Number: 0x80000003 Checksum: 0xf66e Length: 124 Link Type: P2P Link ID: 1744896257 Local Address 14.1.1.2 Remote Address 14.1.1.1 TE Metric 0 Max 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 0 - See show ip ospf database
show ip ospf interface
show ipv6 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 Address—Interface IP address
- Area—Area identifier: IP address
- Network type—Broadcast, NBMA, Point-to-Point, or Point-to-Multipoint
- Authentication type—None, simple, or MD5
- Cost—Metric for OSPF transmission
- Transmit Delay—Time between transmissions from the specified interface
- Interface State—Current state of the specified interface
- Priority—Router’s priority on the specified interface
- Designated Router—Designated router ID and respective interface IP address
- Backup Designated Router—Designated router ID and respective interface IP address of the backup router
- Timer intervals—Configuration of timer intervals: Hello, Dead, Wait, and Retransmit
- Neighbor Count—Number of neighbors and their state; adjacent neighbors
- LDP is configured through LDP autoconfig—Indicates whether LDP is configured on the interface by means of autoconfiguration; supported only for OSPFv2
- LDP-IGP Synchronization—Status of synchronization, Achieved or Pending; supported only for OSPFv2
- Example 1
host1#show ip ospf interface FastEthernet0 is up, OSPF line protocol is up OSPF interface configuration: Internet Address 192.168.1.250, Area 0.0.0.0 Network type BROADCAST, No authentication Cost: 1 Transmit Delay is 1 sec, Interface State DROTHER, Priority 1 Designated Router (Interface address) 192.168.1.107 Backup Designated Router (Interface address) 192.168.1.214 Timer intervals configured, Hello 10, Dead 40, Wait 120, Retransmit 5 Neighbor Count is 2, Adjacent neighbor count is 2 Adjacent with neighbor 192.168.1.107 (Designated Router) Adjacent with neighbor 192.168.254.7 (Backup Designated Router) LDP is configured through LDP autoconfig LDP-IGP Synchronization: Achieved
- Example 2
host1#show ipv6 ospf interface ATM4/0.12 is up, OSPFv3 line protocol is up Area 0.0.0.0, Intf ID: 0x320004, Instance ID: 0 Link Local Address: fe80::90:1a00:100:80 Interface is active Network type POINT-TO-POINT Interface State POINT-TO-POINT Cost: 1, Priority 1 No designated router on this network No backup designated router on this network Timer intervals configured: Hello 10, Dead 40, Wait 40 Transmit Delay is 1 sec(s) Retransmit interval is 5 secs Neighbor Count is 1 FULL Adjacent neighbor count is 1 Adjacent with neighbor 11.0.0.2
FastEthernet0/0 is up, OSPFv3 line protocol is up OSPF interface configuration: Interface ID 0.0.1.1 IPv6 link-local address FE80::3/128 IPv6 prefix address 3000::1/64, Area 0.0.0.0 Network type BROADCAST Cost: 1 Transmit Delay is 1 sec, Interface State BACKUPDR, Priority 1 Designated Router's router ID 1.1.1.1 Backup Designated Router's router ID 2.2.2.2 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 3.3.3.3 (Designated Router)
- See show ip ospf interface
- See show ipv6 ospf interface
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 allocated—Number of bytes allocated for LSAs
- Router LSA bytes allocated—Number of bytes allocated for router LSAs
- Summary bytes allocated—Number of bytes allocated for summary LSAs
- Neighbor RTX bytes allocated—Number of bytes allocated for neighbor retransmissions
- Timers bytes allocated—Number of bytes allocated for OSPF timers
- Ospf total bytes free—Total number of bytes free
- Ospf heap total bytes allocated—Total number of bytes allocated from the OSPF heap
- Neighbor allocation failures—Number of neighbor allocation failures
- LSA allocation failures—Number of LSA allocation failures
- LSA HDR allocation failures—Number of LSA header allocation failures
- DB Request allocation failures—Number of database request allocation failures
- RTX allocation failures—Number of neighbor retransmission allocation failures
- LS Ack allocation failures—Number of LSA acknowledgment packet allocation failures
- DD pkt allocation failures—Number of database description packet allocation failures
- OSPF interface allocation failures—Number of interface allocation failures
- OSPF general packet allocation failures—Number of general packet allocation failures
- Example 1
host1#show ip ospf internal-statistics Routing Process OSPF 1 with Router ID 5.72.3.1 Internal OSPF Statistics, bytes allocated/free: LSA bytes allocated:216 Router LSA bytes allocated:936 Summary bytes allocated:0 Neighbor RTX bytes allocated:0 Timers bytes allocated:352 Ospf total bytes free:824368 Ospf heap total bytes allocated:1048576 Internal OSPF Statistics, allocation failures: Neighbor allocation failures:0 LSA allocation failures:0 LSA HDR allocation failures:0 DB Request allocation failures:0 RTX allocation failures:0 LS Ack allocation failures:0 DD pkt allocation failures:0 OSPF interface allocation failures:0 OSPF general packet allocation failures:0 - Example 2
host1#show ipv6 ospf internal-statistics Routing Process OSPFv3 1 with Router ID 1.1.1.1 Internal OSPF Statistics, bytes allocated/free: LSA bytes allocated: 39 Router LSA bytes allocated: 1314774 Summary bytes allocated: 0 Timers bytes allocated: 96 Ospf total bytes free: 16 Ospf heap total bytes allocated: 1000 Internal OSPF Statistics, allocation failures: Neighbor allocation failures: 0 LSA allocation failures: 0 LSA HDR allocation failures: 0 DB Request allocation failures: 0 RTX allocation failures: 0 LS Ack allocation failures: 0 DD pkt allocation failures: 0 OSPF interface allocation failures: 0 OSPF general packet allocation failures: 0 - See show ip ospf internal-statistics
- See show ipv6 ospf internal-statistics
show ip ospf neighbors
show ipv6 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
- Neighbor ID—Neighbor’s router ID
- Pri—Router priority of neighbor
- State—OSPF neighbor’s state
- DR—Designated router
- BDR—Backup designated router
- DR Other—Neighbor to a designated router or a backup designated router
- Dead Time—Interval since last hello packet from neighbor
- Address—IP address of the neighbor’s interface
- Intf ID—Interface ID of the neighbor’s interface
- Interface—Name of the specified interface and its port number
- Transition log—List of transitions events for a neighbor
- Interface—Interface for the neighbor
- Event—Transition event
- Cause—Cause of transition event
- Time—Time stamp for the event in day month date HH : MM : SS format
- Example 1
host1# show ip ospf neighbors Neighbor ID Pri State Dead Time Address Interface 10.0.8.1 1 TWO-WAY/DR Other 00:00:39 10.0.76.1 fastEthernet11/0 10.0.71.1 1 FULL/DR 00:00:42 10.0.76.2 fastEthernet11/0 10.0.96.1 1 FULL/BDR 00:00:28 10.0.76.4 fastEthernet11/0
- Example 2
host1# show ipv6 ospf neighbors Neighbor ID Pri State Dead Time Intf ID Interface 1.1.1.1 1 TWO-WAY/DROTHER 00:00:40 0x3200042a FastEthernet13/1.172 3.3.3.3 1 FULL/BDR 00:00:40 0x32000494 FastEthernet13/1.172 4.4.4.4 1 FULL/DR 00:00:40 0x320004c9 FastEthernet13/1.172
- Example 3
host1#show ip ospf neighbors history Transition log for neighbor 10.10.8.2: Interface Event Cause Time ============================================== ATM2/0.8 Seen NA WED DEC 14 07:02:27
Transition log for neighbor 10.10.12.2: Interface Event Cause Time ============================================== ATM2/0.12 Seen NA WED DEC 14 07:09:12 ATM2/0.12 DOWN Interface down WED DEC 14 07:05:47 ATM2/0.12 Seen NA WED DEC 14 07:02:32
- See show ipv6 ospf neighbors
show ip ospf remote-neighbor interface
- Use to display all interfaces that are associated with OSPF remote neighbors.
- Field descriptions
- OSPF remote-neighbor—Remote neighbor address for this interface
- Update-source—Update source for this interface
- Remote-neighbor reachable—Reachable status of the remote neighbor, yes or no
- Area—Area of this interface
- Network type—Network type for this interface
- Cost—Cost value for this interface
- Transmit Delay—Transmit delay for this interface, in seconds
- Interface State—Interface state
- Priority—Priority value for this interface
- Designated router—Designated router on this network, if any
- Backup designated router—Backup designated router on this network, if any
- Hello—Hello timer value, in seconds
- Dead—Dead interval timer value, in seconds
- Wait—Wait interval timer value, in seconds
- Retransmit—Retransmit interval timer value, in seconds
- Neighbor Count—Number of neighbors to this interface
- Adjacent neighbor count—Number of adjacent neighbors to this interface
- Adjacent with neighbor—Address of the neighbor adjacent to this interface
- Example
host1#show ip ospf remote-neighbor interface OSPF remote-neighbor 221.221.221.221 interface configuration: Update-source loopback0 Remote-neighbor reachable: yes Area 0.0.0.0 Network type POINT-TO-POINT, No authentication Cost: 1 Transmit Delay is 1 sec, Interface State POINT-TO-POINT, Priority 1 No designated router on this network No backup designated router on this network Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 221.221.221.221
- See show ip ospf remote-neighbor interface
show ip ospf spf-log
- Use to display how often and why the router has run a full SPF calculation.
- Field descriptions
- Intra SPF log—Log for SPF calculations run to compute intra-area LSAs
- Inter SPF log—Log for SPF calculations run to compute interarea LSAs
- External SPF log—Log for SPF calculations run to compute routes outside the OSPF routing domain
- When—Amount of time since a full SPF calculation took place, in hours:minutes:seconds; the previous 20 calculations are logged
- Duration—Number of milliseconds to complete this SPF run; the elapsed time is in actual clock time, not CPU time
- LSA Router Id—Whenever a full SPF calculation is triggered by a new LSA, the router ID is stored in the router
- Triggers—List of reasons that triggered a full SPF calculation
- Example
host1#show ip ospf spf-log
Intra SPF log When Duration LSA Router Id Triggers 00:04:42 0.000 23.23.23.3 Protocol Off 00:04:38 0.000 23.23.23.3 LSA Add 00:04:34 0.000 12.12.12.2 LSA Add 00:04:30 0.010 23.23.23.3 LSA Update 00:03:51 0.000 23.23.23.3 Protocol Off 00:03:47 0.000 23.23.23.3 LSA Add 00:03:43 0.000 12.12.12.2 LSA Add 00:03:39 0.000 23.23.23.3 LSA Update
Inter SPF log When Duration LSA Router Id Triggers 00:04:46 0.010 23.23.23.3 Protocol Off 00:04:42 0.000 23.23.23.3 LSA Add 00:04:38 0.000 12.12.12.2 LSA Add 00:04:34 0.000 23.23.23.3 LSA Update 00:03:55 0.000 23.23.23.3 Protocol Off 00:03:51 0.000 23.23.23.3 LSA Add 00:03:47 0.000 12.12.12.2 LSA Add 00:03:43 0.000 23.23.23.3 LSA Update
External SPF log When Duration LSA Router Id Triggers 00:04:47 0.000 23.23.23.3 Protocol Off 00:04:43 0.000 23.23.23.3 LSA Add 00:04:39 0.000 12.12.12.2 LSA Add 00:04:35 0.010 23.23.23.3 LSA Update 00:03:56 0.000 23.23.23.3 Protocol Off 00:03:52 0.000 23.23.23.3 LSA Add 00:03:48 0.000 12.12.12.2 LSA Add 00:03:44 0.000 23.23.23.3 LSA Update
- See show ip ospf spf-log
show ipv6 ospf summary-prefix
- Use to display summary prefixes configured to summarize externals.
- Example
host1#show ipv6 ospf summary-prefix Summary Prefixes 4:: / 64 5:: / 64
- See show ipv6 ospf summary-prefix
show ipv6 ospf traffic
- Use to display OSPFv3 packet statistics.
- Use the delta keyword to display statistics relative to the current baseline.
- Field descriptions
- Rcvd
- total—Total number of packets received
- checksum errors—Total number of packets received that contained checksum errors
- hello—Total number of hello packets received
- database desc—Total number of database description packets received
- link state req—Total number of link-state request packets received
- link state updates—Total number of link-state update packets received
- link state acks—Total number of link-state acknowledge packets received
- Sent
- total—Total number of sent packets
- pkts dropped—Total number of packets dropped
- hello—Total number of hello packets sent
- database desc—Total number of database description packets sent
- link state req—Total number of link-state request packets sent
- link state updates—Total number of link-state update packets sent
- link state acks—Total number of link-state acknowledge packets sent
- LSA discard count—Total number of packets discarded
- Rcvd
- Example
host1#show ipv6 ospf traffic OSPFv3 Statistics: Rcvd: 249 total, 0 checksum errors 242 hello, 2 database desc, 1 link state req 4 link state updates, 1 link state acks Sent: 251 total, 0 pkts dropped 242 hello, 3 database desc, 1 link state req 4 link state updates, 1 link state acks LSA discard count: 0 - See show ipv6 ospf traffic
show ip ospf virtual-links
- Use to display the parameters and the current state of OSPF virtual links.
- Field descriptions
- Virtual link to router—OSPF neighbor and the current state of the virtual link
- Transmit Delay—Time (in seconds) between transmissions from the specified interface
- Timer intervals—Timer intervals (in seconds) configured for the link: Hello, Dead, and Retransmit
- Example
host1#show ip ospf virtual-links Virtual link to router 192.168.1.13 in state POINT-TO-POINT Transmit Delay is 1 sec Timer intervals configured, Hello 10 sec, Dead 40 sec, Retransmit 5 sec
- See show ip ospf virtual-links
Hide Navigation Pane
Show Navigation Pane
SHA1