Associating Affinity-Names with TE Links
The next step in the configuration of MPLS-TE Flexible Name-based Tunnel Constraints is to assign affinity
names and values to TE links. You can assign up to a maximum of 32 colors. Before you assign a color to a
link, you must define the name-to-value mapping for each color.
SUMMARY STEPS
1.
configure
2.
mpls traffic-eng
3.
interface type interface-path-id
4.
attribute-names attribute name
5.
Use the commit or end command.
DETAILED STEPS
PurposeCommand or Action
Enters global configuration mode.configure
Example:
RP/0/RP0/CPU0:router# configure
Step 1
Enters MPLS-TE configuration mode.mpls traffic-eng
Example:
RP/0/RP0/CPU0:router(config)# mpls
Step 2
traffic-eng
RP/0/RP0/CPU0:router(config-mpls-te)#
Enables MPLS-TE on an interface and enters MPLS-TE interface
configuration mode.
interface type interface-path-id
Example:
RP/0/RP0/CPU0:router(config-mpls-te)#
Step 3
interface tunnel-te 2
RP/0/RP0/CPU0:router(config-mpls-te-if)#
Assigns colors to TE links over the selected interface.
attribute-names attribute name
Example:
RP/0/RP0/CPU0:router(config-mpls-te-if)#
Step 4
attribute-names red
commit—Saves the configuration changes and remains within
the configuration session.
Use the commit or end command.
Step 5
end—Prompts user to take one of these actions:
Cisco IOS XR MPLS Configuration Guide for the Cisco CRS Router, Release 5.1.x
270
Implementing MPLS Traffic Engineering
Configuring Flexible Name-based Tunnel Constraints