ANNOUNCEMENT - The community will be down for maintenace this Thursday August 13 from 12:00 AM PT to 02:00 AM PT. As a precaution save your work.
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
143
Views
5
Helpful
2
Replies
Highlighted

Configure to Receive BGP Community Strings for Local Preference

Need the reference for configuring the ability to receive a community string from a downstream customer which will set my iBGP local preference value.  Effectively what AT&T allows with their AVPN service.  Sending an AVPN peer 13979:120 sets their local preference to 120.  I was not able to find this in the ASR 9000 BGP configuration guide, but I could have overlooked it.

Thanks,

Phil

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Re: Configure to Receive BGP Community Strings for Local Preference

Here is an example, and in case you need other else/elseif statements.

 

route-policy test
 if community matches-any (13979:120) then
  set local-preference 120
 elseif destination in comm-set1 then
  set local-preference 90
endif
end-policy

 

Sam

View solution in original post

2 REPLIES 2
Highlighted
Cisco Employee

Re: Configure to Receive BGP Community Strings for Local Preference

Here is an example, and in case you need other else/elseif statements.

 

route-policy test
 if community matches-any (13979:120) then
  set local-preference 120
 elseif destination in comm-set1 then
  set local-preference 90
endif
end-policy

 

Sam

View solution in original post

Highlighted

Re: Configure to Receive BGP Community Strings for Local Preference

Perfect. Thanks Sam.

Content for Community-Ad

This widget could not be displayed.