19 configuring route-map – CANOGA PERKINS CanogaOS Configuration Guide User Manual

Page 149

Advertising
background image

CanogaOS Configuration Guide

Proprietary & Confidential Canoga Perkins Metro Ethernet Switches

Page 149 of 350

19 Configuring Route-map

This chapter describes how to configure route-map.

19.1.1 Understanding Route-map

Route-map is used to control and modify routing information. The route-map command
allows redistribution of routes. It has a list of match and set commands associated with it.
The match commands specify the conditions under which redistribution is allowed, and the
set commands specify the particular redistribution actions to be performed if the criteria
enforced by match commands are met. Route maps are used for detailed control over route
distribution between routing processes.

Route maps also allow policy routing, and might route packets to a different route than the
obvious shortest path.

If the permit parameter is specified, and the match criteria are met, the route is redistributed
as specified by set actions. If the match criteria are not met, the next route map with the
same tag is tested.

If the deny parameter is specified, and the match criteria are met, the route is not
redistributed, and any other route maps with the same map tag are not examined.

Routes are checked from line to line looking for a match. If there is no match and the bottom
of the route map is reached, then the router denies the route from being redistributed. There
is always an implicit deny at the end of a route map.

Specify the sequence parameter to indicate the position a new route map is to have in the list
of route maps already configured with the same name.

Configuring the route-map and applying the route-map to OSPF redistribution

Beginning in privileged EXEC mode, follow these steps to configure the route-map:

Command

Description

DUT# configure terminal

Enter the Configure mode.

DUT(config)# route-map abc
permit

Create a route-map named abc and
enter route-map mode.

DUT(config-route-map)#
match metric 20

Configure the match criteria.

DUT(config-route-map)# set
tag
2

Configure the set action to be
performed.

DUT(config-route-map)# exit

Exit route-map mode and return to
configure mode.

DUT(config)# route-map abc
permit 20

Configure to add a route-map with the
same tag to match everything when

Advertising