R2511-HP MSR Router Series MPLS Command Reference(V5)

305
mpls te path metric-type
Use mpls te path metric-type in MPLS view to specify the link metric type for path calculation when a
metric type is not explicitly configured for a tunnel.
Use mpls te path metric-type in tunnel interface view to specify the link metric type to be used for path
calculation of the current tunnel.
Use undo mpls te path metric-type to restore the default. This undo form is only available in tunnel
interface view.
Syntax
mpls te path metric-type { igp | te }
undo mpls te path metric-type
Default
In MPLS view, TE metrics of links are used in path calculation for TE tunnels.
In tunnel interface view, no link metric type is specified for path calculation.
Views
MPLS view, tunnel interface view
Default command level
2: System level
Parameters
igp: Uses the IGP metric for tunnel path calculation.
te: Uses the TE metric for tunnel path calculation.
Usage guidelines
A tunnel prefers the link metric type specified in the tunnel interface view. If no link metric type is specified
in tunnel interface view, the configuration in MPLS view is used.
Examples
In MPLS view:
# Configure TE tunnels that were not explicitly specified with a metric type to use the IGP metric for path
calculation.
<Sysname> system-view
[Sysname] mpls
[Sysname-mpls] mpls te path metric-type igp
In tunnel interface view:
# Configure tunnel 0 to use the IGP metric for path calculation.
<Sysname> system-view
[Sysname] interface tunnel 0
[Sysname-Tunnel0] mpls te path metric-type igp
Related commands
mpls te metric