Skip to main content
Version: 7.26

inject-pcap


tool/traffic-generator/inject-pcap​

Type: Command
Replays packets from a PCAP or PCAPNG file on an interface. PCAPNG is the format the sniffer tool saves captures in.

ArgumentTypeDescription
interfaceiface_enumInterface the captured packets are replayed on.
pcap-filefileName of a PCAP or PCAPNG file stored on the router.
speed-multipliernumReplay speed multiplier relative to the capture rate (1 replays in real time).
loopboolWhether the capture is replayed in a loop.
Read-only ArgumentTypeDescription
iterationnumCurrent replay iteration number (in loop mode).
tx-packetsnumPackets replayed so far.
tx-bytesnumBytes replayed so far.