Debian Codegraph @

man/hypervisor_mode.7

raw
1 .TH HYPERVISOR_MODE 7 "Mar 27, 2014"
2 .\" Please adjust this date whenever revising the manpage.
3 .SH NAME
4 hypervisor_mode \- allows you to run simultaneously
5 many virtual router instances, and to simulate ATM, Ethernet
6 or Frame\(hyRelay networks.
7 .SH SYNOPSIS
8 .B dynamips \-H
9 .I [ip_address:]tcp_port
10 .SH DESCRIPTION
11 You can connect directly to the TCP control port with telnet, or use
12 dynagen/dynagui that will pass commands transparently. The second method
13 is highly recommended.
14 .br
15 The command syntax is simple: <module> <function> [arguments...]
16 For example: "vm start R1" starts virtual instance named "R1".
17 .TP
18 Available since version 0.2.5.
19 .TP
20 .B The modules that are currently defined are given below:
21 .br
22 .RS
23 .B hypervisor
24 General hypervisor management
25 .TP
26 .B vm
27 General virtual machine (VM) management
28 .TP
29 .B vm_debug
30 General virtual machine (VM) debugging
31 .TP
32 .B c7200
33 Virtual instances of Cisco 7200
34 .TP
35 .B c3745
36 Virtual instances of Cisco 3745
37 .TP
38 .B c3725
39 Virtual instances of Cisco 3725
40 .TP
41 .B c3600
42 Virtual instances of Cisco 3600
43 .TP
44 .B c2691
45 Virtual instances of Cisco 2691
46 .TP
47 .B c2600
48 Virtual instances of Cisco 2600
49 .TP
50 .B c1700
51 Virtual instances of Cisco 1700
52 .TP
53 .B nio
54 Network Input/Output (NIO) descriptors
55 .TP
56 .B nio_bridge
57 NIO bridges (shared media)
58 .TP
59 .B atmsw
60 ATM switches
61 .TP
62 .B atm_bridge
63 ATM bridges
64 .TP
65 .B frsw
66 Frame\(hyRelay switches
67 .TP
68 .B ethsw
69 Ethernet switches
70 .TP
71 .B object_store
72 Object store
73 .RE
74 .TP
75 .B Hypervisor management module ("hypervisor")
76 .RS
77 .TP
78 .B hypervisor version
79 Display the version of dynamips.
80 .TP
81 .B hypervisor module_list
82 Display the module list.
83 .TP
84 .B hypervisor cmd_list <module>
85 Display commands recognized by the specified module.
86 .TP
87 .B hypervisor close
88 Close the current session.
89 .TP
90 .B hypervisor stop
91 Destroy all objects and stop hypervisor.
92 .TP
93 .B hypervisor reset
94 Destroy all objects. (used to get an empty configuration)
95 .TP
96 .B hypervisor working_dir <directory>
97 Set the directory to use to store files.
98 .TP
99 .B hypervisor save_config <filename>
100 Save the configuration of all objects into the specified file.
101 .TP
102 .B hypervisor parser_test [<a1> [... <a10>]]
103 Display up to 10 arguments. (since version 0.2.6\-RC1)
104 .TP
105 .B hypervisor tsg_stats
106 Dump statistics about JIT code sharing to the console.
107 (since version 0.2.8\-RC3, unstable)
108 .RE
109 .TP
110 .B Virtual Machine module ("vm")
111 .RS
112 .TP
113 .B vm list
114 List all VM instances.
115 (c7200, c3745, c3725, c3600, c2691, c2600, c1700)
116 .TP
117 .B vm list_con_ports
118 List all VM console TCP port.
119 (since version 0.2.6\-RC5)
120 .TP
121 .B vm create <instance_name> <instance_id> <platform>
122 Create a new router instance.
123 The ID must be unique and is used to name files on disk.
124 (since version 0.2.8\-RC1)
125 .TP
126 .B vm rename <instance_name> <new_name>
127 Rename a router instance.
128 (since version 0.2.11)
129 .TP
130 .B vm delete <instance_name>
131 Delete the specified instance.
132 (since version 0.2.8\-RC1)
133 .TP
134 .B vm start <instance_name>
135 Start the instance. At least the IOS image must be set.
136 (since version 0.2.8\-RC1)
137 .TP
138 .B vm stop <instance_name>
139 Stop the instance. The settings are kept.
140 (since version 0.2.8\-RC1)
141 .TP
142 .B vm get_status <instance_name>
143 Get the status of a VM instance.
144 Return values: 0=inactive, 1=shutting down, 2=running, 3=suspended.
145 (since version 0.2.11)
146 .TP
147 .B vm set_tsg <instance_name> <group_id>
148 Set translation sharing group.
149 (since version 0.2.8\-RC3\-community, unstable)
150 .TP
151 .B vm set_debug_level <instance_name> <level>
152 Set the debug level (which is a number) for a VM. By default, no specific debug
153 is enabled (level = 0).
154 .TP
155 .B vm set_ios <instance_name> <ios_file>
156 Set the IOS image file to use. There is no default.
157 .TP
158 .B vm set_config <instance_name> <startup_file> [<private_file>]
159 Set the config files that are pushed to startup\-config and
160 private\-config in NVRAM when the instance is started.
161 To keep existing data, use an empty string ('') for the filename.
162 The optional <private_file> is an empty string by default.
163 (supports <private_file> since version 0.2.10)
164 .TP
165 .B vm extract_config <instance_name>
166 Get the contents of the config files startup\-config and private\-config from
167 NVRAM. The data of each file is encoded in a Base64 string, surrounded by
168 single quotes.
169 (returns private\-config since version 0.2.10)
170 .TP
171 .B vm push_config <instance_name> <startup_cfg> [<private_cfg>]
172 Push configuration to the config files startup\-config and private\-config
173 in NVRAM.
174 The data is a Base64 encoded string, or '(keep)' to keep existing data.
175 The optional <private_cfg> is '(keep)' by default.
176 (supports <private_cfg> since version 0.2.11)
177 .TP
178 .B vm set_ram <instance_name> <ram_size>
179 Set the RAM size, specified in Mbytes.
180 .TP
181 .B vm set_nvram <instance_name> <nvram_size>
182 Set the NVRAM size, specified in Kbytes.
183 .TP
184 .B vm set_ram_mmap <instance_name> <0|1>
185 Enable/Disable use of a mapped file to simulate router memory. By default, a
186 mapped file is used. This is a bit slower, but requires less memory.
187 .TP
188 .B vm set_sparse_mem <instance_name> <0|1>
189 Enable/disable use of sparse memory.
190 (since version 0.2.7\-RC1)
191 .TP
192 .B vm suspend <instance_name>
193 Suspend execution of the instance.
194 .TP
195 .B vm resume <instance_name>
196 Resume execution of the instance.
197 .TP
198 .B vm set_clock_divisor <instance_name> <clock_div>
199 Set the clock divisor value. The higher is the value, the faster is the clock
200 in the virtual machine. The default is 4, but it is often required to adjust
201 it.
202 .TP
203 .B vm set_blk_direct_jump <instance_name> <0|1>
204 Enable/disable use of block direct jump.
205 (compatibility option, since version 0.2.7\-RC2)
206 .TP
207 .B vm set_idle_pc <instance_name> <pc_value>
208 Set the idle Pointer Counter (PC). You must determine it through the method
209 explained in the main README file.
210 .TP
211 .B vm set_idle_pc_online <instace_name> <cpu_id> <pc_value>
212 Set the idle PC value when the CPU is online.
213 (since version 0.2.6\-RC2)
214 .TP
215 .B vm get_idle_pc_prop <instance_name> <cpu_id>
216 Get the idle PC proposals.
217 Takes 1000 measurements and records up to 10 idle PC proposals.
218 There is a 10ms wait between each measurement.
219 (since version 0.2.6\-RC2)
220 .TP
221 .B vm show_idle_pc_prop <instance_name> <cpu_id>
222 Dump the idle PC proposals. (since version 0.2.6\-RC2)
223 .TP
224 .B vm set_idle_max <instance_name> <cpu_id> <idle_max>
225 Set CPU idle max value. (since version 0.2.6\-RC2)
226 .TP
227 .B vm set_idle_sleep_time <instance_name> <cpu_id> <idle_sleep_time>
228 Set CPU idle sleep time value. (since version 0.2.6\-RC2)
229 .TP
230 .B vm show_timer_drift <instance_name> <cpu_id>
231 Show info about potential timer drift.
232 (since version 0.2.6\-RC3)
233 .TP
234 .B vm set_ghost_file <instance_name> <ghost_ram_filename>
235 Set ghost RAM file. (since version 0.2.6\-RC3,
236 needs an extra bogus argument before version 0.2.6\-RC4)
237 .TP
238 .B vm set_ghost_status <instance_name> <ghost_status>"
239 Set ghost RAM status. (since version 0.2.6\-RC3,
240 needs an extra bogus argument before version 0.2.6\-RC4)
241 .TP
242 .B vm set_exec_area <instance_name> <area_size>
243 Set the exec area size. The exec area is a pool of host memory used to store
244 pages translated by the JIT (they contain the native code corresponding to MIPS
245 code pages).
246 .TP
247 .B vm set_disk0 <instance_name> <value>
248 Set size of PCMCIA ATA disk0.
249 .TP
250 .B vm set_disk1 <instance_name> <value>
251 Set size of PCMCIA ATA disk1.
252 .TP
253 .B vm set_conf_reg <instance_name> <value>
254 Set the config register value. The default is 0x2102.
255 .TP
256 .B vm set_con_tcp_port <instance_name> <tcp_port>
257 Set the TCP port to use for console. By default, no TCP port is chosen, meaning
258 that you cannot get access to the console.
259 .TP
260 .B vm set_aux_tcp_port <instance_name> <tcp_port>
261 Set the TCP port to use for AUX port. By default, no TCP port is chosen,
262 meaning that you cannot get access to the AUX port.
263 .TP
264 .B vm cpu_info <instance_name> <cpu_id>
265 Show info about the CPU identified by "cpu_id". The boot CPU (which is
266 typically the only CPU) has ID 0.
267 .TP
268 .B vm cpu_usage <instance_name> <cpu_id>
269 Show cpu usage of dynamips in seconds. (experimental)
270 .br
271 The instance must exist, "cpu_id" is ignored.
272 (since version 0.2.8\-RC5\-community)
273 .TP
274 .B vm send_con_msg <instance_name> <str> [<format>]
275 (since version 0.2.6\-RC3) Send a message on the console.
276 It only writes the bytes that fit in the console buffer.
277 .RS
278 .PP
279 (since version 0.2.14)
280 The optional argument <format> indicates the string format.
281 On success it will report "X byte(s) written".
282 .PP
283 String formats:
284 * plain - plain string (default, old behavior)
285 * base64 - base64 encoded string
286 .RE
287 .TP
288 .B vm send_aux_msg <instance_name> <str> [<format>]
289 (since version 0.2.6\-RC3) Send a message on the AUX port.
290 It only writes the bytes that fit in the aux buffer.
291 .RS
292 .PP
293 (since version 0.2.14)
294 The optional argument <format> indicates the string format.
295 On success it will report "X byte(s) written".
296 .PP
297 String formats:
298 * plain - plain string (default, old behavior)
299 * base64 - base64 encoded string
300 .RE
301 .TP
302 .B vm slot_bindings <instance_name>
303 Show slot bindings. (since version 0.2.8\-RC1)
304 .TP
305 .B vm slot_nio_bindings <instance_name> <slot_id>
306 Show NIO bindings for the specified slot. (since version 0.2.8\-RC1)
307 .TP
308 .B vm slot_add_binding <instance_name> <slot_id> <port_id> <dev_type>
309 Add a slot binding. (since version 0.2.8\-RC1)
310 .TP
311 .B vm slot_remove_binding <instance_name> <slot_id> <port_id>
312 Remove a slot binding . (since version 0.2.8\-RC1)
313 .TP
314 .B vm slot_add_nio_binding <instance_name> <slot_id> <port_id> <nio_name>
315 Add a NIO binding for a slot/port. (since version 0.2.8\-RC1)
316 .TP
317 .B vm slot_remove_nio_binding <instance_name> <slot_id> <port_id>
318 Remove a NIO binding for a slot/port. (since version 0.2.8\-RC1)
319 .TP
320 .B vm slot_enable_nio <instance_name> <slot_id> <port_id>
321 Enable NIO of the specified slot/port. (since version 0.2.8\-RC1)
322 .TP
323 .B vm slot_disable_nio <instance_name> <slot_id> <port_id>
324 Disable NIO of the specified slot/port. (since version 0.2.8\-RC1)
325 .TP
326 .B vm slot_oir_start <instance_name> <slot_id> <subslot_id>
327 OIR to start a slot/subslot. (since version 0.2.8\-RC3\-community)
328 .TP
329 .B vm slot_oir_stop <isntance_name> <slot_id> <subslot_id>
330 OIR to stop a slot/subslot. (since version 0.2.8\-RC3\-community)
331 .RE
332 .TP
333 .B Virtual Machine debugging module ("vm_debug")
334 .RS
335 .TP
336 Available since version 0.2.6\-RC1.
337 .TP
338 .B vm_debug show_cpu_regs <instance_name> <cpu_id>
339 Dump CPU registers to the console.
340 .TP
341 .B vm_debug show_cpu_mmu <instance_name> <cpu_id>
342 Dump CPU MMU info to the console. (since version 0.2.7\-RC1)
343 .TP
344 .B vm_debug set_cpu_reg <instance_name> <cpu_id> <reg_id> <value>
345 Set the value of a CPU register.
346 .TP
347 .B vm_debug add_cpu_breakpoint <instance_name> <cpu_id> <address>
348 Add a breakpoint.
349 .TP
350 .B vm_debug remove_cpu_breakpoint <instance_name> <cpu_id> <address>
351 Remove a breakpoint.
352 .TP
353 .B vm_debug pmem_w32 <instance_name> <cpu_id> <address> <value>
354 Write a 32\-bit memory word to physical memory.
355 .TP
356 .B vm_debug pmem_r32 <instance_name> <cpu_id> <address>
357 Read a 32\-bit memory word from physical memory.
358 .TP
359 .B vm_debug pmem_w16 <instance_name> <cpu_id> <address> <value>
360 Write a 16\-bit memory word to physical memory.
361 .TP
362 .B vm_debug pmem_r16 <instance_name> <cpu_id> <address>
363 Read a 16\-bit memory word from physical memory.
364 .TP
365 .B vm_debug pmem_cfind <instance_name> <cpu_id> <bytes> [<first> [<last>]]
366 Find a sequence of bytes in physical memory interval [first,last].
367 The byte sequence is composed of hexadecimal characters and must have a length
368 multiple of 2. The interval defaults to the complete memory space.
369 Only the memory of cacheable devices (ram, rom, disks, ...) is searched.
370 (since version 0.2.12)
371 .RE
372 .TP
373 .B Virtual Cisco 7200 instances module ("c7200")
374 .RS
375 .TP
376 .B c7200 list
377 List all existing Cisco 7200 instances.
378 .TP
379 .B c7200 set_npe <instance_name> <npe_name>
380 Set the NPE model. For example: npe\(hy100, npe\(hy400, ... The default is
381 "npe\(hy400".
382 .TP
383 .B c7200 set_midplane <instance_name> <midplane_name>
384 Set the midplane model, it can be either "std" or "vxr". The default is "vxr".
385 .TP
386 .B c7200 get_mac_addr <instance_name>
387 Get the base MAC address of the router. By default, the address is
388 automatically generated with this pattern : ca<instance_id>.<process_pid>.0000
389 (Cisco format). (since version 0.2.11)
390 .TP
391 .B c7200 set_mac_addr <instance_name> <mac_addr>
392 Set the base MAC address of the router. The MAC address patern can be the Cisco
393 format (e.g. ca01.1234.0000) or the standard format (e.g. ca:01:12:34:00:00).
394 .TP
395 .B c7200 set_system_id <instance_name> <system_id>
396 Set the system id. (since version 0.2.8\-RC3\-community)
397 .TP
398 .B c7200 set_temp_sensor <instance_name> <sensor_id> <temperature>
399 Set temperature for a DS1620 sensor.
400 This can be used to simulate environmental problems like overheat.
401 (since version 0.2.8\-RC3\-community)
402 .TP
403 .B c7200 set_power_supply <instance_name> <power_supply_id> <0|1>
404 Set power supply status.
405 This can be used to simulate environmental problems like power loss.
406 (since version 0.2.8\-RC3\-community)
407 .TP
408 .B c7200 show_hardware <instance_name>
409 Display virtual hardware info about the instance.
410 .RE
411 .TP
412 .B Virtual Cisco 3745 instances module ("c3745")
413 .RS
414 .TP
415 .B c3745 list
416 List all existing Cisco 3745 instances.
417 .TP
418 .B c3745 set_iomem <instance_name> <size>
419 Set the I/O mem size.
420 .TP
421 .B c3745 get_mac_addr <instance_name>
422 Get the base MAC address of the router. By default, the address is
423 automatically generated with this pattern : c4<instance_id>.<process_pid>.0000
424 (Cisco format). (since version 0.2.11)
425 .TP
426 .B c3745 set_mac_addr <instance_name> <mac_addr>
427 Set the base MAC address of the router. The MAC address patern can be the Cisco
428 format (e.g. c401.1234.0000) or the standard format (e.g. c4:01:12:34:00:00).
429 .TP
430 .B c3745 set_system_id <instance_name> <system_id>
431 Set the system id. (since version 0.2.8\-RC3\-community)
432 .TP
433 .B c3745 show_hardware <instance_name>
434 Display virtual hardware info about the instance.
435 .RE
436 .TP
437 .B Virtual Cisco 3725 instances module ("c3725")
438 .RS
439 .TP
440 .B c3725 list
441 List all existing Cisco 3725 instances.
442 .TP
443 .B c3725 set_iomem <instance_name> <size>
444 Set the I/O mem size.
445 .TP
446 .B c3725 get_mac_addr <instance_name>
447 Get the base MAC address of the router. By default, the address is
448 automatically generated with this pattern : c2<instance_id>.<process_pid>.0000
449 (Cisco format). (since version 0.2.11)
450 .TP
451 .B c3725 set_mac_addr <instance_name> <mac_addr>
452 Set the base MAC address of the router. The MAC address patern can be the Cisco
453 format (e.g. c201.1234.0000) or the standard format (e.g. c2:01:12:34:00:00).
454 .TP
455 .B c3725 set_system_id <instance_name> <system_id>
456 Set the system id. (since version 0.2.8\-RC3\-community)
457 .TP
458 .B c3725 show_hardware <instance_name>
459 Display virtual hardware info about the instance.
460 .RE
461 .TP
462 .B Virtual Cisco 3600 instances module ("c3600")
463 .RS
464 .TP
465 .B c3600 list
466 List all existing Cisco 3600 instances.
467 .TP
468 .B c3600 set_chassis <instance_name> <chassis_name>
469 Set the chassis model. Possible values: 3620, 3640, 3660. The default is
470 "3640".
471 .TP
472 .B c3600 set_iomem <instance_name> <size>
473 Set the I/O mem size.
474 .TP
475 .B c3600 get_mac_addr <instance_name>
476 Get the base MAC address of the router. By default, the address is
477 automatically generated with this pattern : cc<instance_id>.<process_pid>.0000
478 (Cisco format). (since version 0.2.11)
479 .TP
480 .B c3600 set_mac_addr <instance_name> <mac_addr>
481 Set the base MAC address of the router. The MAC address patern can be the Cisco
482 format (e.g. cc01.1234.0000) or the standard format (e.g. cc:01:12:34:00:00).
483 .TP
484 .B c3600 set_system_id <instance_name> <system_id>
485 Set the system id. (since version 0.2.8\-RC3\-community)
486 .TP
487 .B c3600 show_hardware <instance_name>
488 Display virtual hardware info about the instance.
489 .RE
490 .TP
491 .B Virtual Cisco 2691 instances module ("c2691")
492 .RS
493 .TP
494 .B c2691 list
495 List all existing Cisco 2691 instances.
496 .TP
497 .B c2691 set_iomem <instance_name> <size>
498 Set the I/O mem size.
499 .TP
500 .B c2691 get_mac_addr <instance_name>
501 Get the base MAC address of the router. By default, the address is
502 automatically generated with this pattern : c0<instance_id>.<process_pid>.0000
503 (Cisco format). (since version 0.2.11)
504 .TP
505 .B c2691 set_mac_addr <instance_name> <mac_addr>
506 Set the base MAC address of the router. The MAC address patern can be the Cisco
507 format (e.g. c001.1234.0000) or the standard format (e.g. c0:01:12:34:00:00).
508 .TP
509 .B c2691 set_system_id <instance_name> <system_id>
510 Set the system id. (since version 0.2.11)
511 .TP
512 .B c2691 show_hardware <instance_name>
513 Display virtual hardware info about the instance.
514 .RE
515 .TP
516 .B Virtual Cisco 2600 instances module ("c2600")
517 .RS
518 .TP
519 Available since version 0.2.7\-RC1.
520 .TP
521 .B c2600 list
522 List all existing Cisco 2600 instances.
523 .TP
524 .B c2600 set_chassis <instance_name> <chassis_name>
525 Set the chassis model. Possible values: 2610, 2611, 2620, 2621,
526 2610XM, 2611XM, 2620XM, 2621XM, 2650XM, 2651XM. The default is "2610".
527 .TP
528 .B c2600 set_iomem <instance_name> <size>
529 Set the I/O mem size.
530 .TP
531 .B c2600 get_mac_addr <instance_name>
532 Get the base MAC address of the router. By default, the address is
533 automatically generated with this pattern : c8<instance_id>.<process_pid>.0000
534 (Cisco format). (since version 0.2.11)
535 .TP
536 .B c2600 set_mac_addr <instance_name> <mac_addr>
537 Set the base MAC address of the router. The MAC address patern can be the Cisco
538 format (e.g. c801.1234.0000) or the standard format (e.g. c8:01:12:34:00:00).
539 .TP
540 .B c2600 set_system_id <instance_name> <system_id>
541 Set the system id. (since version 0.2.8\-RC3\-community)
542 .TP
543 .B c2600 show_hardware <instance_name>
544 Display virtual hardware info about the instance.
545 .RE
546 .TP
547 .B Virtual Cisco 1700 instances module ("c1700")
548 .RS
549 .TP
550 Available since version 0.2.8\-RC1.
551 .TP
552 .B c1700 list
553 List all existing Cisco 1700 instances.
554 .TP
555 .B c1700 set_chassis <instance_name> <chassis_name>
556 Set the chassis model. Possible values: 1710, 1720, 1721, 1750,
557 1751, 1760. The default is "1720".
558 .TP
559 .B c1700 set_iomem <instance_name> <size>
560 Set the I/O mem size.
561 .TP
562 .B c1700 get_mac_addr <instance_name>
563 Get the base MAC address of the router. By default, the address is
564 automatically generated with this pattern : d0<instance_id>.<process_pid>.0000
565 (Cisco format). (since version 0.2.11)
566 .TP
567 .B c1700 set_mac_addr <instance_name> <mac_addr>
568 Set the base MAC address of the router. The MAC address patern can be the Cisco
569 format (e.g. d001.1234.0000) or the standard format (e.g. d0:01:12:34:00:00).
570 .TP
571 .B c1700 set_system_id <instance_name> <system_id>
572 Set the system id. (since version 0.2.8\-RC3\-community)
573 .TP
574 .B c1700 show_hardware <instance_name>
575 Display virtual hardware info about the instance.
576 .RE
577 .TP
578 .B Network Input/Output (NIO) module ("nio")
579 .RS
580 .TP
581 .B nio list
582 List all exiting NIOs.
583 .TP
584 .B nio create_udp <nio_name> <local_port> <remote_host> <remote_port>
585 Create an UDP NIO with the specified parameters.
586 .TP
587 .B nio create_udp_auto <nio_name> <local_addr> <local_port_start> <local_port_end>
588 Create an auto UDP NIO.
589 (since version 0.2.8\-RC3\-community)
590 .TP
591 .B nio connect_udp_auto <nio_name> <remote_host> <remote_port>
592 Connect an UDP Auto NIO to a remote host/port.
593 (since version 0.2.8\-RC3\-community)
594 .TP
595 .B nio create_unix <nio_name> <local_file> <remote_file>
596 Create an UNIX NIO with the specified parameters.
597 .TP
598 .B nio create_vde <nio_name> <control_file> <local_file>
599 Create a VDE NIO with the specified parameters. VDE stands for "Virtual
600 Distributed Ethernet" and is compatible with UML (User\(hyMode\(hyLinux) switch.
601 .TP
602 .B nio create_tap <nio_name> <tap_device>
603 Create a TAP NIO. TAP devices are supported only on Linux and FreeBSD and
604 require root access.
605 .TP
606 .B nio create_gen_eth <nio_name> <eth_device>
607 Create a generic ethernet NIO, using PCAP (0.9.4 and greater). It requires root
608 access. Available if compiled with GEN_ETH.
609 .TP
610 .B nio create_linux_eth <nio_name> <eth_device>
611 Create a Linux ethernet NIO. It requires root access and is supported only on
612 Linux platforms. Available if compiled with LINUX_ETH.
613 .TP
614 .B nio create_null <nio_name>
615 Create a Null NIO.
616 .TP
617 .B nio create_fifo <nio_name>
618 Create a Null NIO.
619 .TP
620 .B nio crossconnect_fifo <nio_name> <nio_name>
621 Establish a cross-connect between 2 FIFO NIO.
622 .TP
623 .B nio rename <nio_name> <new_name>
624 Rename a NIO.
625 (since version 0.2.11)
626 .TP
627 .B nio delete <nio_name>
628 Delete the specified NIO. The NIO can be deleted only when it is not anymore in
629 use by another object.
630 .TP
631 .B nio set_debug <nio_name> <debug>
632 Enable/Disable debugging for the specified NIO. When debugging is enabled,
633 received and emitted packets are displayed at screen. It is mainly used to
634 debug interface drivers.
635 .TP
636 .B nio bind_filter <nio_name> <direction> <filter_name>
637 Bind a packet filter.
638 Direction is 0 for receiving, 1 for sending, 2 for both.
639 Filter
640 .B "freq_drop"
641 drops packets. Filter
642 .B "capture"
643 captures packets and is only available if compiled with GEN_ETH.
644 .TP
645 .B nio unbind_filter <nio_name> <direction>
646 Unbind a packet filter.
647 .TP
648 .B nio setup_filter <nio_name> <direction> [<a3> [...<a10>]]
649 Setup a packet filter for a given NIO.
650 The arguments are passed on to the setup function of the filter.
651 Filter
652 .B "freq_drop"
653 has 1 argument
654 .B "<frequency>"
655 \[char46] It will drop everything with a \-1 frequency, drop every
656 Nth packet with a positive frequency, or drop nothing.
657 Filter
658 .B "capture"
659 has 2 arguments
660 .B "<link_type_name> <output_file>"
661 \[char46] It will capture packets to the target output file. The
662 link type name is a case\(hyinsensitive DLT_ name from the pcap library
663 constants with the DLT_ part removed.
664 .TP
665 .B nio get_stats <nio_name>
666 Get statistics of a NIO.
667 (since version 0.2.8\-RC3\-community)
668 .TP
669 .B nio reset_stats <nio_name>
670 Reset statistics of a NIO.
671 (since version 0.2.8\-RC3\-community)
672 .TP
673 .B nio set_bandwidth <nio_name> <bandwidth>
674 Set bandwidth constraint.
675 (since version 0.2.8\-RC3\-community)
676 .RE
677 .TP
678 .B NIO bridge module ("nio_bridge")
679 .RS
680 .TP
681 .B nio_bridge list
682 List all NIO bridges.
683 .TP
684 .B nio_bridge create <bridge_name>
685 Create a NIO bridge. A NIO bridge acts as a shared media (a kind of hub).
686 .TP
687 .B nio_bridge rename <bridge_name> <new_name>
688 Rename a NIO bridge.
689 (since version 0.2.11)
690 .TP
691 .B nio_bridge delete <bridge_name>
692 Delete a NIO bridge.
693 .TP
694 .B nio_bridge add_nio <bridge_name> <nio_name>
695 Add a NIO as new port in a NIO bridge. The NIO must be created through the
696 "nio" module.
697 .TP
698 .B nio_bridge remove_nio <bridge_name> <nio_name>
699 Remove the specified NIO as member of the NIO bridge.
700 .RE
701 .TP
702 .B Virtual Ethernet switch module ("ethsw")
703 .RS
704 .TP
705 .B ethsw list
706 List all Ethernet switches.
707 .TP
708 .B ethsw create <switch_name>
709 Create a new Ethernet switch.
710 .TP
711 .B ethsw rename <switch_name> <new_name>
712 Rename an Ethernet switch.
713 (since version 0.2.11)
714 .TP
715 .B ethsw delete <switch_name>
716 Delete the specified Ethernet switch.
717 .TP
718 .B ethsw add_nio <switch_name> <nio_name>
719 Add a NIO as new port in an Ethernet switch. The NIO must be created through
720 the "nio" module.
721 .TP
722 .B ethsw remove_nio <switch_name> <nio_name>
723 Remove the specified NIO as member of the Ethernet switch.
724 .TP
725 .B ethsw set_access_port <switch_name> <nio_name> <vlan_id>
726 Set the specified port as an ACCESS port in VLAN <vlan_id>.
727 .TP
728 .B ethsw set_dot1q_port <switch_name> <nio_name> <native_vlan>
729 Set the specified port as a 802.1Q trunk port, with native VLAN <native_vlan>.
730 .TP
731 .B ethsw set_qinq_port <switch_name> <nio_name> <outer_vlan>
732 Set the specified port as a trunk (QinQ) port.
733 (since version 0.2.3\-RC3\-community)
734 .TP
735 .B ethsw clear_mac_addr_table <switch_name>
736 Clear the MAC address table.
737 .TP
738 .B ethsw show_mac_addr_table <switch_name>
739 Show the MAC address table (output format: Ethernet address, VLAN, NIO)
740 .RE
741 .TP
742 .B Virtual ATM switch module ("atmsw")
743 .RS
744 .TP
745 .B atmsw list
746 List all ATM switches.
747 .TP
748 .B atmsw create <switch_name>
749 Create a new ATM switch.
750 .TP
751 .B atmsw rename <switch_name> <new_name>
752 Rename an ATM switch.
753 (since version 0.2.11)
754 .TP
755 .B atmsw delete <switch_name>
756 Delete the specified ATM switch.
757 .TP
758 .B atmsw create_vpc <switch_name> <input_nio> <input_vpi> <output_nio> <output_vpi>
759 Create a new Virtual Path connection (unidirectional).
760 .TP
761 .B atmsw delete_vpc <switch_name> <input_nio> <input_vpi> <output_nio> <output_vpi>
762 Delete a Virtual Path connection (unidirectional).
763 .TP
764 .B atmsw create_vcc <switch_name> <input_nio> <input_vpi> <input_vci> <output_nio> <output_vpi> <output_vci>
765 Create a new Virtual Channel connection (unidirectional).
766 .TP
767 .B atmsw delete_vcc <switch_name> <input_nio> <input_vpi> <input_vci> <output_nio> <output_vpi> <output_vci>
768 Delete a Virtual Channel connection (unidirectional).
769 .RE
770 .TP
771 .B Virtual ATM bridge module ("atm_bridge")
772 .RS
773 .TP
774 Available since version 0.2.8\-RC2.
775 .TP
776 .B atm_bridge list
777 List all ATM bridges.
778 .TP
779 .B atm_bridge create <bridge_name>
780 Create a new ATM bridge.
781 .TP
782 .B atm_bridge rename <bridge_name> <new_name>
783 Rename an ATM bridge.
784 (since version 0.2.11)
785 .TP
786 .B atm_bridge delete <bridge_name>
787 Delete an ATM bridge.
788 .TP
789 .B atm_bridge configure <bridge_name> <eth_nio> <atm_nio> <vpi> <vci>
790 Configure an ATM bridge.
791 .TP
792 .B atm_bridge unconfigure <bridge_name>
793 Unconfigure an ATM bridge.
794 .RE
795 .TP
796 .B Virtual Frame\(hyRelay switch module ("frsw")
797 .RS
798 .TP
799 .B frsw list
800 List all Frame\(hyRelay switches.
801 .TP
802 .B frsw create <switch_name>
803 Create a new Frame\(hyRelay switch.
804 .TP
805 .B frsw rename <switch_name> <new_name>
806 Rename a Frame-Relay switch.
807 (since version 0.2.11)
808 .TP
809 .B frsw delete <switch_name>
810 Delete the specified Frame\(hyRelay switch.
811 frsw create_vc <switch_name> <input_nio> <input_dlci> <output_nio> <output_dlci>
812 Create a new Virtual Circuit connection (unidirectional).
813 .TP
814 .B frsw delete_vc <switch_name> <input_nio> <input_dlci> <output_nio> <output_dlci>
815 Delete a Virtual Circuit connection (unidirectional).
816 .RE
817 .TP
818 .B Object store module ("object_store")
819 .RS
820 .TP
821 Available since version 0.2.8\-RC2.
822 .TP
823 .B object_store write <object_name> <data>
824 Write an object, data provided in base64 encoding.
825 .TP
826 .B object_store read <object_name>
827 Read an object and return data in base64 encoding.
828 .TP
829 .B object_store rename <object_name> <new_name>
830 Rename an object.
831 (since version 0.2.11)
832 .TP
833 .B object_store delete <object_name>
834 Delete an object from the store.
835 .TP
836 .B object_store delete_all
837 Delete all objects from the store
838 .TP
839 .B object_store list
840 Object list.
841 .RE
842 .SH REPORTING BUGS
843 .br
844 Please send bug reports to
845 .UR https://github.com/GNS3/dynamips/issues
846 .UE
847 .SH SEE ALSO
848 .br
849 \fBdynamips\fP(1), \fBnvram_export\fP(1), \fBdynagen\fP(1), \fBdynagui\fP(1)
850 .br
851 .UR http://www.gns3.net/dynamips/
852 .UE
853 .br
854 .UR http://forum.gns3.net/
855 .UE
856 .br
857 .UR https://github.com/GNS3/dynamips
858 .UE
859 .br
860 .SH OLD WEBSITES
861 .UR http://www.ipflow.utc.fr/index.php/
862 .UE
863 .br
864 .UR http://www.ipflow.utc.fr/blog/
865 .UE
866 .br
867 .UR http://hacki.at/7200emu/index.php
868 .UE
869 .SH AUTHOR
870 \fBdynamips\fP is being maintained by Flávio J. Saraiva
871 <[email protected]>. This manual page was initially written by
872 Erik Wenzel <[email protected]> for the Debian GNU/Linux system.
873