R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide

154
Usage guidelines
Up to 10 paths can be specified for an MPLS TE tunnel.
The paths for a tunnel to use must have different preferences.
A path with the highest preference is preferred for CSPF calculation.
Examples
# Configure interface Tunnel 0 to use the explicit path named path1 and the dynamically calculated path,
setting the preferences of the paths to 1 and 2 respectively.
<Sysname> system-view
[Sysname] interface tunnel 0
[Sysname-Tunnel0] mpls te path explicit-path path1 preference 1
[Sysname-Tunnel0] mpls te path dynamic preference 2
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.