home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

policy route route-map <map-name> rule <rule-num> set metric-type <type>

Specifies the OSPF external metric-type for a route.

set policy route route-map map-name rule rule-num set metric-type [ type-1 | type-2 ]
delete policy route route-map map-name rule rule-num set metric-type [ type-1 | type-2 ]
show policy route route-map map-name rule rule-num set metric-type
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.