![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
A Carafe of Ubuntu
![]() |
HOWTO: Run cisco router emulator in ubuntu 8.04
Tested with Ubuntu Hardy
Dynamips: Dynamips is a Cisco router emulator written by Christophe Fillot. It emulates 1700, 2600, 3600, 3700, and 7200 hardware platforms, and runs standard IOS images. ( This discription is taken from http://dynagen.org/tutorial.htm#_Toc193247991 ) Dynagen: Dynagen is a front-end for use with the Dynamips Cisco router emulator. It uses an INI-like configuration file to provision Dynamips emulator networks. It takes care of specifying the right port adapters, generating and matching up those pesky NIO descriptors, specifying bridges, frame-relay, ATM switches, etc. It also provides a management CLI for listing devices, suspending and reloading instances, determining and managing idle-pc values, performing packet captures, etc. ( This discription is taken from http://dynagen.org/ ) This tutorial helps you to run cisco IOS images using Dynamips-Dynagen emulators in ubuntu. Will be much useful to those whose are preparing for cisco certifications. This tutorial doesnot explains extended network configuration of Dynamips. This guide simply provides you on howto install Dynamips-Dynagen in ubuntu and run a cisco router IOS image in ubuntu. Following softwares/libs are required to run Dynamips-Dynagen 1) libpcap v0.9.x 2) python v2.5.x Use synaptic package manager to install the above softwares 1) Go to Start>System>Administration>synaptic package manager 2) Search libpcap & python 3) Mark the above mentioned versions and press apply to install. Install Dynamips & Dynagen: 1) Create a new directory for dynamips Code:
sudo mkdir /opt/dynamips Code:
cd /opt/dynamips Code:
sudo wget http://downloads.sourceforge.net/dyna-gen/dynagen-0.11.0.tar.gz?modtime=1208688475&big_mirror=0 Code:
sudo tar -xvzf dynagen-0.11.0.tar.gz Code:
cd /opt/dynamips/dynagen-0.11.0 Code:
less README.txt 7) Change to /opt/dynamips directory Code:
cd /opt/dynamips Code:
sudo wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.bin 9) Use chmod to change permission Code:
sudo chmod 755 dynamips-0.2.8-RC2-amd64.bin Code:
cd /usr/bin Code:
sudo ln -s /opt/dynamips/dynamips-0.2.8-RC2-amd64.bin dynamips Code:
sudo ln -s /opt/dynamips/dynagen-0.11.0/dynagen dynagen Code:
sudo updatedb Code:
sudo mkdir /opt/dynamips/images 1) Download the cisco router IOS images from www.cisco.com Note: You must have cisco login to download the IOS image. Normally cisco customer & CCIE will have a login. 2) Put the downloaded cisco IOS image in /opt/dynamips/images folder. Code:
sudo mv c7200-jk9o3s-mz.123.12e.bin /opt/dynamips/images Code:
sudo vi /opt/dynamips/dynagen-0.11.0/sample_labs/simple1/simple1.net
# Simple lab
[localhost]
[[7200]]
# image = \Program Files\Dynamips\images\c7200-jk9o3s-mz.124-7a.image <<--Comment out this windows path
# On Linux / Unix use forward slashes:
image = /opt/dynamips/images/c7200-jk9o3s-mz.124-7a.bin <<-- Uncomment and update this line with correct path
npe = npe-400
ram = 160 <<-- Update this value with required RAM size
[[ROUTER R1]]
s1/0 = R2 s1/0
[[router R2]]
# No need to specify an adapter here, it is taken care of
# by the interface specification under Router R1
4) Start the dynamips process Code:
sudo dynamips -H 7200 & Code:
sudo dynagen simple1.net 6) Use list command to list the network equipments and port details for console access. Code:
=>list Name Type State Server Console R1 7200 Running localhost:7200 2001 R2 7200 Running localhost:7200 2002 Code:
=> telnet R1 To learn more about Dynamips/Dynagen visit the below links Code:
http://dynagen.org/tutorial.htm#_Toc193247991 http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator http://www.ipflow.utc.fr/blog/
__________________
((¯`·._ Harikumar_.·´¯)) |
|
|
|
|
|
#2 |
|
Dipped in Ubuntu
![]() Join Date: Mar 2006
Location: Alaska
Beans: 598
Ubuntu 9.04 Jaunty Jackalope
|
Re: HOWTO: Run cisco router emulator in ubuntu 8.04
If you are serious about cisco emulation I STRONGLY suggest GNS3.
Works great in linux. I have used this in conjunction with vmware to make a complete virtual network testbed. http://www.gns3.net/ |
|
|
|
|
|
#3 | |
|
A Carafe of Ubuntu
![]() |
Re: HOWTO: Run cisco router emulator in ubuntu 8.04
Quote:
__________________
((¯`·._ Harikumar_.·´¯)) |
|
|
|
|
|
|
#4 | |
|
First Cup of Ubuntu
![]() Join Date: May 2008
Beans: 5
|
Re: HOWTO: Run cisco router emulator in ubuntu 8.04
Quote:
GNS3 is a great frontend to dynamips, you dont have to bother about the config files, you do all the nasty things with the GUI. |
|
|
|
|
|
|
#5 |
|
Just Give Me the Beans!
![]() |
Re: HOWTO: Run cisco router emulator in ubuntu 8.04
I find that using CISCO's PacketTracer with WINE is fulfilling all my needs for network simulation with CISCO equipment.
Setting up a Dynamips-Dynagen environment looks like a lot of trouble that is not worth the effort. Last edited by m83; May 17th, 2008 at 07:31 PM.. |
|
|
|
|
|
#6 |
|
First Cup of Ubuntu
![]() |
Re: HOWTO: Run cisco router emulator in ubuntu 8.04
Thank you for this!
|
|
|
|
|
|
#7 |
|
5 Cups of Ubuntu
![]() Join Date: Mar 2006
Beans: 18
|
Re: HOWTO: Run cisco router emulator in ubuntu 8.04
Just got a great little lab running in about an hour using GNS3 and the frame relay tutorial located at http://www.blindhog.net/gns3-how-to-...ame-relay-lab/
This is really nice piece of software. The CPU is running at 100% but that is to be expected. Thanks for the pointers all |
|
|
|
|
|
#8 |
|
Quad Shot of Ubuntu
![]() |
Re: HOWTO: Run cisco router emulator in ubuntu 8.04
I have tried this but get the "locked R1 error"
__________________
UKBroadband! Login Screen Setup & XDMCP - locked out of computer? -NZB GUI - "ls -a" WICD -|- |
|
|
|
|
|
#9 |
|
A Carafe of Ubuntu
![]() |
Re: HOWTO: Run cisco router emulator in ubuntu 8.04
Probably you didn't configured the correct path to the image. check your configuration.
__________________
((¯`·._ Harikumar_.·´¯)) |
|
|
|
|
|
#10 |
|
Quad Shot of Ubuntu
![]() |
Re: HOWTO: Run cisco router emulator in ubuntu 8.04
Hi
Sorted it out. It was due to file permissions being that of root. Changed with Code:
chown <userid> <file/directory> Hope this helps someone. Regarding Synaptic - why aren't the files created in /opt/ like your and other (blindhog) tutorials?
__________________
UKBroadband! Login Screen Setup & XDMCP - locked out of computer? -NZB GUI - "ls -a" WICD -|- |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|