Enables and configures the Open Shortest Path First version 2 (OSPFv2) routing protocol.
Global configuration mode
Use this command to enable the OSPFv2 routing protocol and enter OSPF router or OSPF router VRF configuration 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.
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-router-ospf-vrf-default-vrf)