2 September 2010

Unzip Cisco IOS Images for Dynamips

I have a directory ‘dynalab’ in my ‘Documents’ where I have put ALL my Dynamips / Dynagen related files. I created a directory 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 normal using the Finder into the dynalab directory. To uncompress the images you can either download the Zipeg program (use a search engine to find it), or use the command 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 determine that it has been uncompressed. I keep the rest of the name the same, because that tells me the feature 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:

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

About Greg Ferro
Greg is a Network and Security Architect / Designer / Engineer working freelance in the UK and worked for Resellers, DotCom's, Large Corporate's and Service Providers across a variety of products & Vendors. He prefers to work for end users, believes in the life cycle, total cost of ownership and that near enough is often good enough. He likes talking about himself in the first person to feel "royal", even when hosting the Packet Pushers Podcast on Data Networking. More about Greg at http://etherealmind.com/who-am-i/ and you can follow him on Twitter.

Comments

  1. Joel says:

    wow.. thanks dude, am surprised that no one commented yet. nice work. coz i wasnt able to decompress it without ur instructions…
    thanks.

  2. Richard says:

    OK – I must be stupid. I downloaded the ZiPeg you recommended but it will not open any of my .bin IOS image files…and I cannot seem to find anywhere where it says it will do so…

    Any help on this..?

    Thanks :-)

  3. Greg Ferro says:

    Try renaming the file with a .mz extension. I haven’t done this for while so I can’t quite remember.

  4. Al says:

    Thanks! This article solved the issue I had attempting to boot 2600-series routers in GNS3.

  5. quantump says:

    great help, been using gns3 for a while and experienced slow down at the start whenever the routers bootup. but now it goes straight to config dialog. great post! great help! thanks!

Speak Your Mind

*