1-877-224-8987 | Contact Us

Using Dynamips for CCIE Lab Preparation on a PC

Using Dynamips for CCIE Lab Preparation on a PC

By: Brian McGahan, CCIE #8593 (Routing & Switching/Service Provider/Security)

Dynamips Tutorial: How To Run Cisco IOS On Your PC

1. Introduction

Since the beginning of networking related certification one of the recurring problems that have faced candidates is getting access to hardware to familiarize themselves with how network operating systems work. Traditionally candidates have been limited to hunting for great deals on old or refurbished equipment to buy, renting equipment time from rack rental vendors, using severely limited router simulator programs, or testing configurations on live customer networks and praying that the help desk’s phone doesn’t ring. Today candidates now have an additional option for creating a Cisco IOS testbed, an emulation program known as “Dynamips”.

Started in August of 2005 by Christophe Fillot, Dynamips is a Linux and Windows based application that is used to emulate the hardware of the Cisco 7200 and 3600 series routing platforms. Unlike traditional router “simulators” Dynamips allows you to boot real Cisco IOS software images and build complex network topologies to test the functionality of IOS on your desktop PC. As of November 2006 Dynamips currently supports Ethernet, Serial, ATM, and POS interfaces for the 7200 series routers and Ethernet, Serial, and Etherswitch modules for the 3600 series routers. Best of all Dynamips is open-source and free to download!

2. Required Downloads

To run Dynamips first you must install libpcap or WinPcap depending on your platform. Windows users will need to install WinPcap 4.0 or later.

Next download the appropriate Linux or Windows executables for Dynamips. To do this I would recommended to download theDynagen installer package, a front end written by Greg Anuzelli which uses an INI-like configuration file to provision the Dynamips emulator.

Next you’ll need a Cisco IOS software image for a 7206, 3620, 3640, or 3660 router depending on which platform you will be emulating. IOS can be downloaded from http://www.cisco.com for users with a valid service contract. Once you have downloaded the appropriate IOS image it is recommended that you extract the image to save time in the Dynamips booting process. This can be accomplished with programs such as gunzip for Linux or WinRAR for Windows.

Next you need to build a Dynagen .net file to provision the Dynamips emulator, or you can download prebuilt ones to emulate the INE Routing & Switching and Service Provider topologies from here:

INE Topologies for Dynagen
Note that these files may need minor modification to specify your working directories and the names and locations of your Cisco IOS images. Also included in the INE Topologies for Dynagen is a router instance that is designated as a Terminal Server (Access Server). This instance can be used like a Cisco 2511 series router to reverse telnet to the console ports of the virtual Dynamips router instances, similar to how the Terminal Server is used in the CCIE Lab Exam.

3. Setting up Dynamips

To use the Terminal Server instance first create a Loopback interface on your PC with the IP address For Windows clients see http://support.microsoft.com/kb/839013 for instructions how to add a Loopback interface in Windows. Once the Loopback is created reboot your PC and then run the Dynamips shortcut “Network Device List” located on the desktop. This output will show you the hardware address for the Loopback which will look something like {4065B11C-2A6C-4FD2-8204-A12A9A8328A4}. Next edit the .net file for the appropriate INE topology, and under the [[Router TermServ]] entry edit the line E0/0 = NIO_gen_eth:\Device\NPF_{4065B11C-2A6C-4FD2-8204-A12A9A8328A4} to insert the hardware address of your Loopback. If successful you should be able to ping the IP address of the Terminal Server ( from your local PC when the Dynamips instance for it is booted.

Next boot the Dynamips hypervisor. For Windows users this will be the “Dynamips Server” shortcut on your desktop that was created by the Dynagen installer package. Next run the appropriate .net file for Dynagen, and “start” your devices from the Dynagen command line. Once booted the Dynamips router processes can be telneted to with any terminal emulation software such as SecureCRT, PuTTY, HyperTerminal, or command line telnet.

Note that as the number of device you boot in Dynamips increases as do the processor, memory, and disk space requirements of your desktop. Currently I am able to boot all the devices in the INE Topology .net files in Windows with an AMD 64 X2 Dual Core 4400+ processor with 2Gb of RAM and about 2Gb of disk space in the devices’ working directory.

As the project matures more functionality is sure to be added. For more information on the project visit the following sites:

4. Watch the Dynamips Tutorial Video

Check out the video, Using Dynamips for CCIE Lab Preparation Video Tutorial.

5. Dynamips Labs

The next step is getting Dynamips Labs. We have reworked our CCIE Routing & Switching Lab Workbook Volume II for Dynamips. This workbook has the same structure as regular Volume II Workbook, but has been adapted to be used along with Dynamips IOS hardware emulator. You dont need to purchase any Cisco router to use this product, all you need is a PC, capable of running the emulated topology. This collection of Dynamips Labs are the best on the market.