Configuring OSPF

6.Optionally, enter the IP address and mask if you want to filter the redistributed routes for a specific network range.

7.Optionally, enter the filter ID or accept the ID value in the Filter ID field.

8.Optionally, select the filter action, Deny or Permit. The default is Permit.

9.Optionally, select the types of routes the filter applies to in the Protocol section. You can select one of the following:

All (the default)

Static

RIP

BGP

Connected

10.Optionally, enable matching on RIP metric and enter the metric.

11.Optionally, enable setting the OSPF metric for the imported routes and specify the metric.

12.Click the Add button to apply the filter to the device’s running-config file.

13.Select the Save link at the bottom of the dialog, then select Yes when prompted to save the configuration change to the startup-config file on the device’s flash memory.

Modify Default Metric for Redistribution

The default metric is a global parameter that specifies the cost applied to all OSPF routes by default. The default value is 10. You can assign a cost from 1 – 15.

NOTE: You also can define the cost on individual interfaces. The interface cost overrides the default cost.

USING THE CLI

To assign a default metric of 4 to all routes imported into OSPF, enter the following commands:

HP9300(config)# router ospf

HP9300(config-ospf-router)# default-metric 4

8 - 27