3-4. bgp bestpath med missing-as-worst

Syntax Description:

This command has no arguments.

Purpose: If multiple BGP routes to the same destination exist, BGP selects the best path based on the route attributes in the following order:

1.
Ignore a route if the next hop is not known.
2.
Ignore IBGP routes that are not synchronized.
3.
Prefer the route with the largest weight.
4.
Prefer the route with the largest local preference.
5.
Prefer the route that was locally originated.
6.
Prefer the route with the shortest AS path. If using bgp bestpath as-path ignore, skip this step. When using the as-set option for aggregated routes, as_set counts as 1 regardless of the number of AS entries in the set. Confederation sub-AS numbers are not used to ...

Get Cisco® BGP-4 Command and Configuration Handbook (CCIE Professional Development) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.