Use the --pnat option:

http://tcpreplay.synfin.net/wiki/tcprewrite#ChangingNetworksviaPseudo-NATSourceDestinationIPMap

On a personal note, I very rarely give out complete answers on a
silver platter.  Instead, I try to help people learn and understand
which requires some effort on your part reading the docs and likely
trying things out yourself a few times.  If you can't figure it out,
tell me what you tried and I'll see if I can help you understand
better.

Regards,
Aaron

On Fri, Aug 3, 2012 at 9:43 AM, Ravi Chandran <ravi...@gmail.com> wrote:
> HI,
>
>       Original packet has the source/destination IP as : 192.168.42.149 /
> 230.20.20.10
>
> I want to tcprewrite with my current source/destination IP as :
> 10.4.192.168(host) / 192.168.101.134(mobile device)
>
> how to do this?
>
> i want to rewrite the IP information.
>
> Thanks in advance
>
> --Ravi


-- 
Aaron Turner
http://synfin.net/         Twitter: @synfinatic
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin
"carpe diem quam minimum credula postero"

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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