O'Reilly logo

Cisco® BGP-4 Command and Configuration Handbook (CCIE Professional Development) by William R. Parkhurst Ph.D.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3-1. bgp always-compare-med

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 you're using bgp bestpath as-path ignore, skip this step. When you use 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required