Specifications

Table Of Contents
match mpls-label
MP-134
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
When you are passing routes through a route map, a route map can have several parts. Any route that
does not match at least one match clause relating to a route-map command will be ignored; that is, the
route will not be advertised for outbound route maps and will not be accepted for inbound route maps.
If you want to modify only some data, you must configure a second route map section with an explicit
match specified.
Examples The following example shows how to create a route map that redistributes routes if the following
conditions are met:
The IP address of the route matches an IP address in access control list 2.
The route includes an MPLS label.
Router(config-router)# route-map incoming permit 10
Router(config-route-map)# match ip address 2
Router(config-route-map)# match mpls-label
Related Commands Command Description
match ip address Distributes any routes that have a destination network number address that
is p
ermitted by a standard or extended access list.
route-map (IP) Defines the conditions for redistributing routes from one routing protocol
in
to another, or enables policy routing.
set mpls-label Enables a route to be distributed with an MPLS label if the route matches
th
e conditions specified in the route map.