The ospf command is associated with the context ip:ospf, which contains commands to configure global settings for the Open Shortest Path First (OSPF) protocol on a network.
The following commands are available in the ip:ospf context.
ospfinterface — See for commands in the ip:ospf:ospfinterface context. If ospfinterface does not appear in the ip:ospf context command list, use the status command to enable OSPF.