In Border Gateway Protocol (BGP) routing, what is the primary purpose of the LOCAL_PREF (local preference) attribute inside a single autonomous system (AS)?

Difficulty: Medium

Correct Answer: To indicate the preferred exit point for outbound traffic within an AS, with higher LOCAL_PREF values preferred over lower ones

Explanation:


Introduction / Context:
In interdomain routing, Border Gateway Protocol (BGP) is used to exchange routes between autonomous systems (ASes). Within a single AS, network engineers often have multiple exit points toward the Internet or partner networks. The LOCAL_PREF (local preference) attribute is a key BGP path selection tool that influences which outbound path routers inside the AS will prefer when multiple BGP routes exist for the same destination prefix.


Given Data / Assumptions:

    We are working with internal BGP (iBGP) inside one autonomous system.
    Multiple BGP routes to the same destination may exist, usually learned via different border routers or different external peers.
    The question asks specifically about the purpose of the LOCAL_PREF attribute, not about MED, AS_PATH or weight.


Concept / Approach:
LOCAL_PREF is a well known, transitive BGP path attribute used only inside an AS. It is not sent to external BGP (eBGP) neighbors. Higher LOCAL_PREF values are preferred over lower ones, and this attribute is considered early in the BGP best path selection process. Network administrators use LOCAL_PREF to steer outbound traffic toward the desired exit router, for example to prefer a cheaper or higher bandwidth link while keeping backup paths with lower local preference.


Step-by-Step Solution:
Recall that BGP path selection uses attributes such as weight, LOCAL_PREF, locally originated, AS_PATH length, origin, MED and others, in a specific order. Within an AS, LOCAL_PREF is propagated to all iBGP peers so they share a common view of which exit is preferred. The rule is simple: the route with the highest LOCAL_PREF value is selected as the best path, assuming earlier attributes like weight are equal. LOCAL_PREF does not change BGP's administrative distance, does not directly advertise default routes and is not sent to external neighbors as a policy signal. Therefore, the correct description is that LOCAL_PREF indicates the preferred outbound exit point within an AS, with higher values being more preferred.


Verification / Alternative check:
Cisco and other vendor documentation describe LOCAL_PREF as an attribute used to prefer an exit point from the local AS. For example, setting LOCAL_PREF 200 on routes learned from ISP-A and 100 on routes from ISP-B makes the AS prefer ISP-A for outbound traffic. These values are seen only inside the AS; external neighbors never receive them, confirming that the attribute is focused on internal outbound path selection.


Why Other Options Are Wrong:
Option b is wrong because administrative distance is a local router setting and is not controlled by LOCAL_PREF.
Option c is incorrect because default route advertisement is configured explicitly, often using static routes or network statements, not LOCAL_PREF.
Option d misrepresents LOCAL_PREF; route aging and timers are separate mechanisms.
Option e is incorrect because LOCAL_PREF is not sent to external neighbors and therefore cannot directly force them to prefer this AS as transit.


Common Pitfalls:
A common mistake is to confuse LOCAL_PREF with MED or weight. Weight is local to a single router, while LOCAL_PREF is shared across the AS. MED is sent to external neighbors to influence their inbound path selection, whereas LOCAL_PREF is used internally for outbound decisions. Understanding this distinction is crucial when designing BGP policies for multi homed networks.


Final Answer:
The LOCAL_PREF attribute is used to indicate the preferred exit point for outbound traffic within an autonomous system, with higher LOCAL_PREF values being preferred during BGP path selection.

More Questions from CISCO Certification

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion