cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
501
Views
0
Helpful
4
Replies

about route-map problem

yan.yong
Level 1
Level 1

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 ?

1 Accepted Solution

Accepted Solutions

mheusinger
Level 10
Level 10

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

View solution in original post

4 Replies 4

devang_etcom
Level 7
Level 7

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

gaurav.prakash
Level 1
Level 1

Sequence does matter but here in this case , the checking process reaches and hence X.X.X.X/24 gets permitted in 'a'..

HTH

Gaurav

mheusinger
Level 10
Level 10

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

thank you for a detailed account :}

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: