cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
165
Views
0
Helpful
1
Replies

Matching prefixes using route maps

limtohsoon
Level 1
Level 1

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

1 Reply 1

CSCO10892433
Level 4
Level 4

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

Review Cisco Networking products for a $25 gift card