BGP Local Preference and Weight Attribute



Local Preference Attribute
The local preference attribute is used to prefer an exit point from the local autonomous system (AS). Unlike the weight attribute, the local preference attribute is propagated throughout the local AS. If there are multiple exit points from the AS, the local preference attribute is used to select the exit point for a specific route.

The default value for local preference is 100.




with default local preference, let's take a look the output from R3, we can see R3 recevies the route of 192.168.12.0/24 from two paths, the interesting thing is that the path from 172.16.13.1 which is R1 has no Local Preference value displayed, the route from R4 (4.4.4.4) does have default Local Preference value 100.



But when take a look closer, we can see both path have default value 100.


R3>sh ip bgp 192.168.12.0/24
BGP routing table entry for 192.168.12.0/24, version 19
Paths: (2 available, best #2, table Default-IP-Routing-Table, not advertised to EBGP peer) Advertised to update-groups: 2 3
200 4.4.4.4 (metric 2) from 4.4.4.4 (4.4.4.4)
Origin IGP, metric 0, localpref 100, valid, internal
Community: no-export
100 172.16.13.1 from 172.16.13.1 (192.168.100.1)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: no-export
R3>







Weight Attribute
Weight is a Cisco-defined attribute that is local to a router. The weight attribute is not advertised to neighboring routers. If the router learns about more than one route to the same destination, the route with the highest weight will be preferred.

From previous show ip bgp output on R3, we notice that for local generated bgp route, it automatically gives a weight value 32768.

http://www.cisco.com/en/US/docs/internetworking/technology/handbook/bgp.html

Comments

Popular posts from this blog

Firepower FMC and FTD troubleshooting

ASA IKEv1 VPN troubleshooting Steps and Tips

Firepower 2100/1100 FTD/ASA initial setup, reimage, upgrade.