1624
C
96: MPLS TE C
HAPTER
mpls te igp metric
Syntax
View
Parameter
Description
Example
mpls te igp shortcut
Syntax
View
Parameter
Description
C
ONFIGURATION
OMMANDS
mpls te igp metric { absolute value | relative value }
undo mpls te igp metric
Tunnel interface view
absolute value: Assigns an absolute metric to the TE tunnel for path calculation.
The value argument takes an integer in the range 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 -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.
Use the
mpls te igp metric
Use the
undo mpls te igp metric
By default, TE tunnels take their IGP metrics.
# Assign MPLS TE tunnel 0 a relative metric of -1 for enhanced SPF calculation in
IGP.
<Sysname> system-view
[Sysname] interface tunnel 0
[Sysname-Tunnel0] mpls te igp metric relative -1
mpls te igp shortcut [ isis | ospf ]
undo mpls te igp shortcut
Tunnel interface view
isis: Sets the IGP protocol to IS-IS.
ospf: Sets the IGP protocol to OSPF.
Use the
mpls te igp shortcut
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 the
undo mpls te igp shortcut
By default, IGP does not consider MPLS TE tunnels in its enhanced SPF calculation.
command to assign a metric to the MPLS TE tunnel.
command to restore the default.
command to enable IS-IS or OSPF to consider the
command to restore the default.