set metric-type (redistribution)

Use this command to specify the OSPF metric type when redistributing a source packet matched by this route-map.

Syntax

set metric-type {type-1 | type-2}
no set metric-type {type-1 | type-2}

Parameters

type-1 | type-2 Specifies the OSPF metric type when redistributing a source packet by this route-map. Valid values: type-1 or type-2. Default Value: None.

Defaults

None.

Mode

Route-map configuration.

Usage

The “no” form of this command deletes this metric type set clause.

Example

This example shows how to set the OSPF metric type to type-2 when redistributing source packets matched in the rm5 route-map:

System(rw-config)->route-map redistribution rm5
System(rw-config-route-map)->set metric-type type-2
System(rw-config-route-map)->