Article Title: simulate a cisco router using dynamic in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Environment: centos5.2
Software: dynamic. cisco-ios
1: Download the dynamic binfile.
Wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.6-RC4-x86.bin
Music dynamips-0.2.6-RC4-x86.bin/usr/local/bin/dynamips
2: install the required libs.
Wget http://www.mr511.de/software/libelf-0.8.10.tar.gz
Compile and install:
./Configure -- enable-gnu-names
Make-j7 DEPSHALIBS = "-lc"
Make install
Cp-r/usr/local/lib/libelf. so.0/usr/lib/
Cp-r/usr/local/lib/libelf-0.8.10.so/usr/lib/
3: Download the ios file. Here I will use the 3640 route as an example: (other ios will download it by myself. According to the dynamics version, we can see the supported ios)
Wget ftp: // wolf: colorwolf5768@ftp.microwolf.net/nettools/ios/c3640-i-mz.122-13.T1.bin
4: Start dynamips and initialize the route:
The usage is as follows:
Dynamips-P <需要模拟的路由类型> -P Slot Number: Module name <对应路由的iso文件名>
The type of the route. Currently, it can be 7200, 3600, 2691, 3725, or 3745. The default value is 7200.
-P is followed by the slot number: Module name, indicating that the port module is inserted in the physical slot (starting from 0). For specific command usage, see the official documentation.
Next we will simulate a Cisco 3640 instance. slot0 is connected to a fast Ethernet board, and slot1 is connected to a 4-port E1.
Dynamips-P 3600-p: NM-1FE-TX-p 1: NM-4T c3640-i-mz.122-13.T1.bin
Cisco 7200 Simulation Platform (version 0.2.6-RC4-x86)
Copyright (c) Christophe Fillot.
Build date: Nov 15 2006 23:05:16
IOS image file: c3640-i-mz.122-13.T1.bin
CPU0: carved JIT exec zone of 64 Mb into 2048 pages of 32 Kb.
NVRAM is empty, setting config register to 0x2142
C3600 instance 'default' (id 0 ):
VM Status: 0
RAM size: 128 Mb
NVRAM size: 128 Kb
Chassis: 3640
IOS image: c3640-i-mz.122-13.T1.bin
Loading ELF file 'c3640-i-mz.122-13.T1.bin '...
ELF entry point: 0x80008000
C3600 'default': starting simulation (CPU0 PC = 0xffffffffbfc00000), JIT enabled.
ROMMON emulation microcode.
Launching IOS image at 0x80008000...
Self decompressing the image: ######################################## ############################### [OK]
Invalid iomem value in ROM (5). Smart-init will
Now run to compute a valid value
Iomem percentage may need to be reset manually
Smart Init is enabled
Smart init is sizing iomem
ID MEMORY_REQ TYPE
000044 0X0004FE00 Single Port Fast Ethernet
000054 0x0004e00004 T Mueslix Serial
0X000F3BB0 public buffer pools
0X00211000 public particle pools
TOTAL: 0X003A2E30
If any of the above Memory Requirements are
"UNKNOWN", you may be using an unsupported
Configuration or there is a software problem and
System operation may be compromised.
Rounded IOMEM up to: 4 Mb.
Using 3 percent iomem. [4 Mb/128 Mb]
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
Subject to restrictions as set forth in subparagraph
(C) of the specified cial Computer Software-Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(C) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco Internetwork Operating System Software
IOS (tm) 3600 Software (C3640-I-M), Version 12.2 (13) T1, release software (fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Fri 03-Jan-03 :10 by ccai
Image text-base: 0x60008930, data-base: 0x60C1A000
Cisco 3640 (R4700) processor (revision 0xFF) with 126976 K/4096 K bytes of memory.
Processor board ID 00000000
R4700 CPU at 100 Mhz, Implementation 33, Rev 1.2
Bridging software.
X.25 software, Version 3.0.0.
1 FastEthernet/IEEE 802.3 interface (s)
4 Serial network interface (s)
DRAM configuration is 64 bits wide with parity enabled.
125 K bytes of non-volatile configuration memory.
8192 K bytes of processor board System flash (Read/Write)
--- System Configuration Dialog ---
[1] [2] Next page