User Manual
TRex 12 / 113
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
0000:02:00.0 ’82545EM Gigabit Ethernet Controller (Copper)’ if=eth2 drv=e1000 unused= ←-
igb_uio
*
Active
*
#
v
2
Other network devices
=====================
<none>
v
1
If you have not run any DPDK applications, the command output shows a list of interfaces bound to the kernel or not
bound at all.
v
2
The interface marked active is the one used by your ssh connection. Never put this interface into TRex config file.
Choose the ports to use and follow the instructions in the next section to create a configuration file.
3.1.2 Creating minimum configuration file
Default configuration file name: /etc/trex_cfg.yaml.
For a full list of YAML configuration file options, see YAML Configuration File [trex_config_yaml_config_file].
For many purposes, it is convenient to begin with a copy of the basic configuration file template, available in the cfg folder:
[bash]>cp cfg/simple_cfg.yaml /etc/trex_cfg.yaml
Next, edit the configuration file, adding the interface and IP address details.
Example:
<none>
- port_limit : 2
version : 2
#List of interfaces. Change according to your setup. Use ./dpdk_setup_ports.py -s to see ←-
available options.
interfaces : ["03:00.0", "03:00.1"] #
v
1
port_info : # Port IPs. Change according to your needs. In case of loopback, you can ←-
leave as is.
- ip : 1.1.1.1
default_gw : 2.2.2.2
- ip : 2.2.2.2
default_gw : 1.1.1.1
v
1
Edit this line to match the interfaces you are using. All NICs must have the same type - do not mix different NIC types in
one config file. For more info, see trex-201.
3.2 Script for creating config file
A script is available to automate the process of tailoring the basic configuration file to your needs. The script gets you started,
and then you can then edit the resulting configuration file directly for advanced options. For details, see YAML Configuration
File [trex_config_yaml_config_file].
There are two ways to run the script:
• Interactive mode: Script pormpts you for parameters.
• Command line mode: Provide all parameters using command line options.










