Reference Guide

166 | Border Gateway Protocol
www.dell.com | support.dell.com
Weight
The Weight attribute is local to the router and 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. The
route with the highest weight is installed in the IP routing table.
Local Preference
Local Preference (LOCAL_PREF) represents the degree of preference within the entire AS. The higher the
number, the greater the preference for the route.
The Local Preference (LOCAL_PREF) is one of the criteria used to determine the best path, so keep in
mind that other criteria may impact selection, as shown in Figure 8-4. For this example, assume that
LOCAL_PREF is the only attribute applied. In Figure 8-5, AS100 has two possible paths to AS 200.
Although the path through the Router A is shorter (one hop instead of two) the LOCAL_PREF settings
have the preferred path go through Router B and AS300. This is advertised to all routers within AS100
causing all BGP speakers to prefer the path through Router B.
Figure 8-5. LOCAL_PREF Example
Router A
Router B
AS 100
Router C
T1 Link
OC3 Link
AS 200
Router D
Router E
AS 300
Router F
Router E
Set Local Preference to 200
Set Local Preference to 100