IP Routing Features 
Configuring OSPF 
Enabling Route Redistribution 
Note  Do not enable redistribution until you have configured the redistribution 
“restrict” filters. Otherwise, the network might get overloaded with routes that 
you did not intend to redistribute. 
To enable redistribution of connected and static IP routes into OSPF, enter 
the following commands. 
HPswitch(config)# router ospf
HPswitch(ospf)# redistribution connected 
HPswitch(ospf)# redistribution static 
HPswitch(ospf)# write memory 
Syntax:  [no] redistribution connected | static 
Modifying Redistribution Metric Type 
The redistribution metric type is used by default for all routes imported into 
OSPF. Type 1 metrics are the same “units” as internal OSPF metrics and can 
be compared directly. Type 2 metrics are not directly comparable, and are 
treated as larger than the largest internal OSPF metric. The default value is 
type 2. 
To modify the default value to type 1, enter the following command: 
HPswitch(config-ospf-router)# metric-type type1 
Syntax:  metric-type type1 | type2 
The default is type2. 
Administrative Distance 
The switch can learn about networks from various protocols, including RIP, 
and OSPF. Consequently, the routes to a network may differ depending on the 
protocol from which the routes were learned. For the switches covered by 
this guide, the administrative distance for OSPF routes is set at 110. 
The switch selects one route over another based on the source of the route 
information. To do so, the switch can use the administrative distances 
assigned to the sources. 
11-50