BGP Local Pref: Outbound Traffic Engineering (NX-OS Lab)

When you need to control how traffic leaves your data center fabric and choose the optimal exit point among multiple upstream BGP routers, use BGP Local Pref as the path attribute.

In this video, I’ll show you exactly how to set up Local preference, manipulate outbound path selection, and verify the changes inside the NX-OS BGP table.

Summary

FeatureDescription
Is it a BGP Path attribute?Yes, it is a well-known, discretionary
PurposeIdentifies the best exit point from the BGP local AS to reach the external subnet (NLRI).
ScopeThroughout the BGP AS in which it was set, including confederation sub-ASes
Default value100 for iBGP and Null for eBGP updates
Changing the defaultsNot supported in Cisco devices.
Value range0 through 4,294,967,295
Which is best?Higher values are better (when comparing eBGP with iBGP routes, if the Local_Pref value is not explicitly set, BGP treats the NULL value (for the eBGP route) as the default 100 (for the iBGP route)).
ConfigurationUsing the set local-preference command in the route-map under the neighbor address-family with ‘in’ direction.

Looking for Comprehensive Cisco Data Center Training?

Take your data center skills to the next level with my deep-dive courses, designed for real-world application.

Modern DC Architecture & Automation (Self-paced Courses):


Core Protocols & CCIE Prep (Self-paced Courses):


Live Intensive Training (Cohorts):

Need Personalized Guidance (1:1 Mentorship)?

Additional Resources:
BGP Path Attributes: Your BGP Path Selection Master Guide

author avatar
Salman Alhiary Expert Network Consultant
In the networking field since 2010, 2× CCIE (ENT & DC), and founder of LearnWithSalman—specializes in Cisco Data Center networking and automation. A former Cisco TAC engineer and now an Expert Professional Services consultant, he delivers lab-first tutorials, deep templates, and repeatable playbooks through his courses and technical blog, all built from real enterprise projects.
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Scroll to Top