The show ip ospf command and its variations can be used to display information about OSPFv2 configurations.
device# show ip ospf
show ip ospf
OSPF Version Version 2
Router Id 32.32.32.32
ASBR Status No
ABR Status No (0)
Redistribute Ext Routes from
Initial SPF schedule delay 0 (msecs)
Minimum hold time for SPFs 0 (msecs)
Maximum hold time for SPFs 0 (msecs)
External LSA Counter 0
External LSA Checksum Sum 0
Originate New LSA Counter 9
Rx New LSA Counter 5
External LSA Limit 14913080
Administrative Distance
- External Routes: 110
- Intra Area Routes: 110
- Inter Area Routes: 110
Database Overflow Interval 0
Database Overflow State : NOT OVERFLOWED
RFC 1583 Compatibility : Disabled
NSSA Translator: Enabled
Nonstop Routing: Disabled
Graceful Restart Enabled
Graceful Restart Helper Enabled
Graceful Restart Time 120
LDP-SYNC: Not globally enabled
Interfaces with LDP-SYNC enabled:
None
device# show ip ospf area Number of Areas is 1 Index Area Type Cost SPFR ABR ASBR LSA Chksum(Hex) 1 0 normal 0 482 0 0 1 00006828
device# show ip ospf interface
Ethernet 1/8 admin up, oper up
IP Address 10.1.8.32, Area 0
BFD is disabled
Database Filter: Not Configured
State DR, Pri 1, Cost 1, Options ------E-, Type broadcast Events 8
Timers(sec): Transmit 1, Retrans 5, Hello 10, Dead 40
DR: Router ID 32.32.32.32 Interface Address 10.1.8.32
BDR: Router ID 0.0.0.0 Interface Address 0.0.0.0
Neighbor Count = 1, Adjacent Neighbor Count= 0
Neighbor: 10.1.8.19 [id 19.19.19.18]
Authentication-Key: None
MD5 Authentication: Key None, Key-Id None , Auth-change-wait-time 300
LDP-SYNC: Disabled, State: -
Loopback 1 admin up, oper up
IP Address 32.32.32.32, Area 0
BFD is disabled
Database Filter: Not Configured
State DR, Pri 1, Cost 1, Options ------E-, Type broadcast Events 2
Timers(sec): Transmit 1, Retrans 5, Hello 10, Dead 40
DR: Router ID 32.32.32.32 Interface Address 32.32.32.32
BDR: Router ID 0.0.0.0 Interface Address 0.0.0.0
Neighbor Count = 0, Adjacent Neighbor Count= 0
Authentication-Key: None
MD5 Authentication: Key None, Key-Id None , Auth-change-wait-time 300
LDP-SYNC: Disabled, State: -
device# show ip ospf interface brief Interface Area IP Addr/Mask Cost State Nbrs(F/C) Eth 6/45 0 10.10.10.1/24 1 down 0/0 Ve 15 0 15.15.15.1/24 1 DR 0/0 Ve 161 0 161.161.161.1/24 1 DR 0/0 Ve 162 0 162.162.162.1/24 1 DR 0/0
device# show ip ospf neighbor Number of Neighbors is 1, in FULL state 0 Port Address Pri State Neigh Address Neigh ID Ev Opt Cnt Eth 1/8 10.1.8.32 1 INIT/OTHER 10.1.8.19 19.19.19.18 7 66 0
device# show ip ospf routes
OSPF Regular Routes 7:
Destination Mask Path_Cost Type2_Cost Path_Type
1.1.1.1 255.255.255.255 1 0 Intra
Adv_Router Link_State Dest_Type State Tag Flags
1.1.1.1 1.1.1.1 Network Valid 0 6
Paths Out_Port Next_Hop Type State
1 Lo 1 0.0.0.0 OSPF 0 0
Destination Mask Path_Cost Type2_Cost Path_Type
1.1.1.2 255.255.255.255 1 0 Intra
Adv_Router Link_State Dest_Type State Tag Flags
1.1.1.1 1.1.1.1 Network Valid 0 6
Paths Out_Port Next_Hop Type State
1 Lo 2 0.0.0.0 OSPF 0 0
Destination Mask Path_Cost Type2_Cost Path_Type
1.1.1.3 255.255.255.255 1 0 Intra
Adv_Router Link_State Dest_Type State Tag Flags
1.1.1.1 1.1.1.1 Network Valid 0 6
Paths Out_Port Next_Hop Type State
1 Lo 3 0.0.0.0 OSPF 0 0
Destination Mask Path_Cost Type2_Cost Path_Type
1.1.1.4 255.255.255.255 1 0 Intra
Adv_Router Link_State Dest_Type State Tag Flags
1.1.1.1 1.1.1.1 Network Valid 0 6
Paths Out_Port Next_Hop Type State
1 Lo 4 0.0.0.0 OSPF 0 0
Destination Mask Path_Cost Type2_Cost Path_Type
1.1.1.5 255.255.255.255 1 0 Intra
Adv_Router Link_State Dest_Type State Tag Flags
1.1.1.1 1.1.1.1 Network Valid 0 6
Paths Out_Port Next_Hop Type State
1 Lo 5 0.0.0.0 OSPF 0 0
Destination Mask Path_Cost Type2_Cost Path_Type
1.1.1.6 255.255.255.255 1 0 Intra
Adv_Router Link_State Dest_Type State Tag Flags
1.1.1.1 1.1.1.1 Network Valid 0 6
Paths Out_Port Next_Hop Type State
1 Lo 6 0.0.0.0 OSPF 0 0
Destination Mask Path_Cost Type2_Cost Path_Type
1.1.1.7 255.255.255.255 1 0 Intra
Adv_Router Link_State Dest_Type State Tag Flags
1.1.1.1 1.1.1.1 Network Valid 0 6
Paths Out_Port Next_Hop Type State
1 Lo 7 0.0.0.0 OSPF 0 0
device# show ip ospf summary Seq Instance Intfs Nbrs Nbrs-Full LSAs Routes 1 default-vrf 2 1 0 1 2
device# show ip ospf summary all-vrfs total
---------------------------------------------
IPv4 OSPF VRFs Summary Total
---------------------------------------------
Number of VRFs: 1
Number of Interfaces: 200
Number of Neighbors: 200
Number of Neighbors in Full state: 200
Number of LSAs: 182600
Number of Routes: 102600
device# show ip ospf traffic
Packets Received Packets Sent
Hello 3943 3936
Database 6 6
LSA Req 1 2
LSA Upd 18 20
LSA Ack 17 16
No Packet Errors!