To run OSPF on HP Procurve switches, you will most likely need the "Premium" software license. Once you have that, configuring OSPF is fairly easy, although different from the Cisco approach:
For example, I want to enable OSPF in area 0 on my HP core switch (HP 5406):
- Enter OSPF configuration
(config)#router ospf
- Define the OSPF areas to be used
(ospf)#area backbone
- HP Procurve runs OSPF under the VLAN configuration, so enter the VLAN that will be communicating with your other OSPF enabled devices and then enable the OSPF area
(vlan-10)#ip ospf area backbone
- Once your configuration is complete, enable the OSPF process
(config)#router ospf enable
You can verify your OSPF status and neighbors:
#show ip ospf general
#show ip ospf neighbor