Skip to content
עברית

Reference

LOCAL_PREF

LOCAL_PREF expresses intra-AS preference, with higher values generally preferred among eligible routes.

Meaning and purpose

LOCAL_PREF expresses intra-AS preference, with higher values generally preferred among eligible routes.

Reading the fields and applying the rules

LOCAL_PREF communicates preference inside an autonomous system. Higher values are generally preferred when comparing otherwise eligible routes under the relevant decision process. The attribute is normally propagated through iBGP and is not a request that an external provider must honor.

Use it to express policies such as preferring a selected transit or peering exit. A value of 200 is not universally “twice as fast” as 100: these are ordered policy values, not latency measurements. Vendor defaults and local policy determine actual values.

Route A: LOCAL_PREF 200, AS_PATH 64496 64497 64498
Route B: LOCAL_PREF 100, AS_PATH 64499
# Higher local policy preference can outweigh shorter AS_PATH

How it works in context

AS_PATH records traversed autonomous systems; NEXT_HOP identifies the next forwarding destination. LOCAL_PREF expresses preference inside an AS; MED can influence entry-point choice under particular comparison rules. Policy and implementation affect best-path selection, so “shortest path always wins” is incorrect. Communities carry policy labels whose meanings are agreed by operators.

Operational checks and security

Check session state, accepted prefixes, policy and next-hop reachability separately. Filter unexpected prefixes and AS paths, set prefix limits and monitor changes. RPKI origin validation checks authorization of an origin/prefix combination, not the legitimacy of every AS in the path.

Read-only example

These commands inspect the surrounding system or protocol. They do not automatically change its configuration or establish every property of this term. Replace example targets only with destinations you are authorized to inspect.

# Read-only FRRouting example; command availability depends on version
vtysh -c "show bgp summary"
vtysh -c "show bgp ipv4 unicast 192.0.2.0/24"

Sources and further reading

These explanations are educational. Implementations, policies and standards evolve; check the current specification and software version before changing a system.

Zaltzman.net · Your choice

Privacy preferences

Choose whether to link returning visits and remember display settings. Public content remains available without optional cookies.

Essential cookies

Always on

Secure forms, login sessions and your privacy choice.

What is included?

Session and CSRF protection, your privacy choice for up to 180 days, and Cloudflare security services. These do not authorise optional visitor analytics.

Analytics & returning visits

Store page history, visit times, IP and approximate location under one browser identifier, including return visits after an IP change.

How is this information used?

Authorised administrators use the history to understand usage and improve the site. No targeted ads, keystroke recording or fingerprinting. Turning this off deletes the history linked to your current identifier from the active database.

Remember display preferences

Save text size, contrast and other accessibility choices locally for your next visit.

Download my browser history

Turning analytics off deletes the current history and stops new collection.

Website operator: The Zaltzman Family
[email protected]

Zaltzman.net · Display settings

Accessibility tools

Adjust reading and navigation to suit you. Analytics consent is not required.

Text size
100%