Specifications

Table Of Contents
set mpls-label
MP-419
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
set mpls-label
To enable a route to be distributed with a Multiprotocol Label Switching (MPLS) label if the route
matches the conditions specified in the route map, use the set mpls-label command in route-map
configuration mode. To disable this function, use the no form of this command.
set mpls-label
no se
t mpls-label
Syntax Description This command has no arguments or keywords.
Command Default No route with an MPLS label is distributed.
Command Modes Route-map configuration
Command History
Usage Guidelines This command can be used only with the neighbor r
oute-map out command to manage outbound route
maps for a Border Gateway Protocol (BGP) session.
Use the ro
ute-map global configuration command with match and set route-map commands to define
the conditions for redistributing routes from one routing protocol into another. Each route-map
command has a list of match and set commands associated with it. The match commands specify the
match criteria—the conditions under which redistribution is allowed for the current route-map
command. The set commands specify the set actions—the particular redistribution actions to perform if
the criteria enforced by the match commands are met. The no route-map command deletes the route
map.
Examples The following example shows how to create a route map that enables the route to be distributed with a
l
abel if the IP address of the route matches an IP address in ACL1:
Router(config-router)# route-map incoming permit 10
Router(config-route-map)# match ip address 1
Release Modification
12.0(21)ST This command was introduced.
12.0(22)S This command was integrated into Cisco IOS Release 12.0(22)S.
12.2(11)S This command was integrated into Cisco IOS Release 12.2(11)S.
12.2(13)T This command was integrated into Cisco IOS Release 12.2(13)T.
12.2(28)SB This command was integrated into Cisco IOS Release 12.2(28)SB.
12.2(33)SRA This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2(33)SRB Support for IPv6 was added.
12.2(33)SXH This command was integrated into Cisco IOS Release 12.2(33)SXH.
12.2(33)SB This command was integrated into Cisco IOS Release 12.2(33)SB.