Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 464
  • Last Modified:

bgp AS prepend or local-preference

is there any advantage to using AS prepend over modifying local-preference.  Why would one use one over the other?  I have been using local-preference for incoming bgp routes and wondering if it's worth looking into AS prepend method.

thanks
0
FREDARCE
Asked:
FREDARCE
  • 3
  • 2
1 Solution
 
harbor235Commented:


AS prepend is used to influence how "your routes" appear on the outside of your AS, hence they effect how traffic flows "TOWARDS" your AS.

Local pref is set on incoming routes received from EBGP neighbors typically, thus local pref effects traffic flow towards external ASs.

The difference is the effects on the direction of the traffic flow, one is inbound the other is outbound,
understand?

harbor235 ;|
0
 
FREDARCEAuthor Commented:
Ok.  but isn't the result the same?  What I don't understand is why you would use one method over the other?

thanks
0
 
harbor235Commented:

Traffic is bidirectional, BGP allows you to control both directions, in and out of your AS.
One effects inbound the other effects outbound, the result is control over both directions of your traffic flow. changing only one of the two only effects one direction of your traffic flow.


harbor235 ;}
0
 
FREDARCEAuthor Commented:
Ok.  but can't you use LP and apply it to both in and out?

example

   neighbor x.x.x.x route-map LP500 ?

in Apply map to incoming routes
out Apply map to outbound routes
0
 
harbor235Commented:


local pref and MEDs (outbound metric) are two seperate BGP route attributes and are treated separately
when received by a BGP speaker. So the answer is no you cannot set LP inbound and outbound.

you set LP in a route map like this:

set local-pref 200

you set outbound MEDs like this:

set metric 200


harbor235 ;}
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now