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

BGP route filter

Hi,

i am trying to filter the inbound routes from ISP , but ended up blocking all routes from ISP.

please can anyone advise..

 

the topology is like below

 

-----------------------------------------------------------------------------------------------------------------

ip prefix-list PL_IN seq 5 10.13.1.26/29

router bgp 65000
neighbor 172.16.16.1 prefix-list seq 5 permit PL_IN in

------------------------------------------------------------------------------------------------------------------

i want the only route from PE router to be displayed in CE routing table is 10.13.1.26 

and the same way how to restrict the outbound routes , the only route to be sent is 10.5.11.76 to PE router.

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Hi, configuration looks ok.

Hi,

 

configuration looks ok. Only thing to be checked that you have prefix with mask /29 only. Please share output of "show ip bgp 10.13.1.26/29 from 172.16.16.1 and 172.16.16.2

 

Regards,

Akash

4 REPLIES
Hall of Fame Super Gold

There are several issues with

There are several issues with the syntax that you have used.

- in the prefix list you give it a name, a seq number, and a network. But you fail to say permit

- when you apply it to the neighbor you should use the prefix list name and not the text of the prefix list entry.

 

HTH

 

Rick

oopss..i typed it wrong here

oopss..i typed it wrong here,

it is 

ip prefix-list PL_IN seq 5 permit 10.13.1.26/29

 

router bgp 65000

neighbor 172.16.16.1 prefix-list PL_IN in

 

Cisco Employee

Hi, configuration looks ok.

Hi,

 

configuration looks ok. Only thing to be checked that you have prefix with mask /29 only. Please share output of "show ip bgp 10.13.1.26/29 from 172.16.16.1 and 172.16.16.2

 

Regards,

Akash

Thank you Akash... the mask

Thank you Akash...

 

the mask was /25. i needed only 2 routes so i gave mask as /29, thats what made it denying all routes.

 

thank you once again

54
Views
4
Helpful
4
Replies
CreatePlease to create content