DYNAMIPS(1)
π dynamips(1) β General Commands Manual π
okay bestie, sit DOWN, because we're about to talk about dynamips, and this one is a whole personality. it's the Cisco router simulator, and it's lowkey iconic.
β¨ NAME β¨
dynamips β Cisco router simulator π«Ά
πΈ SYNOPSIS πΈ
dynamips [options] ios_image
π¦ DESCRIPTION π¦
so basically, dynamips emulates Cisco routers on a traditional PC. you can use it to create labs. it runs on real Cisco IOS images, and heads up: those images are not included in this package. also, real talk β this emulator cannot replace a real router. it's simply a complementary tool to real labs, for administrators of Cisco networks or for people who want to pass their CCNA/CCNP/CCIE exams. it's giving study buddy, not study replacement π
the emulator currently supports the Cisco 7200, Cisco 3745, Cisco 3725, Cisco 3600, Cisco 2691, Cisco 2600, and Cisco 1700 series.
by default, a Cisco 7206VXR with NPE-200 (256 Mb of DRAM) is emulated. to emulate another platform β like the Cisco 3600 series β use the -P command line option. you can change the chassis type with -t. and bestie, do not forget to set it depending on your IOS image: a c3660 image will not run on c3640 hardware and vice-versa. they are not interchangeable, periodt.
β¨ OPTIONS β¨
a summary of options is included below.
-H<tcp_port>β enable hypervisor mode. the hypervisor mode ofdynamipslets you run simultaneously many virtual router instances, and to simulate ATM, Ethernet or Frame-Relay networks. you can connect directly to the TCP control port withtelnet, or usedynagen(1),dynagui(1)which will pass commands transparently. the second method is highly recommended. π«Ά-l<log_file>β set logging file (default isdynamips_log.txt)-jβ disable the JIT compiler. it's very slow. like, we're talking snail energy π--exec-area<size>β set the exec area size (default:64 Mb). the exec area is a pool of host memory used to store pages translated by the JIT β they contain the native code corresponding to MIPS code pages.--idle-pc<pc>β set the idle PC (default: disabled). the "idle PC" feature lets you run a router instance without having a 100% CPU load. this implies that you can run a larger number of instances per real machine. π₯
to determine the "idle PC", start normally the emulator with your Cisco IOS image, and a totally IOS empty configuration (although not mandatory, this will give better results). when the image is fully booted, wait for the Press RETURN to get started! message prompt, but do not press the Enter key. wait about 5 seconds, then press Ctrl-] + i. some statistics will be gathered during 10 seconds. at the end, the emulator will display a list of possible values to pass to the --idle-pc option. you may have to try some values before finding the good one. to check if the idle PC value is good, just boot the Cisco IOS image, and check your CPU load when the console prompt is available. if it's low, you have found a good value β keep it preciously. π
important remarks, bestie, don't skip these: - an "idle PC" value is *specific* to a Cisco IOS image. you cannot boot a different IOS image without proceeding as described above. - do not run the process while having the "autoconfiguration" prompt.
--timer-itv<val>β Timer IRQ interval check (default:1000)-i<instance>β set instance ID-r<ram_size>β set the virtual RAM size (default:256 Mb)-o<rom_size>β set the virtual ROM size (default:4 Mb)-n<nvram_size>β set the NVRAM size (default:128 Kb)-c<conf_reg>β set the configuration register (default:0x2102)-m<mac_addr>β set the MAC address of the chassis (default: automatically generated)-C,--startup-config<file>β import IOS configuration file into NVRAM--private-config<file>β import IOS configuration file into NVRAM-Xβ do not use a file to simulate RAM (faster) β‘-R<rom_file>β load an alternate ROM (default: embedded)-k<clock_div>β set the clock divisor (default:4). specify the clock divider (integer) based on the host clock. alter the value to match the CISCO clock with the real time. the commandshow clockat the IOS' CLI will help you set this value.-T<port>β console is on TCP<port>-U<si_desc>β console is on serial interface<si_desc>(default is on the terminal)-A<port>β AUX is on TCP<port>-B<si_desc>β AUX is on serial interface<si_desc>(default is no AUX port)--disk0<size>β set PCMCIA ATAdisk0:size (default:64 Mb)--disk1<size>β set PCMCIA ATAdisk1:size (default:0 Mb)-a<cfg_file>β Virtual ATM switch configuration file.-f<cfg_file>β Virtual Frame-Relay switch configuration file.-E<cfg_file>β Virtual Ethernet switch configuration file.-eβ show network device list of the host machine. π
π OPTIONS specific to the Cisco 7200 series π
-t<npe_type>β select NPE type (default:"npe-200")-M<midplane>β select Midplane ("std"or"vxr")-p<pa_desc>β define a Port Adapter-s<pa_nio>β bind a Network IO interface to a Port Adapter
π OPTIONS specific to the Cisco 3600 series π
-t<chassis_type>β select Chassis type (default:"3640")-p<nm_desc>β define a Network Module-s<nm_nio>β bind a Network IO interface to a Network Module
π Cisco 7200 Port Adapter Description <pa_desc> π
Format: slot:pa_driver
slotβ the number of the physical slot (starts from0)pa_driverβ the name of a Port Adapter driver in:C7200-IO-FEβ (FastEthernet, slot 0 only)PA-FE-TXβ (FastEthernet, slots 1 to 6)PA-4Eβ (Ethernet, 4 ports)PA-8Eβ (Ethernet, 8 ports)PA-4T+β (Serial, 4 ports)PA-8Tβ (Serial, 8 ports)PA-A1β (ATM)
π§ Cisco 3600 Network Module Description <nm_desc> π§
Format: slot:nm_driver
slotβ the number of the physical slot (starts from0)nm_driverβ the name of a Network Module driver in:NM-1Eβ (Ethernet, 1 port)NM-4Eβ (Ethernet, 4 ports)NM-1FE-TXβ (FastEthernet, 1 port)NM-4Tβ (Serial, 4 ports)Leopard-2FEβ (Cisco 3660 FastEthernet in slot 0, automatically used)
β NIO binding to Port Adapter <pa_nio> and Network Modules <nm_nio> : β
Format: slot:port:netio_type[:netio_parameters]
slotβ the number of the physical slot (starts from0)portβ the port in the specified slot (starts from0)netio_typeβ host interface for communication:unix:<local_sock>:<remote_sock>β use unix sockets for local communication.<local_sock>is created and represents the local NIC.<remote_sock>is the file used by the other interface. (ex."/tmp/local:/tmp/remote")vde:<control_sock>:<local_sock>β for use with UML (User-Mode-Linux) or VDE switches. VDE stands for "Virtual Distributed Ethernet". please refer to :http://sourceforge.net/projects/vde/tap:<tap_name>β use a virtual ethernet device for communication.<tap_name>is the name of the tap device (ex."tap0")gen_eth:<dev_name>β use a real ethernet device for communication, usinglibpcap 0.9orWinPcap. works on Windows and Unix systems.<dev_name>is the name of the Ethernet device (ex."eth0"). the device list can be found using the-eoption.linux_eth:<dev_name>β use a real ethernet device for communication (Linux specific).<dev_name>is the name of the Ethernet device (ex."eth0")udp:<local_port>:<remote_host>:<remote_port>β use an UDP socket for connection between remote instances.<local_port>is the port we listen to.<remote_host>is the host listening the port you want to connect to.<remote_port>is the port you want to connect to. (ex."1000:somehost:2000"and"2000:otherhost:1000"on the other side)tcp_cli:<host>:<port>β client side of a tcp connection.<host>is the ip address of the server.<port>is the port to connect to.tcp_ser:<port>β server side of a tcp connection.<port>is the port to listen to.nullβ dummy netio (used for testing/debugging), no parameters needed.
π VTTY binding to real serial port device <si_desc> π
Format: <device>{:baudrate{:databits{:parity{:stopbits{:hwflow}}}}}}
deviceβ character device name, e.g./dev/ttyS0baudrateβ baudratedatabitsβ number of databitsparityβ data parity:N=none,O=odd,E=evenstopbitsβ number of stop bitshwflowβ hardware flow control (0=disable,1=enable)
note that the device field is mandatory, however other fields are optional. (dynamips will default to 9600, 8, N, 1, no hardware flow control).
note that access to the escape commands (described below) through a serial port are deliberately prevented, as the escape commands interfere with serial encapsulation protocols. π«Ά
π Escape commands π
you can press ^] (Ctrl + ]) at any time, followed by one of these characters:
oβ show the VM object listdβ show the device listrβ dump MIPS CPU registerstβ dump MIPS TLB entriesmβ dump the latest memory accessessβ suspend CPU emulationuβ resume CPU emulationqβ quit the emulatorbβ dump the instruction block treehβ JIT hash table statisticslβ MTS64 cache statisticscβ write IOS configuration to disk (ios_cfg.txt)jβ non-JIT mode statisticsxβ experimentations (can crash the box! π)^]β send^]
if you press an unrecognized key, help will be shown. note: on Windows, it may be the "Ctrl + $" sequence.
π Virtual Bridge π
okay bestie so the virtual bridge is literally here to emulate a shared network between emulator instances. and the tea is: any emulator instance can act as a virtual bridge. no cap. π«Ά
The config file (you specify it with the -b option) has a list of NetIO descriptors, and the syntax is giving:
interface_name:netio_type[:netio_parameters]
Example, periodt:
# Connection to instance "I0"
I0:udp:10000:127.0.0.1:10001
# Connection to instance "I1"
I1:udp:10002:127.0.0.1:10003
# Connection to instance "I2"
I2:udp:10004:127.0.0.1:10005
So the "I0" instance would be launched with these exact params:
dynamips ios.bin -p 1:PA-FE-TX -s 1:0:udp:10001:127.0.0.1:10000
π Virtual Ethernet switch π
The virtual ethernet switch is used to emulate an Ethernet network between emulator instances. and yes it supports access and trunk ports (802.1Q). ISL will be available in a future release (so not yet, bestie). Any emulator instance can act as a virtual ethernet switch.
The config file (you specify it with the -E option) contains a list of NetIO descriptors (representing interfaces) and a list of interface properties (access/trunk port, VLAN info...). The interface definition is similar to Port Adapters:
IF:interface_name:netio_type[:netio_parameters]
Access Port
ACCESS:interface_name:vlan_id
802.1Q Trunk Port
DOT1Q:interface_name:native_vlan
The native VLAN is not tagged. On Cisco devices, by default the native VLAN is VLAN 1.
Example of configuration file:
IF:E0:udp:10000:127.0.0.1:10001
IF:E1:udp:10002:127.0.0.1:10003
IF:E2:gen_eth:eth0
DOT1Q:E0:1
ACCESS:E1:4
DOT1Q:E2:1
π¦ Virtual ATM switch π¦
The virtual ATM switch fabric is used to emulate an ATM backbone between emulator instances. The use of this virtual switch is not mandatory, you can directly connect emulator instances for point-to-point ATM connections. Please note that only basic VP/VC switching is supported, there is no support for ILMI/QSAAL/... or other specific ATM protocols. Any emulator instance can act as a virtual ATM switch.
Example of configuration file (specified by the -a option):
# Virtual Interface List
IF:A0:udp:10001:127.0.0.1:10000
IF:A1:udp:10002:127.0.0.1:10003
IF:A2:udp:10004:127.0.0.1:10005
# VP connection between I0 and I1
VP:A0:10:A1:20
VP:A1:20:A0:10
# VP connection between I0 and I2
VP:A0:11:A2:30
VP:A2:30:A0:11
# VC connection between I1 and I2
VC:A1:5:2:A2:7:3
VC:A2:7:3:A1:5:2
In this example, we have 3 virtual interfaces, A0, A1 and A2. The syntax for interface definition is similar to Port Adapters:
IF:interface_name:netio_type[:netio_parameters]
You can do VP switching or VC switching:
VP switching
VP:input_if:input_vpi:output_if:output_vpi
VC switching
VC:input_if:input_vpi:input_vci:output_if:output_vpi:output_vci
β¨ Testing the Virtual ATM switch with one dynamips instance β¨
Virtual ATM switch configuration file ("atm.cfg"):
IF:A0:udp:10003:127.0.0.1:10001
IF:A1:udp:10004:127.0.0.1:10002
# a0/vpi=1/vci=100 connects to a1/vpi=2/vci=200
VC:A0:1:100:A1:2:200
VC:A1:2:200:A0:1:100
Invoking dynamips:
./dynamips -p 1:PA-A1 -s 1:0:udp:10001:127.0.0.1:10003 -p 2:PA-A1
-s 2:0:udp:10002:127.0.0.1:10004 -a atm.cfg IOS.BIN
(note input ports of IOS interfaces are output ports of ATM switch interfaces, and vice versa).
IOS Configuration:
ip cef
ip vrf test
rd 1:1
route-target both 1:1
int a1/0
no shut
int a1/0.2 p
ip addr 1.1.1.1 255.255.255.0
pvc 1/100
interface a2/0
no shut
interface a2/0.2 p
ip vrf forwarding test
ip addr 1.1.1.2 255.255.255.0
pvc 2/200
!
π Virtual Frame-Relay switch π
The virtual FrameβRelay switch fabric is used to emulate a FrameβRelay backbone between emulator instances. The use of this virtual switch is not mandatory, you can directly connect emulator instances with appropriate IOS configuration. Any emulator instance can act as a virtual FrameβRelay switch. There is only a basic implementation of the LMI protocol (ANSI Annex D), which is probably not conforming but works with Cisco IOS. Fortunately, Cisco IOS is able to detect automatically the LMI protocol.
Example of configuration file (specified by the -f option):
# Virtual Interface List
IF:S0:udp:10001:127.0.0.1:10000
IF:S1:udp:10002:127.0.0.1:10003
# DLCI switching between S0 and S1
VC:S0:200:S1:100
VC:S1:100:S0:200
In this example, we have 2 virtual interfaces, S0 and S1. The syntax for interface definition is similar to Port Adapters:
IF:interface_name:netio_type[:netio_parameters]
DLCI switching syntax:
VC:input_if:input_dlci:output_if:output_dlci
In the example above, the switch is configured to switch packets received on interface S0 with DLCI 200 to interface S1 with DLCI 100, and viceβversa.
π BUGS π
See RELEASE-NOTES.
π REPORTING BUGS π
Please send bug reports to https://github.com/GNS3/dynamips/issues
π SEE ALSO π
nvram_export(1),hypervisor_mode(7),dynagen(1),dynagui(1)- http://www.gns3.net/dynamips/
- http://forum.gns3.net/
- https://github.com/GNS3/dynamips
πΈ OLD WEBSITES πΈ
- http://www.ipflow.utc.fr/index.php/
- http://www.ipflow.utc.fr/blog/
- http://hacki.at/7200emu/index.php
π AUTHOR π
dynamips is being maintained by FlΓ‘vio J. Saraiva <flaviojs2005@gmail.com>. This manual page was initially written by Erik Wenzel <erik@debian.org> for the Debian GNU/Linux system.
And that's the tea! This was DYNAMIPS(1), version from Sep 28, 2013. Stay iconic, bestie. π
π¦ where this page comes from
- alpine 3.24: dynamips-doc 0.2.24-r0 Β· GPL-2.0
- debian bookworm: dynamips 0.2.14-1 Β· GPL-2.0-or-later
- debian trixie: dynamips 0.2.14-1+b1 Β· GPL-2.0-or-later
- nixos 26.05: dynamips 0.2.23
- nixpkgs unstable: dynamips 0.2.23
- opensuse-leap 16.0: dynamips 0.2.23-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: dynamips 0.2.23-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: dynamips 0.2.23-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: dynamips 0.2.23-bp160.1.12 Β· GPL-2.0-or-later
- ubuntu jammy: dynamips 0.2.14-1build1 Β· GPL-2.0-or-later
- ubuntu noble: dynamips 0.2.14-1build4 Β· GPL-2.0-or-later
- ubuntu questing: dynamips 0.2.14-1build4
- ubuntu resolute: dynamips 0.2.14-1build5 Β· GPL-2.0-or-later
- ubuntu stonking: dynamips 0.2.23-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms