route-map map-tag [permit | deny] [sequence-number]

no route-map map-tag [permit | deny] [sequence-number]

Syntax Description:


Defines a meaningful name for the route map. The redistribute router configuration command uses this name to reference this route map. Multiple route maps may share the same map tag name.


(Optional) If the match criteria are met for this route map, and permit is specified, the route is redistributed as controlled by the set actions. In the case of policy routing, the packet is policy routed.

If the match criteria are not met, and permit is specified, the next route map with the same map tag is tested. If a route passes none of the match criteria for the set of route maps sharing the same name, it is not redistributed by that set.

The permit keyword is the default.


(Optional) If the match criteria are met for the route map, and deny is specified, the route is not redistributed. In the case of policy routing, the packet is not policy routed, and no further route maps sharing the same map tag name will be examined. If the packet is not policy-routed, it reverts to the normal forwarding algorithm.


(Optional) Number that indicates the position a new route map is to have in the list of route maps already configured with the same name. If given with the no form of this command, it specifies the position of the route map that should be deleted.


Command Description:

To define the conditions for redistributing routes from one routing protocol into another, or to enable policy routing, use the route-map global configuration command. To enable policy routing, the route-map command can be combined with the match and set route-map configuration commands.


The following example shows how you can use route maps to modify incoming data from a neighbor. Any route received from that matches the filter parameters set in autonomous system access list 200 will have its weight set to 200 and its local preference set to 250, and it will be accepted. 

  Router(config)#router bgp 100

  Router(config-router)#neighbor route-map fix-weight in

  Router(config-router)#neighbor remote-as 1


  Router(config)#ip as-path access-list 200 permit ^690$

  Router(config)#ip as-path access-list 200 permit ^1800

  Router(config)#route-map fix-weight permit 10

  Router(config-route-map)#match as-path 200

  Router(config-route-map)#set local-preference 250

  Router(config-route-map)#set weight 200 

The following example applies a route map named internal-map to incoming route from 

Router(config)#router bgp 5
Router(config-router)#neighbor route-map internal-map in 
Router(config)#route-map internal-map 
Router(config-route-map)#match as-path 1 

Router(config-route-map)#set local-preference 100 




Related Commands:




� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)