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

BGP Advertisement to Specific AS Number

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
Everyone's tags (1)
4 REPLIES
New Member

Hello, Can you share your

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

!

New Member

Hi,Ip prefix list could help

Hi,

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

New Member

I got it up and running.

I got it up and running..


Thank you

CCIE 18676
New Member

Hello, Create a "peer-group"

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

78
Views
4
Helpful
4
Replies
CreatePlease login to create content