Friday, March 19, 2010

Unzip Cisco IOS Images for Dynamips

January 15, 2008 by Greg Ferro · 6 Comments 

I have a dir­ect­ory ‘dyn­alab’ in my ‘Documents’ where I have put ALL my Dynamips /​ Dynagen related files. I cre­ated a dir­ect­ory there which has all my IOS images, this makes more sense to my mind. Makes it easier to backup.

gf:Documents gregferro$ mkdir dynalab
gf:Documents gregferro$ cd dynalab
gf:dynalab gregferro$ ls
gf:dynalab gregferro$

You can copy IOS images as nor­mal using the Finder into the dyn­alab dir­ect­ory. To uncom­press the images you can either down­load the Zipeg pro­gram (use a search engine to find it), or use the com­mand line as follows:

gf:dyncode gregferro$ unzip -p c1700-sy-121-9.bin > c1700-sy-121-9.image
warning [c1700-sy-121-9.bin]: 16304 extra bytes at beginning or within zipfile
(attempting to process anyway)
gf:dyncode gregferro$

I have renamed the IOS file from .bin to .image so I can determ­ine that it has been uncom­pressed. I keep the rest of the name the same, because that tells me the fea­ture set of the image.

Now your images are ready to use. You can see the script I use to start Dynamips /​ Dynagen in a earlier post.

Please rate this post:

  Why Rate Posts?
1 Star - It\\\'s Crud2 Stars - It\\\'s Tosh3 Stars - Something\\\'s missing4 Stars - Needs works5 Stars - Good Enough6 Stars - Good7 Stars - Excellent8 Stars - Brilliant9 Stars - Astonishing10 Stars - Awesomely Godlike? (No Ratings Yet)
Loading ... Loading ...

Comments

6 Responses to “Unzip Cisco IOS Images for Dynamips”
  1. Joel says:

    wow.. thanks dude, am sur­prised that no one com­men­ted yet. nice work. coz i wasnt able to decom­press it without ur instruc­tions…
    thanks.

  2. Richard says:

    OK — I must be stu­pid. I down­loaded the ZiPeg you recom­men­ded but it will not open any of my .bin IOS image files…and I can­not seem to find any­where where it says it will do so…

    Any help on this..?

    Thanks :-)

  3. Greg Ferro says:

    Try renam­ing the file with a .mz exten­sion. I haven’t done this for while so I can’t quite remember.

  4. Al says:

    Thanks! This art­icle solved the issue I had attempt­ing to boot 2600-​​series routers in GNS3.

  5. quantump says:

    great help, been using gns3 for a while and exper­i­enced slow down at the start whenever the routers bootup. but now it goes straight to con­fig dia­log. great post! great help! thanks!

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!