metric-type

Configures the default metric type for external routes.

Syntax

metric-type { type1 | type2 }
no metric-type { type1 | type2 }

Command Default

Type 1

Parameters

type1
The metric of a neighbor is the cost between itself and the device plus the cost of using this device for routing to the rest of the world.
type2
The metric of a neighbor is the total cost from the redistributing device to the rest of the world.

Modes

OSPF router configuration mode

OSPFv3 router configuration mode

OSPF router VRF configuration mode

OSPFv3 router VRF configuration mode

Usage Guidelines

The no form of the command restores the default setting. You must specify a type parameter when using the no form.

Examples

The following example sets the default metric type for external routes to type 2.

device# configure terminal
device(config)# router ospf
device(config-router-ospf-vrf-default-vrf)# metric-type type2