From: Scott Morris (swm@emanon.com)
Date: Sat Oct 15 2005 - 08:00:01 GMT-3
Once the route-map triggers a match on a route (or whatever you're matching)
then those set/actions take place and the packet/route is never looked at
again.
That's why the order you put things into a route map is incredibly important
and why you typically see the most-specific matches at the top.
HTH,
Scott
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Leigh Harrison
Sent: Saturday, October 15, 2005 6:14 AM
To: ccielab@groupstudy.com
Subject: Route-map behavior
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