Pretty common issue running Tcpreplay in Linux.  Basically the packets
are being sent "out" the network interface and onto the wire, so
they're never seen by the IP stack or your application, because for
that to happen they have to come "in" on the network interface.

Solution is to run Tcpreplay on a different box.

--
Aaron Turner
http://synfin.net/         Twitter: @synfinatic
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin


On Mon, Feb 3, 2014 at 9:59 PM, Pritesh Acharya
<priteshacha...@gmail.com> wrote:
>
> I'm using a Ubuntu 12.04 machine. I have a pcap file captured in my
> production server(Ubuntu 12.04) using the command
> sudo tcpdump -s 0 -w ener_midt_restart.pcap -i eth0 udp port 9001
>
> I rewrote the dump file so the the source and distination address(both ip
> and mac) are my local machine
> tcprewrite -C --dstipmap=0.0.0.0/0:192.168.2.77/32
> --srcipmap=0.0.0.0/0:192.168.2.77/32 --enet-dmac=6c:88:14:48:7a:ac
> --enet-smac=6c:88:14:48:7a:ac -i ener_midt_restart.pcap -o
> ener_midt_restart_pritesh.pcap
>
> I replayed the pcap file using
> sudo tcpreplay --intf1=eth0 ener_midt_restart_pritesh.pcap
>
> However I'm not able to capture the data in my daemon service application
> which received udp packets. I'm sure there is no problem with my
> application.
>
> All of this works in my friend's machine which is Mac OSX.
>
> what could be the problem here?

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to