[Contents] [Prev] [Next] [Index] [Report an Error]

# set metric

#### Syntax

set metric [ +relValue | -relValue | absValue ]

no set metric

#### Release Information

Command introduced before JUNOSe Release 7.1.0.

#### Description

Modifies the metric value (for BGP, the MED) for a route that matches the route map by applying a relative or absolute metric. The no version removes the set clause from a route map.

| Note: You cannot have an absolute and a relative metric within the same route map sequence. Issuing either command overrides any previously configured metric in the route map.

#### Options

- +—Specifies that the value is added to the metric for routes matching the route map; immediately precedes the metric value with no intervening space
- –—Specifies that the value is subtracted from the metric for routes matching the route map; immediately precedes the metric value with no intervening space
- relValue—Number, in the range 0–4294967295
- absValue—Number, in the range 0–4294967295

#### Mode

Route Map Configuration

[Contents] [Prev] [Next] [Index] [Report an Error]