I was wondering, if there is a way to apply Local Preference [BGP] to a prefix which is not part of received BGP update.
Prefix received by BGP peer: 18.104.22.168/19
Instead of applying local preference to the whole subnet 22.214.171.124/19, I would like to apply local preference only to one host covered by this subnet. For example: 126.96.36.199/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 188.8.131.52/32.
Extract of BGP table:
*> 184.108.40.206/19 220.127.116.11 70080 0 1700 38000 777
Extract of BGP config:
access-list 1 permit host 18.104.22.168
route-map LocPref permit 10
match ip address 1
set local-preference 500
route-map LocPref permit 20
router bgp 36000
neighbor 22.214.171.124 route-map LocPref in
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?