R0106-HP MSR Router Series MPLS Command Reference(V7)

141
Related commands
auto-tunnel backup
tunnel-number
path-metric-type
Use path-metric-type to specify the link metric type to be used for path selection when a metric type is not
explicitly specified for a tunnel.
Use undo path-metric-type to restore the default.
Syntax
path-metric-type { igp | te }
undo path-metric-type
Default
A tunnel uses TE metrics of links for path selection when no metric type is specified for the tunnel.
Views
MPLS TE view
Predefined user roles
network-admin
Parameters
igp: Uses the IGP metric.
te: Uses the TE metric.
Usage guidelines
Each MPLS TE link has two metrics: IGP metric and TE metric. By correctly planning the two metrics, you
can select different tunnels for different classes of traffic. For example, use the IGP metric to represent a
link delay (a smaller IGP metric value indicates a lower link delay), and use the TE metric to represent a
link bandwidth value (a smaller TE metric value indicates a bigger link bandwidth value).
You can establish two MPLS TE tunnels: Tunnel1 for voice traffic and Tunnel2 for video traffic. Configure
Tunnel1 to use IGP metrics for path selection, and configure Tunnel2 to use TE metrics for path selection.
As a result, the video traffic travels through the path that has larger bandwidth and the voice traffic travels
through the path that has lower delay.
If you have specified a metric type for a tunnel by using the mpls te path-metric-type command in tunnel
interface view, the tunnel uses the specified metric type for path selection. Otherwise, the tunnel uses the
metric type specified by the path-metric-type command for path selection.
Examples
# Configure MPLS TE tunnels that are not explicitly specified with a metric type to use the IGP metric for
path selection.
<Sysname> system-view
[Sysname] mpls te
[Sysname-te] path-metric-type igp
Related commands
mpls te metric