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

BGP Local Pref, ASR router

Netmart
Level 3
Level 3

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

Harold Ritter
Spotlight
Spotlight

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,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

 Hi Harold,

Thank you for confirming.