policy route route-map <map-name> rule <rule-num> set metric-type <type>
Specifies the OSPF external metric-type for a route.
- map-name
- The name of a defined route map.
- rule-num
- The number of a defined route map rule.
- type-1
- OSPF external type 1 metric. This metric uses both internal and external costs when calculating the cost to access an external network.
- type-2
- OSPF external type 2 metric. This metric uses only external cost when calculating the cost to access an external network.
Configuration mode
policy {
route-map map-name {
rule rule-num {
set {
metric-type
type-1
type-2
}
}
}
}
The metric OSPF calculates the cost of accessing an external network.
Use the set form of this command to specify the OSPF external metric type for a route.
Use the delete form of this command to delete the metric type.
Use the show form of this command to display the metric type.