The Router Ospf [Process Id] Cisco command

Command: router ospf [process_id]

Function: Configures Open Shortest Path First (OSPF) routing within a Cisco device.

Usage:

The 'router ospf [process_id]' command is used to enable OSPF routing on a Cisco device. It defines an OSPF process, which serves as an independent routing instance with its own set of OSPF parameters and configuration. Routing information learned through one OSPF process is not shared with other OSPF processes on the same device. The 'process_id' parameter can be specified to identify the OSPF process. It is a unique integer value that differentiates multiple OSPF processes running simultaneously on the same device.

Syntax:

router ospf process_id

Parameters:

Parameter Description
process_id A unique integer value identifying the OSPF process. The range is 1-65535. Specify 0 to enable the default process.

Modes:

This command can be used in the following modes:

Mode Description
Global Configuration Configures the device for OSPF routing.
Interface Configuration Configures specific interfaces with OSPF parameters.

Default:

OSPF routing is disabled by default.

Caveats:

Caveat Description
OSPF requires a unique process ID for each instance. Using the same process ID for multiple OSPF processes will result in an error.
Enabling OSPF routing on an interface requires proper configuration of network parameters, such as the OSPF network type, network address, and routing advertisements.

Supported Devices:

Device Type Command Availability
Cisco Routers Yes
Cisco Switches Yes, limited support for specific models.

Platform Notes:

Platform Considerations
Catalyst 6500 Series OSPF routing is supported on Supervisor Engine I and II.
Catalyst 3750 Series Limited OSPF support. Detailed information can be found in the specific platform documentation.

Related Commands:

Command Description
show ip ospf neighbors Displays the neighboring OSPF routers and the status of OSPF adjacencies.
show ip ospf interface Displays OSPF interface-specific information, such as the interface type, OSPF network type, and routing costs.
show ip ospf route Displays the OSPF routing table entries.

router ospf [process_id] Usage Examples

Enable OSPF routing with a default process ID:

router ospf

Enable OSPF routing with a specific process ID:

router ospf 100

Enable OSPF routing with a specific process ID and configure the router ID:

router ospf 100
router-id 192.168.1.1

Enable OSPF routing with a specific process ID, configure the router ID, and set the maximum number of areas (200):

router ospf 100
router-id 192.168.1.1
max-areas 200

Enable OSPF routing with a specific process ID, configure the router ID, set the maximum number of areas (200), and disable OSPF route summarization:

router ospf 100
router-id 192.168.1.1
max-areas 200
no auto-summary

Enable OSPF routing with a specific process ID, configure the router ID, set the maximum number of areas (200), disable OSPF route summarization, and adjust the hello and dead intervals:

router ospf 100
router-id 192.168.1.1
max-areas 200
no auto-summary
hello-interval 10
dead-interval 40