Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

prefix-list problem

I was asked to configure BGP under certain requirements:

AS100 (R6)will not accept any route from As 54 with network mask longer than 20. Since R6 is in AS 100, I configured R6 as following:

router bgp 100

bgp log-neighbor-changes

neighbor 54.1.6.254 remote-as 54

neighbor 54.1.6.254 route-map filter in

ip prefix-list longer20 seq 5 deny 0.0.0.0/0 ge 21

route-map filter permit 10

match ip address prefix-list longer20

But it filter all the network, And the correct answer is different @ prefix-list:

ip prefix-list longer20 seq 5 permit 0.0.0.0/0 le 20.

Can someone explaine to me?

thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: prefix-list problem

Hello,

a prefix-list is an access-list ... there is an invisible deny! So better would be:

ip prefix-list longer20 seq 5 deny 0.0.0.0/0 ge 21

ip prefix-list longer20 seq 10 permit 0.0.0.0/0 le 32

or

ip prefix-list longer20 seq 5 permit 0.0.0.0/0 le 20

Hope this helps! Please rate all posts.

Regards, Martin

1 REPLY

Re: prefix-list problem

Hello,

a prefix-list is an access-list ... there is an invisible deny! So better would be:

ip prefix-list longer20 seq 5 deny 0.0.0.0/0 ge 21

ip prefix-list longer20 seq 10 permit 0.0.0.0/0 le 32

or

ip prefix-list longer20 seq 5 permit 0.0.0.0/0 le 20

Hope this helps! Please rate all posts.

Regards, Martin

107
Views
0
Helpful
1
Replies
CreatePlease login to create content