The mpls te igp metric command specifies the MPLS TE tunnel metric for the SPF calculation in IGP shortcut or forwarding adjacency mode.
The undo mpls te igp metric command restores the default settings.
The TE tunnel metric is equal to the IGP metric of the TE tunnel by default.
mpls te igp metric { absolute absolute-value | relative relative-value }
undo mpls te igp metric
Parameter | Description | Value |
---|---|---|
absolute absolute-value | Specifies the absolute metric mode. | The value is an integer that ranges from 1 to 65535. |
relative relative-value | Specifies the relative metric mode, indicating the offset value between the MPLS TE metric and the IGP metric. | The value is an integer that ranges from -10 to 10. The default value is 0. |
Usage Scenario
IGP uses an auto route related to a CR-LSP in a TE tunnel that functions as a logical link to calculate a path. The tunnel interface is used as an outbound interface in the auto route. An auto route can work in IGP shortcut or forwarding adjacency mode. You can set a metric for a TE tunnel in either mode.
When specifying the metric for a TE tunnel in IGP shortcut mode, pay attention to the following points:
If the absolute parameter is used, the metric of the TE tunnel is the set metric.
If the relative parameter is used, the metric of the TE tunnel is the sum of the metric of the corresponding IGP path and relative metric.
A proper IGP metric for the TE tunnel in forwarding adjacency mode can ensure that the LSP be advertised and used correctly. For example, the metric of a TE tunnel should be less than the metric of an IGP route.
Precautions
When specifying an IGP metric for a TE tunnel in forwarding adjacency mode, select the absolute parameter if the IGP protocol is IS-IS.