route-map

To create a route map and enter Route Map Configuration mode, use the route-map command in Global Configuration mode. One use of a route map is to limit the redistribution of routes to a specified range of route prefixes. The redistribution command specifies a route map which refers to a prefix list. The prefix list identifies the prefixes that may be redistributed. 200 Series accepts up to 64 route maps.

Default No route maps are configured by default. If no permit or deny tag is given, permit is the default.
Format route-map map-tag [permit|deny] [sequence-number]
Mode Global Configuration
Parameter Description
map-tag Text name of the route map. Route maps with the same name are grouped together in order of their sequence numbers. A route map name may be up to 32 characters long.
permit (Optional) Permit routes that match all of the match conditions in the route map.
deny (Optional) Deny routes that match all of the match conditions in the route map.
sequence-number (Optional) An integer used to order the set of route maps with the same name. Route maps are ordered from lowest to greatest sequence number, with lower sequence numbers being considered first. If no sequence number is specified, the system assigns a value ten greater than the last statement in the route map. The range is 0 to 65,535.

In the following example, BGP is configured to redistribute the all prefixes within 172.20.0.0 and reject all others.

(Extreme 220) (Config)# ip prefix-list redist-pl permit 172.20.0.0/16 le 32
(Extreme 220) (Config)# route-map redist-rm permit
(Extreme 220)(config-route-map)# match ip address prefix-list redist-pl
(Extreme 220)(config-route-map)# exit
(Extreme 220) (Config) router bgp 1
(Extreme 220)(Config-router) redistribute ospf route-map redist-rm