You need to edit your pcap files before playing them using tcpreplay.

So for example in your pcap file there are few packets which you want to be
destined to a certain Host A's IP X.X.X.X.
You need to change the destination IP address of packets in your pcap file
and set it to IP address of Host A X.X.X.X along with that you need to
change the destination MAC address and set it to the either the MAC of next
switch or the MAC of Host A.

Make sure that you set proper Checksum at both Network and transport level.

Then play your file using tcpreplay the packets will reach to required
destination.



Regards,
Sandeep


On Thu, May 1, 2014 at 7:48 PM, Reham Mohamed <reham.fmoha...@gmail.com>wrote:

> Hello,
>
> I am using mininet to create an emulated topology which contains two
> switches, each one of them is connected to two hosts. I am trying to use
> tcpreplay to use a pcap file to generate flows from host 1 to host 2. How
> can this be done? how can i sent flows using pcap files from one host to
> another?
>
> Your help is highly appreciated,
>
> Thanks in advance,
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
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