cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
717
Views
5
Helpful
2
Replies

Configure to Receive BGP Community Strings for Local Preference

philclemens1835
Level 1
Level 1

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

smilstea
Cisco Employee
Cisco Employee

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

smilstea
Cisco Employee
Cisco Employee

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

Perfect. Thanks Sam.