User`s manual
>show ip ospf [area | interface | routes] shows the current status of OSPF
show ip ospf shows whether the protocol is enabled, its areas, interfaces and authentication
[area] shows configuration and status information for OSPF areas
[interface] shows configuration and status information for OSPF interfaces
[routes] shows next hop for all routes
Example: >show ip ospf area
OSPF Areas
Area ID Stub Area #IFs
#Nets
#Rtrs
0.0.0.0
0.0.0.1
False
True
2
2
2
1
2
0
Example:
>show ip ospf interface
INTERFACES
IF IPaddr State Cost DR BDR #NBRS #ADJ
192.48.5.6
192.168.1.1
Down
UP
10
5
192.168.3.123
192.168.3.123
0.0.0.0
0.0.0.0
0
0
0
0
IF IPaddr AREA
192.168.3.123 0.0.0.4
Example: >show ip ospf routes
ROUTE MASK TOS NEXT HOP
192.168.2.0
255.255.255.0 0 0.0.0.0
>show ip ospf database lists the contents of the Link State Database
Example: >show ip ospf database
LSA DATABASE OF AREA : 0.0.0.5
LSA Type Link ID ADV Router Age Seq#(hex) CheckSum
LSA DATABASE OF AREA : 0.0.0.4
LSA Type Link ID ADV Router Age Seq#(hex) CheckSum
Router 192.168.3.123 192.168.3.123 0 8000001B DBBF
>show ip ospf neighbor displays a list of all neighboring routers running OSPF
Example: >show ip ospf neighbor
>show ip route [mask | use] displays route table entries
[mask] shows each route's subnet mask in the table
[use] shows the number of times a route was used
The following flags may appear:
C - cloned
U - route is up
G - gateway
H - host route
X - route rejected
M - route netmask
T - static route
Example: >show ip route mask
>show port acceptable-types <port_number>
61