cisco-system-traffic-generator / trex-core

trex-core site
https://trex-tgn.cisco.com/
Other
1.29k stars 461 forks source link

Executing the t-rex-64 command failed #1062

Open lizzmosquito opened 12 months ago

lizzmosquito commented 12 months ago

1、environment ubuntu 18.04 Linux SixWind 4.15.18-041518-generic #201804190330 SMP Thu Apr 19 07:34:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

2、First failure root:/home/trex-core-master/scripts# sudo ./t-rex-64 -i Starting Scapy server...... Scapy server is started Trying to bind to vfio-pci ... Trying to bind to try_bind_to_uio_pci_generic ... /usr/bin/python3 dpdk_nic_bind.py --bind=uio_pci_generic 0000:00:04.0 The ports are bound/configured. ./t-rex-64: line 104: ./_t-rex-64-o: No such file or directory Killing Scapy server... Scapy server is killed

solution: Modify t-rex-64 file ,Change _t-rex-64-o to t-rex-64-o

birdpreparation if grep -q $FLAG /proc/cpuinfo ; then ./$(basename $0) $INPUT_ARGS $EXTRA_INPUT_ARGS RESULT=$? if [ $RESULT -eq 132 ]; then echo " WARNING this program is optimized for the new Intel processors. " echo " try the ./t-rex-64-o application that should work for any Intel processor but might be slower. " echo " try to run t-rex-64-o .. " ./t-rex-64-o $INPUT_ARGS $EXTRA_INPUT_ARGS RESULT=$? fi else ./t-rex-64-o $INPUT_ARGS $EXTRA_INPUT_ARGS RESULT=$? fi

exit $RESULT

3、Second failure root:/home/trex-core-master/scripts# sudo ./t-rex-64 -i Starting Scapy server...... Scapy server is started The ports are bound/configured. Killing Scapy server... Scapy server is killed Starting Scapy server...... Scapy server is started The ports are bound/configured. Killing Scapy server... Scapy server is killed Starting Scapy server...... Scapy server is started The ports are bound/configured. Killing Scapy server... Scapy server is killed Starting Scapy server...... Scapy server is started The ports are bound/configured. Killing Scapy server... Scapy server is killed

How to solve this problem ?

hhaim commented 11 months ago

@lizzmosquito are you using a package or complied it yourself?