
179
Parameters
absolute
value
: Assigns an absolute metric to the TE tunnel for path calculation. The
value
parameter
takes an integer ranging from 1 to 65,535. This value is directly used for path calculation.
relative
value
: Assigns a relative metric to the TE tunnel for path calculation. The
value
parameter takes
an integer ranging from –10 to +10. The default is 0. The cost of the IGP path must be added to this
relative metric before it can be used for path calculation.
Examples
# 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
Description
Use the
mpls te igp shortcut
command to enable IS-IS or OSPF to consider the MPLS TE tunnel in its
enhanced SPF calculation when the tunnel is up. If you do not specify an IGP protocol, the command
applies to both OSPF and IS-IS.
Use the
undo mpls te igp shortcut
command to restore the default.
By default, IGP does not consider MPLS TE tunnels in its enhanced SPF calculation.
The
mpls te igp shortcut
command cannot be used together with the
mpls te igp advertise
command.
Syntax
mpls te igp shortcut
[
isis
|
ospf
]
undo mpls te igp shortcut
View
Tunnel interface view
Default level
2: System level
Parameters
isis
: Sets the IGP protocol to IS-IS.
ospf
: Sets the IGP protocol to OSPF.
Examples
# Enable OSPF and IS-IS to consider TE tunnel 0 in enhanced SPF calculation when the tunnel is up.
<Sysname> system-view
[Sysname] interface tunnel 0
[Sysname-Tunnel0] mpls te igp shortcut
mpls te link administrative group
Description
Use the
mpls te link administrative group
command to configure the link administrative group attribute.