1 .. _test_environment_tg:
19 T-Rex installation is managed via Ansible role.
21 TG Startup Configuration
22 ~~~~~~~~~~~~~~~~~~~~~~~~
26 $ sudo -E -S sh -c 'cat << EOF > /etc/trex_cfg.yaml
30 interfaces: ["${pci1}","${pci2}"]
32 - dest_mac: [${dest_mac1}]
33 src_mac: [${src_mac1}]
34 - dest_mac: [${dest_mac2}]
35 src_mac: [${src_mac2}]
41 threads: [1, 2, 3, 4, 5, 6, 7, 8]
44 TG Startup Command (Stateless Mode)
45 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49 $ sudo -E -S sh -c "cd '${trex_install_dir}/scripts/' && \
50 nohup ./t-rex-64 -i --prefix $(hostname) --hdrh --no-scapy-server \
51 --mbuf-factor 32 > /tmp/trex.log 2>&1 &" > /dev/null
53 Also, Python client is now starting traffic with:
57 core_mask=STLClient.CORE_MASK_PIN
59 TG Startup Command (Stateful Mode)
60 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64 $ sudo -E -S sh -c "cd '${trex_install_dir}/scripts/' && \
65 nohup ./t-rex-64 -i --prefix $(hostname) --astf --hdrh --no-scapy-server \
66 --mbuf-factor 32 > /tmp/trex.log 2>&1 &" > /dev/null