Solved

bgp AS prepend or local-preference

Posted on 2011-09-16
5
365 Views
Last Modified: 2012-05-12
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
Comment
Question by:FREDARCE
  • 3
  • 2
5 Comments
 
LVL 32

Accepted Solution

by:
harbor235 earned 500 total points
ID: 36554259


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
 

Author Comment

by:FREDARCE
ID: 36556608
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
 
LVL 32

Expert Comment

by:harbor235
ID: 36559419

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
 

Author Comment

by:FREDARCE
ID: 36569577
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
 
LVL 32

Expert Comment

by:harbor235
ID: 36570124


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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

If you are thinking of adopting cloud services, or just curious as to what ‘the cloud’ can offer then the leader according to Gartner for Infrastructure as a Service (IaaS) is Amazon Web Services (AWS).  When I started using AWS I was completely new…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now