Dynamips is a Cisco router emulator. Supported platforms are 1700, 2600, 3600, 3700 and 7200 routers. Each IOS has an associated Idle PC value. Idle PC is used to map the idle instruction of the running IOS to the idle instruction of the UNetLab platform. With a good Idle PC value, the CPU usage should be less than 10% for each instance.
Eve-ng is a platform where you can add Cisco routers images and can do unlimited practice for your certification. In Eve-ng you can practice lab up to CCIE level
We will tell you step by step process of How to add Cisco IOS images to EVE-ng
Content-
1. Supported Dyanamips Images
2. Download Cisco IOS (Dyanamips Images)
3. Importing Cisco IOS image to Eve-ng
4. Calculating Idle-PC
if you want to practice Cisco ASA / IOU/ IOL on eve-ng for your certification or knowledge then check below posts-
How to add Cisco IOU/IOL to Eve-ng
How to add Cisco ASAv to Eve-ng
1. SUPPORTED DYNAMIPS IMAGES
EVE Image Name | Downloaded Filename | Version | vRAM | Idle PC |
---|---|---|---|---|
c1710-bk9no3r2sy-mz.124-23.image |
c1710-bk9no3r2sy-mz.124-23.bin |
C1710-BK9NO3R2SY-M 12.4(23) | 96 | 0x80369ac4 |
c3725-adventerprisek9-mz.124-15.T14.image |
c3725-adventerprisek9-mz.124-15.T14.bin |
C3725-ADVENTERPRISEK9-M 12.4(15)T14 | 256 | 0x60c08728 |
c7200-adventerprisek9-mz.152-4.S2.image |
c7200-adventerprisek9-mz.152-4.S2.bin |
C7200-ADVENTERPRISEK9-M 15.2(4)S2 | 512 | 0x60630d5c |
c7200-adventerprisek9-mz.152-4.S6.image |
c7200-adventerprisek9-mz.152-4.S6.bin |
C7200-ADVENTERPRISEK9-M 15.2(4)S6 | 512 | 0x62f224ac |
2. Download Cisco IOS (Dynamips images) Eve-ng
Images provided below are strictly for education purpose and are not hosted on networkhunt.com server. We are just indexing the links find on internet for education purpose only.
You can download Cisco IOS (dynamips images) from below links.
1. Cisco Website (Cisco Access required to download images from cisco website.
2. Mega
https://mega.nz/#F!fpxnXIKB!twpa-jzH4ReWZFq5uZENZg
3. Add Cisco IOS (Dynamips images) to Eve-ng
If you are uploading the zip file then install the required package-
Install required packages:
apt-get -y install unzip
Upload the downloaded image to the Eve-ng master node using for example FileZilla or WinSCP. Then login as root using SSH protocol and uncompress it:
Create tmp directory
mkdir abc
Using EVE CLI, uncompress original image. Output file extension must be .image. Be sure you are using properly your source and output filenames.
cd abc
unzip -p c1710-bk9no3r2sy-mz.124-23.bin > c1710-bk9no3r2sy-mz.124-23.image
Move uncompressed image to destination folder:
mv c1710-bk9no3r2sy-mz.124-23.image /opt/unetlab/addons/dynamips/
Clean and fix permissions:
cd
rm -rf abc
/opt/unetlab/wrappers/unl_wrapper -a fixpermissions
4. CALCULATING IDLE PC
If an unsupported image is added to the UNetLab platform, an Idle PC value must be identified. Start a Dynamips instance with basic configuration:
dynamips -P 1700 -t 1710 /opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image
CPU usage is very high, a whole CPU for each instance:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3521 root 20 0 412236 125408 109904 S 99.5 25.4 3:27.82 dynamips
Wait for the following line on the console:
Would you like to enter the initial configuration dialog? [yes/no]:
Exit from initial configuration dialog, and quit to get the con0 prompt:
Router con0 is now available
Press RETURN to get started.
After few more seconds press CTRL
+ ]
then i
. Dynamips will show suggested Idle PC values:
Please wait while gathering statistics...
Done. Suggested idling PC:
0x80369ac4 (count=35)
0x8023afac (count=51)
0x8023b008 (count=30)
0x8023b050 (count=27)
0x803637a0 (count=38)
0x80363984 (count=20)
0x80363ccc (count=28)
0x80363d48 (count=28)
0x80363d78 (count=74)
0x803645d0 (count=76)
Restart the emulator with "--idle-pc=0x80369ac4" (for example)
Select one and restart dynamips with the IDle PC value:
dynamips -P 1700 -t 1710 --idle-pc 0x80369ac4 /opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image
If CPU usage is lower, then a good Idle PC value has been found:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3598 root 20 0 346700 125328 109828 S 5.3 25.3 0:03.98 dynamips
Usually the highest value of IDLE PC will best for your CPU. In the calculation above it is 76. Copy value of IDLE PC to the notepad and we can start test best value fit for your Dynamips node.
To stop dynamips router calculation mode use:
Key combo CTRL and ] then q
Go to EVE WEB GUI, add your Dynamips node and change IDLE PC value to calculated, save and start node.
If CPU usage is lower, then a good IDLE PC value has been found:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3598 root 20 0 346700 125328 109828 S 5.3 25.3 0:03.98 dynamips
If CPU is still high, then another value must be tested.
It is not wokring. this is what i get with two different 7200 images
load_elf_image: open: No such file or directory
C7200 ‘default’ : failed to load Cisco IOS image ‘ /opt/unetlab/addons/dynamips/C7200-adventerprisek9-mz.152-4.s6.image
Hi,
I facing this “ERROR: Unlicensed” right after i enter this command “/opt/unetlab/wrappers/unl_wrapper -a fixpermissions”. Can you please assist me? thank you. =)