Command Line Reference Guide

Open Shortest Path First (OSPFv2 and OSPFv3) | 1047
Use this command to isolate problems with external routes. In OSPF, external routes are calculated by
adding the LSA cost to the cost of reaching the ASBR router. If an external route does not have the
correct cost, use this command to determine if the path to the originating router is correct. The display
output is not sorted in any order.
Example
Figure 38-7. Command Example: show ip ospf process-id asbr
You can determine if an ASBR is in a directly connected area (or not) by the flags. For ASBRs in a
directly connected area, E flags are set. In the figure above, router 1.1.1.1 is in a directly connected
area since the Flag is E/-/-/. For remote ASBRs, the E flag is clear (-/-/-/)
show ip ospf database
c e s
Display all LSA information. If OSPF is not enabled on the switch, no output is generated.
Syntax
show ip ospf process-id [vrf vrf-name] database [database-summary]
Parameters
Command Modes
EXEC
EXEC Privilege
Command
History
Note: ASBRs that are not in directly connected areas are also displayed.
FTOS#show ip ospf 1asbr
RouterID Flags Cost Nexthop Interface Area
3.3.3.3 -/-/-/ 2 10.0.0.2 Gi 0/1 1
1.1.1.1 E/-/-/ 0 0.0.0.0 - 0 FTOS#
process-id
Enter the OSPF Process ID to show a specific process.
If no Process ID is entered, command applies only to the first OSPF process.
vrf vrf-name
(OPTIONAL) Enter the keyword vrf followed by the name of the VRF. Range:
1 to 63.
database-summary (OPTIONAL) Enter the keywords database-summary to the display
summary of the information stored in the OSPFv2 database of the router,
including the number of LSAs received from OSPFv2 neighbor routers.
Version 8.4.6.0 Added support for VRF.
Version 7.8.1.0 Introduced support of Multi-Process OSPF.
Version 7.6.1.0 Introduced on S-Series
Version 7.5.1.0 Introduced on C-Series
pre-Version 6.1.1.1 Introduced on E-Series