Matching prefixes using route maps

Unanswered Question
Feb 13th, 2007

Hi Sir,

I want to match the prefix address 172.18.252.4/30 using a route map. I understand it can be done by either the following configs:

!

route-map TESTMAP permit 10

match ip address TESTACL

!

ip access-list extended TESTACL

permit ip 172.18.252.4 0.0.0.3 any

!

OR

!

route-map TESTMAP permit 10

match ip address TESTACL

!

ip access-list extended TESTACL

permit ip host 172.18.252.4 host 255.255.255.252

!

Kindly advise which way is preferred and any advantage of one method over the other?

Thank you.

B.Rgds,

Lim TS

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
CSCO10892433 Tue, 02/13/2007 - 20:54

Hi,lomtohsoon

The first route-map will permits the following prefix:

172.18.252.4/30

172.18.252.4/31

172.18.252.6/31

172.18.252.4/32

172.18.252.5/32

172.18.252.6/32

172.18.252.7/32

because they all fall within the same range 172.18.252.4~172.18.252.7

The second route-map will only permit the prefix 172.18.252.4/30

Hope this help

SSLIN

Actions

This Discussion