C
OMMAND
L
INE
I
NTERFACE
4-340
router ospf
This command enables Open Shortest Path First (OSPF) routing for all IP
interfaces on the router. Use the no form to disable it.
Syntax
[no] router ospf
Command Mode
Global Configuration
Default Setting
Disabled
Command Usage
• OSPF is used to specify how routers exchange routing table information.
• This command is also used to enter router configuration mode.
Example
Related Commands
network area (4-348)
router-id
This command assigns a unique router ID for this device within the
autonomous system. Use the no form to use the default router identification
method (i.e., the lowest interface address).
Syntax
router-id ip-address
no router-id
ip-address - Router ID formatted as an IP address.
Command Mode
Router Configuration
Console(config)#router ospf
Console(config-router)#