Aaron, Sorry it was a typo. After correcting that it created the cache file successfully. After that I am trying to do tcprewrite using below command.
tcprewrite --enet-dmac=00:21:1b:d2:dc:19,00:21:1b:d2:dc:1a --enet-smac=00:02:B3:AC:FA:ED,00:02:B3:AC:FA:EC --cachefile=http1.cache --infile=http_input.pcap --outfile=http_output.pcap Fatal Error: Unable to open input pcap file: http_input.pcap: No such file or directory [r...@tcpreplay-lnx tcpreplay-3.4.4]# But it was unsuccessful.with the above error. Do I need to create dummy i/p and o/p files before running the above command ? Sorry for the multiple questions, I am new to tcpreplay and I am trying to replay a capture file in bi-directional way. And I am trying the following commands to achieve that. Please review and let me know do I need any changes. tcpprep --cidr=171.71.0.0/16 --pcap=http.pcap --cachefile=http.cache tcprewrite --enet-dmac=00:21:1b:d2:dc:19,00:21:1b:d2:dc:1a --enet-smac=00:02:B3:AC:FA:ED,00:02:B3:AC:FA:EC --cachefile=http1.cache --infile=http_input.pcap --outfile=http_output.pcap tcpreplay --cachefile=http.cache --intf1=eth1 --intf2=eth2 http.pcap My setup is as below: Tcpreplay (port1) ----------- Router ------------ (port2) tcpreplay Thanks in advance Chinna M -----Original Message----- From: Aaron Turner [mailto:synfina...@gmail.com] Sent: Thursday, October 07, 2010 11:22 PM To: Main forum for tcpreplay Subject: Re: [Tcpreplay-users] Query On Thu, Oct 7, 2010 at 10:27 AM, Chinna Morampalle (cmorampa) <cmora...@cisco.com> wrote: > Hi Aaron, > Thanks for the reply. I tried by saving as a correct format. But still I am > seeing the error. Please advise... > > tcpprep --cidr=171.71.0.0/16 --pcap=http1.pcap -cachefile=http1.cache > ERROR: only one cidr option allowed > tcpprep (tcpprep) - Create a tcpreplay cache cache file from a pcap file. > USAGE: tcpprep [ -<flag> [<val>] | --<name>[{=| }<val>] ]... That's a different error. It's because you used -cachefile not --cachefile. --cidr and -c are the same option and it is parsing it as: "-c achefile" -- 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" ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ 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 ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ 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