Router Servers in a lab

I am interested in generating several thousand BGP routes from different AS’s to simulate Internet routes in a lab environment. I would like to generate these routes from a downloaded copy of real route tables and save them to a file. Then have something, possibly a route server, import this file and inject these routes into my lab network. Any ideas/suggestions? Is this possible without having a live BGP feed into my lab network?

Thanks
Perry

?? I guess you could fire up a gated machine and have it announce a routing
table to your lab. Will take some parsing of a route table dump, but doable.

-M

route tables and save them to a file. Then have something, possibly a
route server, import this file and inject these routes into my lab
network. Any ideas/suggestions? Is this possible without having a
live BGP feed into my lab network?

This would be easy to do with Zebra and a unix boxen.
Zebra is a BGP routing deamon similiar in function to GateD.
Fairly easy to setup (ie: uses cisco-ish commands),
and a few lines of perl with a dump or log dump
could easily recreate the world as you want it.
see: www.zebra.org

I have never tried this, but I forwarded your mail to my coworker who has,
and here is what he had to say:

i like mrtd better anyway, since it has the bgpsim tool. it allows you
to withdraw and announce routes to simulate flapping. has frequency,
jitter, all that fun stuff.
(see www.mrtd.net)

Downloading.... :slight_smile: --Thanks

I hacked Zebra to do this a while ago. All you have to do is bring up
Zebra with a router that has full routes, save them to disk and off you go.
The advantage here is that you get realistic NLRI and path attributes which
you don't get with an IXIA or SmartBits. And Zebra has good BGP feature
support so you can use route-maps on the prefixes you load, for example.

It is not a particularly pretty hack, but it works. You can find the
patch at http://www.twoguys.org/~gregh/software/zebra-patch-0.03.tar.gz .

Regards,
Greg