cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
344
Views
5
Helpful
2
Replies
Highlighted
Beginner

BGP Local Pref, ASR router

Hello,

I was wondering, if there is a way to apply Local Preference [BGP] to a prefix which is not part of received BGP update.

 

Example:

Prefix received by BGP peer: 1.0.160.0/19

 

Instead of applying local preference to the whole subnet 1.0.160.0/19, I would like to apply local preference only to one host covered by this subnet. For example: 1.0.191.250/32

 

Since this host is not part of the prefixes provided via BGP updates by eBGP peer, local preference will never be applied for this IP 1.0.191.250/32.

 

Extract of BGP table:

 *>  1.0.160.0/19                    59.0.0.1      70080               0    1700  38000 777

 

Extract of BGP config:

 

access-list 1 permit host 1.0.191.250

 


route-map LocPref permit 10
match ip address 1
set local-preference 500
!
route-map LocPref  permit 20

 

router bgp 36000

bgp log-neighbor-changes
:
neighbor 59.0.0.1 route-map LocPref in
:

 

Please advise.

 

Thanks.

 

2 REPLIES 2
Cisco Employee

Re: BGP Local Pref, ASR router

Hi,

 

It is not possible to apply a policy to a route that does not exist. Could you please tell us more on what you are trying to achieve?

 

Regards,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Beginner

Re: BGP Local Pref, ASR router

 Hi Harold,

Thank you for confirming.

 

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards