2024-12-23 17:43:47 -05: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-04-22 06:20:48 +03:00
|
|
|
`tcpreplay {{[-i|--intf1]}} {{eth0}} {{traffic.pcap}}`
|
2024-12-23 17:43:47 -05:00
|
|
|
|
|
|
|
- Replay traffic to interface and `stdout`:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`tcpreplay {{[-i|--intf1]}} {{eth0}} {{[-v|--verbose]}} {{traffic.pcap}}`
|
2024-12-23 17:43:47 -05:00
|
|
|
|
|
|
|
- Replay traffic to interface as fast as possible:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`tcpreplay {{[-i|--intf1]}} {{eth0}} {{[-t|--topspeed]}} {{traffic.pcap}}`
|
2024-12-23 17:43:47 -05:00
|
|
|
|
|
|
|
- Replay traffic to interface at given Mbps:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`tcpreplay {{[-i|--intf1]}} {{eth0}} {{[-M|--mbps]}} {{10}} {{traffic.pcap}}`
|
2024-12-23 17:43:47 -05:00
|
|
|
|
|
|
|
- Replay traffic to interface several times:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`tcpreplay {{[-i|--intf1]}} {{eth0}} {{[-l|--loop]}} {{num_times}} {{traffic.pcap}}`
|