No relevant resource is found in the selected language.
Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Administrative Group and Affinity Property
Configuring Administrative Group and Affinity Property
Context
The affinity property, together with the link administrative
group attribute, is used to determine the links used in CR-LSP path
calculation.
The device supports two configuration methods:
Hexadecimal number: A 32-bit hexadecimal numbers is set
for each affinity property and link administrative group attribute,
which causes plan and computation difficulties. This is the traditional
configuration method.
Name: Each affinity and link administrative group bit
can be named, which simplifies configuration and maintenance. Naming
affinity and link administrative group bits is recommended.
The change of the administrative group attribute takes effect
only on the new CR-LSP, without affecting the existing CR-LSPs.
If the affinity property of a tunnel is changed, the existing
CR-LSPs for the tunnel are affected. The device re-calculates a path
for the tunnel.
Configure an affinity property on the ingress node
of the MPLS TE tunnel and an administrative group attribute on each
node participating in the tunnel path calculation.
Procedure
Configure an administrative group attribute and affinity
property through a hexadecimal number.
Configure a hexadecimal number for the link's administrative
group attribute.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The MPLS-TE-enabled interface view is displayed.
On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.
If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batchinterface-type { interface-number1 [ tointerface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.
Run mpls te link administrative groupvalue
An administrative group
attribute is configured for the link.
The default
administrative group attribute for the link is 0x0.
Run quit
Return to the system view.
Configure an affinity value for the tunnel.
Run interface tunneltunnel-number
The tunnel interface view of the MPLS TE tunnel is displayed.
Run mpls te affinity propertyproperties [ maskmask-value ] [ secondary ]
An affinity value is configured for the tunnel.
By default, no affinity value is configured for the tunnel.
Run commit
The
configuration is committed.
Configure an administrative group attribute and affinity
property through a name.
Configure a mapping template for affinity
names and bits.
Run system-view
The system view is displayed.
Run path-constraint affinity-mapping
An affinity name template is created, and the
template view is displayed.
By default, no affinity name template
is created.
Run attributebit-namebit-sequencebit-number
Mappings between affinity bits and names are configured.
This step can be performed to configure one affinity bit. Repeat
this step to configure more affinity bits. You can configure some
or all 32 affinity bits.
By default, no mapping between affinity
bits and names is configured.
Run quit
Return to the system view.
Configure an affinity name template on each
node used to calculate the path over which a tunnel is established.
The mapping relationship on all the nodes must be the same. In this
way, affinity names have the same meaning during path calculation
for the tunnel.
Configure an administrative group name for a link.
Run interfaceinterface-typeinterface-number
The MPLS-TE-enabled interface view is displayed.
On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.
If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batchinterface-type { interface-number1 [ tointerface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.
Run mpls te link administrative group namebit-name &<1-32>
An
administrative group name is configured for a link.
In this
command, bit-name must be within the range defined
in the affinity name template.
By default, the administrative
group attribute value of a link is 0x0, and no administrative group
name is configured for the link.
Run quit
Return to the system view.
Configure an affinity name for the tunnel.
Run interface tunneltunnel-number
The tunnel interface view of the MPLS TE tunnel is displayed.
Run mpls te affinity { primary | secondary } { include-all | include-any | exclude } bit-name &<1-32>
An affinity
name is configured for the tunnel.
In this command, bit-name must be within the range defined in the affinity
name template.
By default, no affinity name is configured for
the tunnel.