Yes, you need to do that. I was just showing you an example of specifying the source / destination MAC addresses.
I suggest after rewriting you open the pcap in Wireshark and take a look at the packets to make sure it does what you expect and play around with different options and see what they do. Explore and try things out. On Sun, Sep 12, 2010 at 9:20 PM, Vikas Sharma <[email protected]> wrote: > Dear Aaron, > > we do not need to specify the DLT ? > > tcprewrite --dlt=enet --enet-dmac=00:55:22:AF:C6:37 > --enet-smac=00:44:66:FC:29:AF > --infile=input.pcap --outfile=output.pcap > > Pleae clarify > > Regards > > Vikas Sharma > > On Mon, Sep 13, 2010 at 2:38 AM, Aaron Turner <[email protected]> wrote: >> >> Per the documentation: >> http://tcpreplay.synfin.net/wiki/tcprewrite#RewritingLayer2 >> >> tcprewrite --enet-dmac=00:55:22:AF:C6:37 --enet-smac=00:44:66:FC:29:AF >> --infile=input.pcap --outfile=output.pcap >> >> You need to specify both source and destination MAC since Cisco HDLC >> has neither. >> >> On Sun, Sep 12, 2010 at 12:51 PM, Vikas Sharma <[email protected]> wrote: >> > Dear Aaron, >> > >> > Referring to your prompt response, please clarify. Which MAC addresses >> > (src >> > / dst) ? >> > >> > Can you please give me an example command ? >> > >> > Regards >> > Vikas >> > >> > On Sun, Sep 12, 2010 at 11:20 PM, Aaron Turner <[email protected]> >> > wrote: >> >> >> >> Actually, it's asking you for MAC addresses. Cisco HDLC does not have >> >> this information in the header and they are required for Ethernet. In >> >> your case, I recommend you just make them up- any valid MAC address >> >> will work. >> >> >> >> On Sun, Sep 12, 2010 at 4:58 AM, Vikas Sharma <[email protected]> wrote: >> >> > Dear Mr. Aaron Turner, >> >> > >> >> > >> >> > >> >> > My company is into security systems and had received a few CiscoHDLC >> >> > pcap >> >> > files (of 85 MBs each). >> >> > >> >> > >> >> > >> >> > Our software can only read only Ethernet packets and accordingly we >> >> > tried to >> >> > convert the CiscoHDLC pcap files into Ethernet (DLT) by using >> >> > >> >> > >> >> > >> >> > tcprewrite –dlt=enet --infile=input.pcap --outfile=output.pcap >> >> > >> >> > >> >> > >> >> > However the system (Ubuntu Lucid) asks for the source IP address and >> >> > we >> >> > are >> >> > not able to provide that since that is not known to us (these are >> >> > pcap >> >> > files >> >> > captured by an Endace DAG card on an OC3, STM line). >> >> > >> >> > >> >> > >> >> > Please suggest a way to convert CiscoHDLC pcap files into Ethernet >> >> > pcap >> >> > files. >> >> > >> >> > >> >> > >> >> > I have enclosed the protocol stack of the CiscoHDLC pcap file along >> >> > with >> >> > this email >> >> > >> >> > I await your response, >> >> > >> >> > >> >> > >> >> > Regards >> >> > >> >> > >> >> > >> >> > Vikas Sharma >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ >> >> > Start uncovering the many advantages of virtual appliances >> >> > and start using them to simplify application deployment and >> >> > accelerate your shift to cloud computing >> >> > http://p.sf.net/sfu/novell-sfdev2dev >> >> > >> >> > _______________________________________________ >> >> > Tcpreplay-users mailing list >> >> > [email protected] >> >> > https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >> >> > Support Information: http://tcpreplay.synfin.net/trac/wiki/Support >> >> > >> >> >> >> >> >> >> >> -- >> >> 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" >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Start uncovering the many advantages of virtual appliances >> >> and start using them to simplify application deployment and >> >> accelerate your shift to cloud computing >> >> http://p.sf.net/sfu/novell-sfdev2dev >> >> _______________________________________________ >> >> Tcpreplay-users mailing list >> >> [email protected] >> >> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >> >> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Start uncovering the many advantages of virtual appliances >> > and start using them to simplify application deployment and >> > accelerate your shift to cloud computing >> > http://p.sf.net/sfu/novell-sfdev2dev >> > >> > _______________________________________________ >> > Tcpreplay-users mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >> > Support Information: http://tcpreplay.synfin.net/trac/wiki/Support >> > >> >> >> >> -- >> 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" >> >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Tcpreplay-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing > http://p.sf.net/sfu/novell-sfdev2dev > > _______________________________________________ > Tcpreplay-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tcpreplay-users > Support Information: http://tcpreplay.synfin.net/trac/wiki/Support > -- 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" ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Tcpreplay-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
