I am preparing for my CCIE lab and I am working on understanding BGP in depth. I am reading the Routing TCP/IP (Cisco press) vol2 by Doyle. I am trying to understand the difference in AS_PATH vs. LOCAL_PREF in BGP. I am having a hard time understanding the difference in them (how they work and when to use each) Can some one give me more info on these 2 att., or point me in the direction to figure out how to best use these 2 att.
As you may know, BGP uses a process to choose the best path when multiple paths to the same destination exist. The rules list govern the path selection process. If there is a tie in any rule then the next rule is applied and it keeps going till the best path is determined.
Local Preference ranks higher than AS Path rule. Routes with a higher local preference are preferred. Shorter AS path, equivalent of hops in IGP, is preferred. There's plenty of documentation on CCO to enlighten yourself on this topic.
In a real world situation, AS_Path is widely used to influence incoming traffic from another AS and local preference is used to influence outbound routes when multiple paths exist. Local preference is applicable only within an AS whereas AS Path is applicable between ASs.
Here's a couple of links that you may find useful.
Thank you for the detail explanation and the links. After reading your post and going over the link on CCO it is all crystal clear now. I went back and re-read the Doyle information and it makes sense what he is saying now. Greatly appreciated!!!
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...
Attached policy provides CLI access to the Cisco 4G router over text messaging. Two files are in the attached .tar file:
2. PDF with instructions on how to load and use the .tcl file.