TechRepublic : A ZDNet Tech Community

Network Administrator

Host: Selena Frye
Contact

A few months ago, I wrote “Eight ways to strengthen your Cisco networking skills,” and the second suggestion I listed for improving your abilities was to use a simulator. However, while simulators are useful, there’s something even better that you can get for free — an emulator.

What’s the difference? A simulator attempts to re-create the Cisco IOS using a programming language, but an emulator takes the real IOS router code, which you supply, and emulates the hardware behind it so you can run the real IOS on your PC.

With a simulator, there are always missing commands and programming errors, and it can never really be as complete as the real IOS. However, because an emulator runs the IOS, you get every feature that the real IOS has (based on the limitations of the emulated hardware, of course).

For example, if your emulated hardware has a Gig Ethernet interface, and the IOS supports a Gig Ethernet interface on that platform, then you can use the Gig Ethernet interface. If, however, your emulated hardware doesn’t have a VoIP FXS card, then you wouldn’t be able to configure one in the Cisco IOS, even if the IOS supported it.

What is Dynamips?

You can use the Dynamips Emulator for training purposes and testing configurations. You can create configurations and later deploy them to real routers. The Dynamips Emulator can boot IOS images from 7200, 3600, 3700, and 2600 series routers, even including the latest and greatest 12.4T IOS (something that my old 2600 router can’t do because it doesn’t have enough RAM).

One caveat is that you must supply the IOS for any router that you’re going to emulate. It is, of course, illegal to distribute the IOS and only legal to obtain it by purchasing and downloading it from Cisco. However, if you already have a router that’s one of these models, you can copy that IOS into the Dynamips Emulator for testing and training purposes.

What is Dynagen?

Dynagen is the text-based front end for the Dynamips Emulator. It allows you to automatically provision Dynamips-emulated networks. It has a large following, supported through 7200emu.hacki.at Forum for Dynamips & Dynagen.

Now, as much as I like using Dynamips and Dynagen together, their configuration can be challenging for new users to understand. However, a package called GNS3 helps make it easier.

What is the Graphical Network Simulator?

A new open source project that helps improve on Dynamips is the Graphical Network Simulator (GNS). Linked to Dynamips and Dynagen, GNS3 is available precompiled for Windows, and the source is available if you want to run it on Linux or Mac OS X.

The GNS3 Windows all-in-one installation package includes Dynamips, WinPCAP, and GNS3. Let’s walk through installing and using GNS3.

First, I downloaded the GNS3 Windows all-in-one package and installed it. To install WinPCAP, I did have to reboot my PC. Once installed, I ran GNS3 from the desktop icon the installation process created.

This brought up a nice GUI interface that was similar to some of the Cisco IOS simulators I’ve seen. I was able to quickly create a sample network by dragging and dropping router icons and then connecting them with the Connection tool. Figure A offers a screenshot of what it looked like.

Figure A

Figure A

After creating the network, I did have to add my IOS images because GNS3 didn’t provide them. To add IOS images, go to Edit | IOS Images and Hypervisors. Figure B shows a screenshot of what it looked like after I finished.

Figure B

Figure B

Next, I started the Dynamips Emulator by go to Preferences | Dynamips and clicking Test. Figure C offers a screenshot.

Figure C

Figure C

From here, I could configure the specifications for the router — amount of RAM, Flash, cards in slots, and configuration-register. Next, to use the network, click the Emulation Mode button.

Once in Emulation Mode, click the Play button to start the IOS instances of all routers. Figure D offers a screenshot.

Figure D

Figure D

This launches a console for each router, and it boots up the routers, as shown in Figure E.

Figure E

Figure E

As you can see, just like a real test lab with multiple routers, I was able to configure these two routers to communicate with each other by configuring IP addressing, enabling the interfaces, and configuring a routing protocol. Figure F shows how I configured basic RIP routing and how the router received a RIP route from the other router.

Figure F

Figure F

While I recommend building your own lab so you can get a better understanding of how it works, there are also some sample labs available when you install Dynagen. I’ve also seen some sample labs and an entire CCIE commercial lab workbook, all based on using Dynamips, on the Internetwork Expert Web site.

Conclusion

The ability to run multiple routers inside your PC is very useful for testing and training. It can save you the time and trouble from having to invest in a test Cisco network, and it certainly makes it more convenient. I hope that by trying and using GNS and Dynamips, you can become a better Cisco network administrator.

Want to learn more about router and switch management? Automatically sign up for our free Cisco Routers and Switches newsletter, delivered each Friday!

David DavisDavid Davis has worked in the IT industry for 15+ years and holds several certifications, including CCIE, CCNA, CCNP, MCSE, CISSP, VCP. He has authored hundreds of articles and numerous IT training videos. Today, David is the Director of Infrastructure at Train Signal.com. Train Signal, Inc. is the global leader in video training for IT Professionals and end users. Read his full bio and profile.

Print/View all Posts Comments on this blog

Great Information mmantei@... | 01/11/08
A great tool avila_mj@... | 01/11/08
you are right..... trustmubaiwa@... | 01/14/08
How to install it? dion2herrera@... | 02/19/08
GNS3 install and configure Mdallen70@... | 03/09/08
Resource Management CrimsonPaw | 01/11/08
Idle Values LievenV | 01/13/08
Re: Idle Values CrimsonPaw | 01/18/08
Idle Pc Values ktaisia@... | 07/09/08
Packet Tracer 4.1 Exp | 01/12/08
Great ! adewalexdavid@... | 01/13/08
Try Packet Tracer 5 larrsland@... | 02/27/09
RE: Practice Cisco router configuration using a free emulator tomtomtom@... | 01/24/08
RE: Practice Cisco router configuration using a free emulator James Jelinek | 01/26/08
RE: Practice Cisco router configuration using a free emulator bkerwood@... | 02/07/08
RE: Practice Cisco router configuration using a free emulator amit.k.raja@... | 03/05/08
RE: Practice Cisco router configuration using a free emulator flexer4real@... | 03/07/08
RE: Practice Cisco router configuration using a free emulator biswas_sai@... | 03/15/08
GNS Video Tutorials tmsheikh@... | 06/26/08
Videos and configs for GNS3 lbsources@... | 09/26/08
RE: Practice Cisco router configuration using a free emulator daniel@... | 10/12/08
RE: Practice Cisco router configuration using a free emulator yokyle@... | 11/25/08
Cisco System's Edge Quest 2 Tournament Info kenneth.cho@... | 02/19/09
RE: Practice Cisco router configuration using a free emulator Mostina | 08/12/09
RE: Practice Cisco router configuration using a free emulator sh.dileep.kr88@... | 08/19/09

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



Quick Reference: Linux Commands
Reduce stress and speed up resolutions with the easiest command references right at your fingertips. You'll receive a PDF file covering Linux, packed with the most common commands you'll need and use daily.
Buy Now
500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now

SmartPlanet

Click Here