User Manual
TRex 65 / 113
v
16
,
v
17
Old MAC address format. New format is supported since version v2.09.
v
6
Stateless ZMQ RPC port number. Default value is good. If running two TRex instances on the same machine, each should
be given distinct number. Otherwise, can remove this line.
Note
If you use version earlier than 2.10, or choose to omit the “ip” and have mac based configuration, be aware that TRex will not
send any gratitues ARP and will not answer ARP requests. In this case, you must configure static ARP entries pointing to TRex
port on your DUT. For an example config, you can look here [trex_config].
To find out which interfaces (NIC ports) can be used, perform the following:
[bash]>>sudo ./dpdk_setup_ports.py --show
Network devices using DPDK-compatible driver
============================================
Network devices using kernel driver
===================================
0000:02:00.0 ’82545EM Gigabit Ethernet Controller’ if=eth2 drv=e1000 unused=igb_uio
*
←-
Active
*
#
v
1
0000:03:00.0 ’82599ES 10-Gigabit SFI/SFP+ Network Connection’ drv= unused=ixgb #
v
2
0000:03:00.1 ’82599ES 10-Gigabit SFI/SFP+ Network Connection’ drv= unused=ixgb
0000:13:00.0 ’82599ES 10-Gigabit SFI/SFP+ Network Connection’ drv= unused=ixgb
0000:13:00.1 ’82599ES 10-Gigabit SFI/SFP+ Network Connection’ drv= unused=ixgb
Other network devices
=====================
<none>
v
1
We see that 02:00.0 is active (our management port).
v
2
All other NIC ports (03:00.0, 03:00.1, 13:00.0, 13:00.1) can be used.
minimum configuration file is:
<none>
- port_limit : 4
version : 2
interfaces : ["03:00.0","03:00.1","13:00.1","13:00.0"]
6.2.2 Memory section configuration
The memory section is optional. It is used when there is a need to tune the amount of memory used by TRex packet manager.
Default values (from the TRex source code), are usually good for most users. Unless you have some unusual needs, you can
eliminate this section.
- port_limit : 2
version : 2
interfaces : ["03:00.0","03:00.1"]
memory :
v
1
mbuf_64 : 16380
v
2
mbuf_128 : 8190
mbuf_256 : 8190
mbuf_512 : 8190
mbuf_1024 : 8190
mbuf_2048 : 4096










