1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

tcpreplay: add page (#15286)

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Justin McKinney 2024-12-23 17:43:47 -05:00 committed by GitHub
parent 2a19d8db59
commit a7852618b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

28
pages/common/tcpreplay.md Normal file
View file

@ -0,0 +1,28 @@
# 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}}`