cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
916
Views
4
Helpful
4
Replies

BGP Advertisement to Specific AS Number

Marcin Zgola
Level 4
Level 4

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

 

 

CCIE 18676
4 Replies 4

mhnedirli
Level 1
Level 1

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

!

Hi,

Ip prefix list could help you better, creat prefix list that denied your prefix and permits other traffic.

I got it up and running..


Thank you

CCIE 18676

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