metric

Assigns a metric to the LSP, which routing protocols can use to determine the relative preference among several LSPs towards a given destination.

Syntax

metric number
no metric number

Command Default

All LSPs have a metric of 1.

Parameters

number
Specifies the metric value. Enter an integer from 1 to 65535. A lower value is preferred over a higher value.

Modes

MPLS LSP configuration mode

Usage Guidelines

When multiple LSPs have the same destination LSR, and they have the same metric, the traffic load is shared among them.

Use the no form of the command to reset the default value.

MPLS is supported on the Extreme 8820, SLX 9740, SLX 9640, and SLX 9540 devices only.

Examples

The following example configures LSP to22 with a metric value of 20.

device(config)# router mpls
device(config-router-mpls)# lsp to22
device(config-router-mpls-lsp-to22)# no enable
device(config-router-mpls-lsp-to22)# to 10.1.1.2
device(config-router-mpls-lsp-to22)# from 10.1.1.1
device(config-router-mpls-lsp-to22)# metric 20
device(config-router-mpls-lsp-to22)# enable
device(config-router-mpls-lsp-to22)#exit