Multicast and Routing Guide K/KA/KB.15.15

Modifying the redistribution metric type
Optional: 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.
Syntax:
router ospf metric-type [ type1 | type2 ]
Globally reconfigures the redistribution metric type on an ASBR.
type1 Specifies the OSPF metric plus the external metric for an external route.
type2 Specifies the external metric for an external route.
Default: type2
Example:
To change from the default setting on an ASBR to type 1, enter the following
command:
HP Switch(config)# router ospf metric-type type1
Configuring ranges on an ABR to reduce advertising to the backbone
Optional: For more information, see “Configuring ranges on an ABR to reduce advertising to the
backbone” (page 201).
Syntax:
area [[ospf-area-id] | [backbone]] range
[[ip-addr/mask-length]] [no-advertise] [type summary [[cost
1-16777215] | [nssa] | [cost 1-16777215]]]
area ospf-area-id range ip-addr/mask-length [no-advertise]
[type summary[[cost 1-16777215] | nssa ]]
Use this command on a routing switch intended to operate as an ABR for the
specified area to do either of the following:
Simultaneously create the area and corresponding range setting for routes to
summarize or block.
For an existing area, specify a range setting for routes to summarize or block.
ospf-area-id Same area ID as in “Configuring an OSPF
backbone or normal area (page 142), except
you cannot assign a backbone area number
( 0 or 0.0.0.0) to a stub or NSSA area.
range ip-addr/mask-length Defines the range of route advertisements to
either summarize for injection into the
backbone area or to prevent from being
injected into the backbone area.
The ip-addr value specifies the IP address
portion of the range, and mask-length
specifies the leftmost significant bits in the
address.
The ABR for the specified area compares the
IP address of each outbound route
advertisement with the address and
significant bits in the mask to determine
150 Open Shortest Path First Protocol (OSPF)