BGP AS-Path for Inbound & Outbound Traffic Engineering

At Step 4 of the BGP path selection process, the router defaults to a simple rule: a shorter BGP AS-Path length is always preferred. Because of this, you can look at incoming AS-Paths to control how traffic leaves your fabric, or you can intentionally “lengthen” your own AS-Path via AS-Path prepending to influence how external networks route traffic back into your data center.

In this video, I’ll show you exactly how to manipulate the inbound and outbound traffic paths and verify the changes in the NX-OS BGP table.

Summary

ComponentDescriptionExample
AS_SEQAn ordered list of ASNs through which the route has been advertised.
Used to prevent BGP loops and in path selection, influenced by AS_PATH prepending inbound or outbound.
100 200 300
AS_SETAn unordered list of ASNs through which the route has been advertised.
Used when doing summarization (aggregation) to prevent routing loops.
{100, 200, 300}
AS_CONFED_SEQLike AS_SEQ but holds only confederation ASNs.
Used to prevent BGP loops inside a real AS when using confederation, but not inside a sub-AS.
(65001 65002 65003)
AS_CONFED_SETLike AS_SET, but holds only confederation ASNs.
Used when doing summarization (aggregation) inside confederations.
{65001 65002 65003}

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