03-12-2014 08:30 AM - edited 03-04-2019 10:33 PM
HOw to setup BGP so it will not get advertised to specific AS.
Example:
My BGP AS 1000 and i peer with AS 2000 and 3000. I want to tell BGP AS 2000 not to advertise to AS 100, and 200.
Or i want to advertise my blocks to all internet but i want to make sure AS 100 and 200 wont have my prefix in the BGP table.
thanks
03-12-2014 11:25 PM
Hello,
Can you share your config, maybe you can configure as below
ip as-path access-list 1 deny $2000_
ip as-path access-list 1 permit .*
!
route-map BLOCK permit 10
match as-path 1
!
router bgp 1000
neighbor x.x.x.x route-map BLOCK out
!
03-13-2014 03:59 AM
Hi,
Ip prefix list could help you better, creat prefix list that denied your prefix and permits other traffic.
09-03-2014 09:32 AM
I got it up and running..
Thank you
09-03-2014 11:49 AM
Hello,
Create a "peer-group" where you will add those two AS to the peer-group. And apply "mhnedirli" solution above...
and use :
neighbor <peer-group-name> route-map BLOCK out
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide