How to Configure BGP Local Preference Attribute

Hussein,
I assume you are referring to this:
R3(config-router)#neighbor 192.168.13.1 route-map LOCALPREF in

If you switched the route-map LOCALPREF in to be route-map LOCALPREF out, then the route-map would no longer be doing anything. Essentially, this would cause R3 no longer to advertise a non-default Local Preference to R4.

The neighbor where the route-map statement being applied, is R1. R1 is in a different ASN than R3. As you may recall, the Local-Preference attribute is only sent to iBGP neighbors, so attempting to set the Local Preference attribute for an EBGP neighbor would result in no action.

2 Likes