2025-03-14 21:59:59 -06:00
|
|
|
# tcpreplay
|
|
|
|
|
|
|
|
|
|
> Replay network traffic stored in a `pcap` file.
|
|
|
|
|
> More information: <https://tcpreplay.appneta.com/>.
|
|
|
|
|
|
|
|
|
|
- List available network interfaces:
|
|
|
|
|
|
|
|
|
|
`tcpreplay --listnics`
|
|
|
|
|
|
|
|
|
|
- Replay traffic to interface:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`tcpreplay {{[-i|--intf1]}} {{eth0}} {{traffic.pcap}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Replay traffic to interface and `stdout`:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`tcpreplay {{[-i|--intf1]}} {{eth0}} {{[-v|--verbose]}} {{traffic.pcap}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Replay traffic to interface as fast as possible:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`tcpreplay {{[-i|--intf1]}} {{eth0}} {{[-t|--topspeed]}} {{traffic.pcap}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Replay traffic to interface at given Mbps:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`tcpreplay {{[-i|--intf1]}} {{eth0}} {{[-M|--mbps]}} {{10}} {{traffic.pcap}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Replay traffic to interface several times:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`tcpreplay {{[-i|--intf1]}} {{eth0}} {{[-l|--loop]}} {{num_times}} {{traffic.pcap}}`
|