09-03-2006 08:19 AM - edited 03-03-2019 01:51 PM
hi netpro:
can you tell me what are their differences when i redistribute route.
a
ip pre test deny x.x.x.x/24
ip pre test per 0.0.0.0/0 le 32
route-map 10 permit 10
match ip add pre test
route-map 10 per 20
b
ip pre test permit x.x.x.x/24
ip pre test deny 0.0.0.0/0 le 32
route-map 10 deny 10
match ip add pre test
route-map 10 per 20
why the config a can not filter net x.x.x.x ?
Solved! Go to Solution.
09-04-2006 04:38 AM
Hi,
route-map are like complex access-lists.
They are "top-down" processed. Each statement is evaluated until a match is found This will also be end of processing.
In your example a) the match statement describes any network except x.x.x.x/24
Thus route-map statement 10 is not applicable. Like in an ACL the router would continue with statement 20, which permits everything. Thus your example a) route-map would permit every network.
In example b) the first match statement matches exactly x.x.x.x/24
Thus route-map statement 10 is applicable, which says "deny". Thus x.x.x.x/24 is filtered. All other networks would be allowed by statement 20.
Hope this helps! Please rate all posts.
Regards, Martin
09-03-2006 09:10 PM
hi...
one will allow in redistribution and other will deny in redistribution...
in A use route- map with deny keyword but your B seems to be perfect...
regards
Devang
09-04-2006 04:09 AM
Sequence does matter but here in this case , the checking process reaches
HTH
Gaurav
09-04-2006 04:38 AM
Hi,
route-map are like complex access-lists.
They are "top-down" processed. Each statement is evaluated until a match is found This will also be end of processing.
In your example a) the match statement describes any network except x.x.x.x/24
Thus route-map statement 10 is not applicable. Like in an ACL the router would continue with statement 20, which permits everything. Thus your example a) route-map would permit every network.
In example b) the first match statement matches exactly x.x.x.x/24
Thus route-map statement 10 is applicable, which says "deny". Thus x.x.x.x/24 is filtered. All other networks would be allowed by statement 20.
Hope this helps! Please rate all posts.
Regards, Martin
09-04-2006 05:53 AM
thank you for a detailed account :}
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide