Open Shortest Path First Protocol (OSPF)

OSPFv2 is the IPv4 implementation of the Open Shortest Path First protocol. (OSPFv3 is the IPv6 implementation of this protocol.) Beginning with software version K.15.01, the switches can be configured to run OSPFv2 either alone or simultaneously with OSPFv3. (OSPFv2 and OSPFv3 run as independent protocols on the switch and do not have any interaction when run simultaneously.)

For overview information on OSPF, see Overview of OSPF.

Configuring OSPF on the routing switch

Enabling IP routing

Syntax:

[no] ip routing

Executed at the global configuration level to enable IP routing on the routing switch.

Default: Disabled

The no form of the command disables IP routing. (Global OSPF and RIP routing must be disabled before you disable IP routing.)

Example:

HP Switch(config)# ip routing

Enabling global OSPF routing

Syntax:

[no] router ospf [ enable | disable ]

Executed at the global configuration level to enable OSPF on the routing switch and to enter the OSPF router context. This enables you to proceed with assigning OSPF areas, including area border router (ABR) and autonomous system boundary router (ASBR) configuration, and to modify OSPF global parameter settings as needed.

The enable form of the command enables OSPF routing, and the disable form of the command disables OSPF routing.

Global IP routing must be enabled before executing this command.

Default: Disabled

The no form of the command deletes all protocol specific information from the global context and interface context. All protocol parameters are set to default values.


[NOTE: ]

NOTE: If you disable OSPF, the switch retains all the configuration information for the disabled protocol in flash memory. If you subsequently restart OSPF, the existing configuration will be applied. After restarting OSPF, the exiting configuration will be applied and the protocol will be in the disabled state.


Example

To enter the OSPF router context

HP Switch(config)#router ospf 
HP Switch(ospf)#

To enable OSPF routing

HP Switch(config)#router ospf enable
HP Switch(ospf)#

To disable OSPF routing

HP Switch(config)#router ospf disable
HP Switch(ospf)#

[NOTE: ]

NOTE: The no router ospf enable command also disables OSPF routing.


To delete all protocol-specific information from the global context and interface context and set all protocol parameters to default values.:

HP Switch(config)#no router ospf
HP Switch(ospf)#

Changing the RFC 1583 OSPF compliance setting

For more information, see Changing the RFC 1583 OSPF compliance setting.

Syntax:

[no] rfc1583-compatibility

Executed at the global configuration level to toggle routing switch operation compliance between RFC 1583 and RFC 2328.

rfc1583-compatibility

Configures the routing switch for external route preference rules compliant with RFC 1583.

no rfc1583-compatibility

Configures the routing switch for external route preference rules compliant with RFC 2328.

Default: Compliance enabled

Example

To disable RFC 1583 compatibility on a routing switch in an OSPF domain where RFC 2178 and RFC 2328 are universally supported:

HP Switch(config)# router ospf 
HP Switch(ospf)# no rfc1583-compatibility

Changing external route preference compatibility from RFC 1583 to RFC 2328

Changing external route preference compatibility from RFC 1583 to RFC 2328