19 configuring route-map, 1 understanding route-map, 2 configuring the route-map to ospf – CANOGA PERKINS 9175 Configuration Guide User Manual

Page 121

Advertising
background image

CanogaOS Configuration Guide

19-1

19 Configuring Route-map

This chapter describes how to configure route-map.

19.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.

19.2 Configuring the route-map to OSPF

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 the match
conditions above are not met. This is used to
prevent routes to be denied when not match
the match criteria above.

DUT(config-route-map)# exit

Exit route-map mode and return to configure
mode.

DUT(config)# router ospf 100

Enter OSPF router mode.

DUT(config-router)# redistribute rip

Configure to apply the route-map on the

Advertising