mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
29 lines
662 B
Markdown
29 lines
662 B
Markdown
![]() |
# 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:
|
||
|
|
||
|
`tcpreplay -i {{eth0}} {{traffic.pcap}}`
|
||
|
|
||
|
- Replay traffic to interface and `stdout`:
|
||
|
|
||
|
`tcpreplay -i {{eth0}} --verbose {{traffic.pcap}}`
|
||
|
|
||
|
- Replay traffic to interface as fast as possible:
|
||
|
|
||
|
`tcpreplay -i {{eth0}} --topspeed {{traffic.pcap}}`
|
||
|
|
||
|
- Replay traffic to interface at given Mbps:
|
||
|
|
||
|
`tcpreplay -i {{eth0}} -M {{10}} {{traffic.pcap}}`
|
||
|
|
||
|
- Replay traffic to interface several times:
|
||
|
|
||
|
`tcpreplay -i {{eth0}} --loop={{num_times}} {{traffic.pcap}}`
|