Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Matching prefixes using route maps

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

Re: Matching prefixes using route maps

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

89
Views
0
Helpful
1
Replies
CreatePlease to create content