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

BGP Communities - Tagging our "own" range?

johnelliot6
Level 2
Level 2

Hi Everyone,

 

We tag routes received from upstreams + peers(In BGP session), so we can easily control what we advertise to our customers that peer with us eg. Customer A only wants routes advertised to them from our "peering" partners(i.e. no Internet), Customer B only wants full table from our upstream carrier A, but nothing from carrier B...this works fine.

 

My question is, how do we tag our own address block in a similar fashion?  (As we are not "receiving" it from someone via BGP, we cant tag it that way)

 

i.e. If customer C wants our peering partner ranges, but also all of "our" range...it would be really simple to just have all our routes tag'd so we can create a community-list with the permitted community tags, create a route-map  that matches the community-list, then add it to the neighbour statement?  We can then even go further and break up our IP allocation into subsets, so customers can be restricted to certain "views/areas" of our network.

 

Ive had very little sleep, so Im probably missing something extremely trivial here, or there is a much "easier" way to do this :)

 

Cheers.

 

 

 

 

1 Reply 1

milan.kulik
Level 10
Level 10
Hi, how are you getting your BGP prefixes to the BGP table? Redistributing from some IGP? Or simply network ... mask ... command under your BGP process? In both cases you could use ... route-map tag-comm option and within the route-map tag-comm set community .... to any value you need. Best regards, Milan
Review Cisco Networking for a $25 gift card