The interactive mode is an advanced multi-threaded configuration mode with its own command line interface (CLI). This mode allows you to create an arbitrary
number of packet types and streams in parallel, each with different parameters. The interactive mode utilizes a completely redesigned and more flexible proto‐
col framework called MOPS (Mausezahn's Own Packet System). The look and feel of the CLI is very similar to the Cisco IOS(tm) command line. You can start the
interactive mode by executing Mausezahn with the -x argument (an optional port number may follow, otherwise it is 25542). Then use Telnet to connect to this
Mausezahn instance (the default login expects the user 'mz' with password 'mz', and enable password 'mops'; you can change this in /etc/mausezahn/mz.cfg).
More information about the interactive mode and MOPS is provided on the Mausezahn website.
OPTIONS
Mausezahn provides a built-in context-specific help. Simply append the keyword help to the configuration options.
mz最重要的选项如下:
-v 详细模式. -V更详细
-S 模拟模式,不往线路上放任何东西, 常和-v一起使用
-q 安静模式(只输出警告和错误)
-c
指定包发送次数,默认为1,0表示无线次
-d
指定发包间隔。delay的值默认为微妙,也可指定毫秒(如100m)和秒(如1s)
-p
将原始(raw)帧填充到指定长度(使用字节0)。注意,对于原始二层帧,指定的长度对应于帧的总长度;而对于高层包代表额外填充的字节。
-a
指定源MAC
-b
指定目的MAC
-A
指定源IP
-B
指定目的IP
-t
使用内建的包构造器创建指定类型的包,当前支持的包类型有arp, bpdu, ip, udp, tcp, rtp, and dns. There
is currently also a limited support for ICMP. Enter -t help to verify which packet builders your actual Mausezahn version supports. Also, for any par‐
ticular packet type, for example tcp enter mz -t tcp help to receive a context specific help.
-T
Make this Mausezahn instance the receiving station. Currently (version 0.30) only rtp is an option here and provides precise jitter measurements. For
this purpose start another Mausezahn instance on the sending station and the local receiving station will output jitter statistics. See mz -T rtp help
for a detailed help.
-Q <[CoS:]vlan> [, <[CoS:]vlan>, ...]
Specify 802.1Q VLAN tag and optional Class of Service. An arbitrary number of VLAN tags can be specified (that is you can simulate QinQ or even QinQin‐
QinQ...). Multiple tags must be separated via a comma or a period (e. g. "5:10,20,2:30"). VLAN tags are not supported for ARP and BPDU packets (in
which case you could specify the whole frame in hex using the raw layer 2 interface of Mausezahn).