Multiple BGP daemons on a Linux host

An article I wrote a few months ago explained how to use Quagga on a Linux host to emulate BGP-speaking router inserting test routes into your lab network. If you need multiple BGP sources, you can use a few simple tricks to run numerous BGP daemons on the same host.

Read the full article in the CT3 wiki

3 comments:

  1. Do you think it has an interest to develop a simulation solution with its own IP stack and protocols like OSPF, LDP, MP-BGP ? Or do you think something like Quagga is sufficient ?

    ReplyDelete
  2. Good stuff. Another method I've used to simulate multiple BGP sources in native IOS is to inject a bunch of routes from a single router, then use AS_PATH prepending to make it look like they're from different sources.

    ReplyDelete
  3. I was probably (one of) the first one(s) using the AS_PATH prepending trick to generate the look-and-feel of a larger Internet in the Advanced BGP course. If I remember correctly, that was somewhere around 1995.

    I'm pretty sure there were not too many people doing that before as the "set as-path prepend" command was brand new when I've started using it :)

    The problem with the AS path prepending is that you cannot control the first AS, so the number of immediately adjacent ASes is equivalent to the number of extra routers you have (unless, of course, you get VRFsmart).

    ReplyDelete

You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.

Ivan Pepelnjak, CCIE#1354, is the chief technology advisor for NIL Data Communications. He has been designing and implementing large-scale data communications networks as well as teaching and writing books about advanced technologies since 1990. See his full profile, contact him or follow @ioshints on Twitter.