Create initial router configurations from dynagen topology

I've always considered building (almost identical) initial router configurations a waste of time, more so when I had to enter them manually, enabling interfaces, configuring IP addresses and Frame Relay subinterfaces on the fly … as well as entering dozens of commands that I feel should be present in every router configuration.

When I finally had enough, I've stopped my non-critical lab tests for a few weeks (that's why there's still no answer on the very good question whether the NBAR started by NAT is of any use) and wrote configMaker: a PERL script that parses dynagen lab topology and produces initial router configurations based on a template file that you can adjust to your own needs. Read more about it in the CT3 wiki.

5 comments:

  1. Nice script but how about the reverse - real configs -> create dynagen topo? any good pointers?

    -mateusz

    ReplyDelete
  2. Ivan Pepelnjak02 June, 2011 18:20

    How would you figure out what's connected in real world based on configs only?

    ReplyDelete
  3. ip addresses - links have /30 or /31 on them? Multi router links like vlan trunks or FR serial links ... manual probably.

    ReplyDelete
  4. Ivan Pepelnjak02 June, 2011 18:30

    Unnumbered interfaces?

    ReplyDelete
  5. there are 100s of exceptions I guess

    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.