mpls te link-attribute
Use mpls te link-attribute to set the link attribute.
Use undo mpls te link-attribute to restore the default.
Syntax
mpls te link-attribute attribute-value
undo mpls te link-attribute
Default
The link attribute value is 0x00000000.
Views
Interface view
Predefined user roles
network-admin
Parameters
attribute-value: Specifies the link attribute value, a hexadecimal number in the range of 0 to ffffffff. A link attribute value is a 32-bit binary number. Each bit represents an attribute with a value of 0 or 1.
Usage guidelines
The TE information for a link advertised by the IGP includes the link attribute configured by this command. After receiving the link TE information, the ingress node of an MPLS TE tunnel determines whether the link can be used for MPLS TE tunnel establishment according to the following settings:
The configured tunnel affinity attribute.
The affinity mask.
The link attribute.
A link is available for a tunnel if the following requirements are met:
The link attribute bits corresponding to the affinity attribute's 1 bits whose mask bits are 1 must have a minimum of one bit set to 1.
The link attribute bits corresponding to the affinity attribute's 0 bits whose mask bits are 1 must have no bit set to 1.
The link attribute bits corresponding to the 0 bits in the affinity mask are not checked.
For example, if the affinity is 0xfffffff0 and the mask is 0x0000ffff, a link is available for the tunnel when its link attribute bits meet the following requirements:
The highest 16 bits each can be 0 or 1 (no requirements).
The 17th through 28th bits must have a minimum of one bit whose value is 1.
The lowest four bits must be 0.
Examples
# On VLAN-interface 10, set the link attribute to 0x00000101.
<Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] mpls te link-attribute 101
Related commands
mpls te affinity-attribute