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

147
Examples
# Set the hold time to 10000 milliseconds.
<Sysname> system-view
[Sysname] interface tunnel 0
[Sysname-Tunnel0] mpls te igp advertise hold-time 10000
mpls te igp metric
Use mpls te igp metric to assign a metric to the MPLS TE tunnel.
Use undo mpls te igp metric to restore the default.
Syntax
mpls te igp metric { absolute value | relative value }
undo mpls te igp metric
Default
TE tunnels take their IGP metrics.
Views
Tunnel interface view
Default command level
2: System level
Parameters
absolute value: Assigns an absolute metric to the TE tunnel for path calculation. The value argument takes
an integer in the range of 1 to 65535. This value is directly used for path calculation.
relative value: Assigns a relative metric to the TE tunnel for path calculation. The value argument takes an
integer in the range of –10 to +10. The default is 0. The cost of the corresponding IGP path must be
added to this relative metric before it can be used for path calculation.
Usage guidelines
You can configure a metric, either absolute or relative, for a tunnel to be used as an IGP shortcut or a
forwarding adjacency. If it is absolute, the metric is directly used for path calculation. If it is relative, the
cost of the corresponding IGP path must be added to the metric for path calculation.
Examples
# Assign MPLS TE tunnel 0 a relative metric of –1 for path calculation in IGP shortcut or forwarding
adjacency mechanism.
<Sysname> system-view
[Sysname] interface tunnel 0
[Sysname-Tunnel0] mpls te igp metric relative -1
mpls te igp shortcut
Use mpls te igp shortcut to enable IS-IS or OSPF to consider the MPLS TE tunnel in its enhanced SPF
calculation when the tunnel is up. If no IGP protocol is specified, the command applies to both OSPF and
IS-IS.
Use undo mpls te igp shortcut to restore the default.