We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now! Here is Why:

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You've Ever Spent on Your Cisco Career!
  • Full Access to our 606 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)


363 New Members signed up the last 30 days!


100% Satisfaction Guaranteed!
You may cancel your monthly membership at any time.
No Questions Asked!


Forum Replies

  1. Hi Jan,

    Before I try to answer your question, I guess you want to be dual-homed so that you have a backup path but you want to be sure that your DC is never used as a transit AS?

    There’s a simple solution for this, you just need to make sure you don’t advertise anything that you receive from ISP1 to ISP2 and the other way around. If that’s what you are looking for then take a look here:

    If that’s not what you want…let me know and I’ll do my best to answer your question.


  2. Hi Daniel,

    I might write a short tutorial on it with an example but it is a simple one. A BGP router will prefer routes that it installed into BGP itself over a route that another router installed in BGP.


  3. Jon says:

    Hi @chriscowboyfann,

    Apologies for jumping into the thread here but I think you are absolutely correct in your analysis; this is a great way to think about path pre-pending. Different vendors implement it in different ways but the idea is the same. As a rule of thumb, we always try to control the BGP path selection using the easiest to understand and troubleshoot criteria available to us. Path length is a great parameter to manipulate if done carefully.

    When using AS path modification in production, you should be careful not to accidentally introduce backdoor routes so always test, check and re-check before and after implementation! :slight_smile:

    Kind regards,

  4. Hello Chris

    BGP will choose the router ID based first on if the router-id command is present. It is not in this case. Secondly, it will choose the highest IPv4 IP address of a loopback interface. You are correct, that both R1 and R3 have the same loopback address (seen in the configs), and thus would be advertising the same router-id. So the next step would be to determine the lowest neighbour IP address, which is indeed So you are correct, it does prefer but not because of the router ID but because of the lowest neighbour IP address. I’ll inform @ReneMolenaar about the correction.



  5. image

    Initially it has taken path to as it is the highest router.
    But above it shows
    I have configured same script

34 more replies! Ask a question or join the discussion by visiting our Community Forum