router ospf

To configure an Open Shortest Path First (OSPF) routing instance, use the router ospf command. To terminate an OSPF routing process, use the no form of this command.

router ospf instance-tag

no router ospf instance-tag

Syntax Description

instance-tag
Internally used identification parameter for an OSPF routing instance. It is locally assigned and can be any word or positive integer. The instance-tag argument can be a maximum of 20 alphanumeric characters.

Command Default

No OSPF routing instance is defined.

Command Modes

Global configuration mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

Use the router ospf command to specify multiple OSPF routing instances in each router.

This command requires the LAN Base Services license.

Examples

This example shows how to configure a basic OSPF instance:

switch(config)# router ospf 12
switch(config-router)#
 

This example shows how to delete an OSPF instance:

switch(config)# no router ospf 12
switch(config)#
 

Related Commands

Command
Description
copy running-config startup-config
Saves the configuration changes to the startup configuration file.
show ip ospf
Displays OSPF information.