Enable OSPF on the port.
default ip ospf
default ip ospf enable
default ip ospf port {slot/port[/sub-port][-slot/port[/sub-port]][,...]}
ip ospf enable
ip ospf port {slot/port[/sub-port][-slot/port[/sub-port]][,...]} enable
no ip ospf
no ip ospf enable
no ip ospf port {slot/port[/sub-port][-slot/port[/sub-port]][,...]}
Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.
The default is disabled.
GigabitEthernet Interface Configuration