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

prefix-list problem

att-sgcops
Level 1
Level 1

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

mheusinger
Level 10
Level 10

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

View solution in original post

1 Reply 1

mheusinger
Level 10
Level 10

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

Review Cisco Networking for a $25 gift card