
171
mpls te affinity property
Description
Use the
mpls te affinity property
command to configure the link affinity attribute of the tunnel.
Use the
undo mpls te affinity property
command to restore the default.
The default affinity attribute of the tunnel is 0x00000000, and the mask is 0x00000000.
The affinity attribute of an MPLS TE tunnel identifies the properties of the links that the tunnel can use.
Related commands:
mpls te link administrative group
.
Syntax
mpls te affinity property
properties
[
mask
mask-value
]
undo mpls te affinity property
View
Tunnel interface view
Default level
2: System level
Parameters
properties
: Specifies the link properties affinity attribute of the tunnel, a 32-bit integer ranging from 0x0 to
0xFFFFFFFF. Each affinity bit represents a property with a value of 1 or 0.
mask-value
: Specifies the 32-bit mask comprising 0s and 1s, ranging from 0x0 to 0xFFFFFFFF. This mask
is used when ANDing the link affinity attribute with the link administrative group attribute. The affinity bits
corresponding to the 1s in the mask are “do care” bits which must be considered. Those corresponding to
the 0s in the mask are “don’t care” bits.
Examples
# Configure the link affinity attribute of tunnel 0.
<Sysname> system-view
[Sysname] interface tunnel 0
[Sysname-Tunnel0] mpls te affinity property 101 mask 303
mpls te backup
Description
Use the
mpls te backup
command to set the backup mode on the tunnel.
Use the
undo mpls te backup
command to restore the default.
By default, tunnel backup is disabled.
With backup enabled, the record route flag is set automatically to record reroute regardless of whether
the
mpls te record-route
command is configured.
The backup function cannot be used together with these commands:
mpls te reoptimization
and
mpls te
resv-style ff
.
Syntax
mpls te backup
{
hot-standby
|
ordinary
}