[c-nsp] An attribute with less priority than local preference for choosing a best path.

Jon Lewis jlewis at lewis.org
Fri Jun 3 12:01:44 EDT 2022


On Fri, 3 Jun 2022, Drew Weaver wrote:

> Hello,
>
> We have a few edge routers with multiple connections to multiple geographically diverse locations from the same AS number (for example we have a router that connects to Lumen in both Cleveland and Cincinnati).
>
> Since the routes from both peers have mostly the same AS PATHs all of the traffic was going through one of the connections.
>
> In order to control that I was using:
>
> if community matches-any LUMEN-CLEVE then
>    set local-preference 150
>  endif
>
> Makes perfect sense that any route tagged with a community in the list LUMEN-CLEVE would be preferred regardless of the AS-PATH.
>
> My question is what is considered the right attribute to modify that won't override the AS-PATH length?
>
> Would it be better to adjust MED?

Yep.  That's what we use to nudge traffic when everything else ties.  Make 
sure you also have consistent origin though...you may need to look at 
setting origin on all routes received from transits/peers to the same 
value to keep individual drains from winning due to their setting origin 
igp.

----------------------------------------------------------------------
  Jon Lewis, MCP :)           |  I route
  StackPath, Sr. Neteng       |  therefore you are
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________


More information about the cisco-nsp mailing list