TCPReplay - Time Interval between loops

916 Views Asked by At

tcpreplay -i eth1 --pktlen -p3200 -l10 Sample.pcap

Above it the command I am using, I need to replay packets at good speeds, but I also need it to take a break of about 20 seconds before next round

1

There are 1 best solutions below

0
On BEST ANSWER

simple little shell script:

#!/bin/bash
i=0
while [ $i -lt 10 ]; do
    tcpreplay -i eth1 --pktlen -p 3200 Sample.pcap
    i=$(($i + 1))
    sleep 20
done