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:

A link is available for a tunnel if the following requirements are met:

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:

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