05-31-2019 03:26 PM
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.
05-31-2019 05:25 PM
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,
06-29-2019 10:15 PM
Hi Harold,
Thank you for confirming.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide