Users Guide

Table Of Contents
View summary information for the OSPF database in EXEC mode.
show ip ospf database
View the configuration of OSPF neighbors connected to the local router in EXEC mode.
show ip ospf neighbor
View routes that OSPF calculates in EXEC mode.
show ip ospf routes
View OSPF configuration
OS10# show running-configuration ospf
!
interface ethernet1/1/1
ip ospf 100 area 0.0.0.0
!
router ospf 100
log-adjacency-changes
Debug OSPF
Use the following procedures to debug OSPFv2 and OSPFv3.
To debug OSPFv2:
debug ip ospfv2
To debug OSPFv3:
debug ip ospfv3
OSPFv2 commands
area default-cost
Sets the metric for the summary default route generated by the ABR and sends it to the stub area.
Syntax
area area-id default-cost cost
Parameters
area-id Enter the OSPF area in dotted decimal A.B.C.D format or enter a number, from 0 to
65535.
cost Enter a cost for the stub areas advertised external route metric, from 0 to 65535.
Default Cost is 1
Command Mode ROUTER-OSPF
Usage
Information
The cost is also referred as reference-bandwidth or bandwidth. Use the area default-cost
command on the border routers at the edge of a stub area. The no version of this command resets
the value to the default.
Example
OS10(conf-router-ospf-10)# area 10.10.1.5 default-cost 10
Supported
Releases
10.2.0E or later
938 Layer 3