Your browser failed to load CSS style sheets. Your browser or web proxy might not support elliptic-curve TLS

Building network automation solutions

9 module online course

Start now!
back to overview

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

Please read our Blog Commenting Policy before writing a comment.


  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 ?

  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.

  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).


Constructive courteous comments are most welcome. Anonymous trolling will be removed with prejudice.