< Home

mpls te affinity property

Function

The mpls te affinity property command configures the affinity property for an MPLS TE tunnel.

The undo mpls te affinity property command restores the default settings.

By default, both the affinity value and the affinity mask are 0x0 for an MPLS TE tunnel.

Format

mpls te affinity property properties [ mask mask-value ] [ secondary | best-effort ]

undo mpls te affinity property [ secondary | best-effort ]

undo mpls te affinity property properties [ mask mask-value ] { secondary | best-effort }

Parameters

Parameter Description Value
properties Specifies the affinity property of links that carry a tunnel. The value is in hexadecimal notation and is of 32 bits with each bit representing an attribute. The value ranges from 0x0 to 0xFFFFFFFF. The default value is 0x0.
mask mask-value Specifies the link property to be checked. The value is in hexadecimal notation and is of 32 bits with each bit representing an attribute. The value ranges from 0x0 to 0xFFFFFFFF. The default value is 0x0.
secondary Indicates the affinity property of a backup CR-LSP. -
best-effort Indicates the affinity property of the best-effort path. -

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Affinity property masks determine the link properties that should be checked by a device.

To ensure that a link can be used by a tunnel, for the bits that are 1 in a mask, it is required that at least one bit in the administrative group and the corresponding bit in the affinity property be 1. In addition, if the bits in the affinity property are 0, the corresponding bits in the administrative group cannot be 1.

After an affinity property for the MPLS TE tunnel is changed and the new configuration is committed, the established LSPs can be affected, and the path of the TE tunnel is recalculated.

Example

# Set the affinity property of Tunnel 1.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol mpls te
[HUAWEI-Tunnel1] destination 2.2.2.2
[HUAWEI-Tunnel1] mpls te tunnel-id 100
[HUAWEI-Tunnel1] mpls te affinity property a04 mask e0c
[HUAWEI-Tunnel1] mpls te commit

# Set the affinity property of the backup CR-LSP and the best-effort path.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol mpls te
[HUAWEI-Tunnel1] destination 2.2.2.2
[HUAWEI-Tunnel1] mpls te tunnel-id 100
[HUAWEI-Tunnel1] mpls te backup hot-standby
[HUAWEI-Tunnel1] mpls te backup ordinary best-effort
[HUAWEI-Tunnel1] mpls te affinity property a04 mask e0c secondary
[HUAWEI-Tunnel1] mpls te affinity property a04 mask e0c best-effort
[HUAWEI-Tunnel1] mpls te commit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >