Route-map behavior

From: Leigh Harrison (ccileigh@gmail.com)
Date: Sat Oct 15 2005 - 07:14:20 GMT-3


All,

I need some help in understanding the flow of a route map - if anyone
could point me to a good article, I would be most greatful.

I've got configured:-

access-list 1 permit ip 10.0.1.0 0.0.0.255

route-map test_map permit 10
 match ip address 1
 set metric 10

route-map test_map permit 20
 set metric 100

router ospf 1
 redistribute eigrp 1 subnets route-map test_map

On a sh ip route on the next router along:-

O E2 10.0.0.0/24 [110/100]
O E2 10.0.1.0/24 [110/10]
O E2 10.0.2.0/24 [110/100]
O E2 10.0.3.0/24 [110/100]

-----

This outcome was the desired effect, but in my mind - I entered it in
the wrong order.

Permit 10 sets the 10.0.1.0/24 metric to 10, then the permit 20 sets all
of the other routes to 100. Why was the 10.0.1.0 router not included in
the set for permit 20 ? I would expect this behavior if I had entered
the route map the other way round.

So my question is:-
Why did the permit 20 set not apply to the 10.0.1.0 route? What is the
exact order of thinking in the router that would exclude this?

After a little bit of tinkering, I entered:-
route-map test_map permit 15
 set metric-type type-1

And on the neighbouring router, it now showed:-

O E1 10.0.0.0/24 [110/100]
O E2 10.0.1.0/24 [110/10]
O E1 10.0.2.0/24 [110/100]
O E1 10.0.3.0/24 [110/100]

I take it that this means that when the route is specified in the
route-map that it no longer takes part, unless it is specified again ?

Any pointers, greatly accepted.

LH



This archive was generated by hypermail 2.1.4 : Sun Nov 06 2005 - 22:00:51 GMT-3