The following table summarizes OSPF router configuration mode commands:
Click to expand in new window

OSPF-Router Config Mode Commands

Command Description
area Specifies OSPF enabled interfaces
auto-cost Specifies the reference bandwidth in terms of Mbits per second
default-information Controls the distribution of default information
ip Configures IP IInternet Protocol) default gateway priority
network Defines OSPF network settings
ospf Enables OSPF
passive Specifies the configured OSPF interface as passive interface
redistribute Specifies the route types redistributed by OSPF
route-limit Specifies the limit for the number of routes managed by OSPF
router-id Specifies the router ID for OSPF
no (router-mode-config-command) Negates a command or sets its defaults


For information on common commands (clrscr, commit, help, revert, service, show, write, and exit), see Common Commands.


The input parameter <HOSTNAME>, wherever used in syntaxes across this chapter, cannot include an underscore (_) character. In other words, the name of a device cannot contain an underscore.