router ospf

Enables and configures the Open Shortest Path First version 2 (OSPFv2) routing protocol.
Syntax
router ospf [ vrf name ]
no router ospf
Parameters
vrf name
Specifies a nondefault VRF.
Modes

Global configuration mode

Usage Guidelines

Use this command to enable the OSPFv2 routing protocol and enter OSPF router or OSPF router VRFconfiguration mode. OSPFv2 maintains multiple instances of the routing protocol to exchange route information among various VRF instances.

The no form of the command deletes all current OSPF configuration and blocks any further OSPFv2 configuration.

Examples

The following example enables OSPFv2 on a default VRF and enters OSPF VRF router configuration mode.

device# configure terminal
device(config)# router ospf
device(config-ospf-router)#
History