Configuring Administrative Group and Affinity Property
Context
The configuration of the administrative group affects only LSPs to be set up; the configuration of the affinity property affects established LSPs by recalculating the paths.
Perform the following configurations on the ingress node of an MPLS TE tunnel.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view of the MPLS-TE-enabled interface is displayed.
- (Optional) 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.Only the S5720HI, S5720EI, S6720EI, and S6720S-EI support switching between Layer 2 and Layer 3 modes.
- Run mpls te link administrative group value
The administrative group of the MPLS TE link is configured.
The modification of administrative group takes effect only on LSPs that are established after modification.
- Run quit
Return to the system view.
- Run interface tunnel interface-number
The tunnel interface view of the MPLS TE tunnel is displayed.
- Run mpls te affinity property properties [ mask mask-value ] [ secondary | best-effort ]
The affinity for the tunnel is configured.
By default, the values of administrative group, affinity property, and mask are all 0x0.
After the modified affinity property is committed, the established LSP in this tunnel may be affected and the system recalculates the path for the TE tunnel.
- Run mpls te commit
The current tunnel configuration is committed.