BGP Attributes and Best-Path Selection
Important attributes
BGP decisions can involve weight (Cisco-local), local preference, locally originated routes, AS-path length, origin, MED, eBGP/iBGP preference, IGP cost to next hop, and tie-breakers. The exact decision process includes platform-specific details.
- Local preference: influence outbound exit choice within an AS; higher is generally preferred.
- AS-path: path length and AS-path policy influence route choice.
- MED: can suggest a preferred entry point to a neighboring AS; lower is generally preferred when compared under applicable rules.
- Next hop: must be reachable.
Use show ip bgp <prefix> to inspect attributes and the selected path; do not rely on a single attribute in isolation.
Quick revision
- Explain the concept in your own words.
- Run the relevant verification commands in a lab.
- Record one common failure and how you would isolate it.
Want to learn this professionally?
Explore practical IT training at Cyber Code Academy.
View Academy Courses