Hi,
you should rewrite your RAW IP first
The following would cause all traffic to have a destination host MAC address
(example 00:55:22:AF:C6:37) (the gateway MAC address if your destination is not
in the same network) and your source MAC address (example 00:44:66:FC:29:AF):
$ tcprewrite --enet-dmac=00:55:22:AF:C6:37 --enet-smac=00:44:66:FC:29:AF
--infile=input.pcap --outfile=output.pcap
then just relay the output file.
For more informations see http://tcpreplay.synfin.net/trac/wiki/tcprewrite
> Date: Tue, 1 Dec 2009 01:40:55 -0800
> From: [email protected]
> To: [email protected]
> Subject: [Tcpreplay-users] Help regarding sending raw IP pcap file to ethernet
>
> Hi,
>
> I now want to tcpreplay some raw IP on the DLT_EN10MB (Ethernet) . I
> dont know what changes I should make on the pcap file. It seems to me
> "Forcing Traffic Between Two Hosts" is enough.
>
> Do you have any ideas what else I should do. Currently, I can not
> successfully send the pcap file. The pcap file was from some high
> speed link. Even if I use a speed option, I can see from tcpdump that
> the tcpreplaying of flows is not successful.
>
> For my case, if I Forcing Traffic Between Two Hosts, how can I get the
> correct cache file?
>
> Thanks.
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Tcpreplay-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
_________________________________________________________________
A la recherche de bons plans pour une rentrée pas chère ? Bing ! Trouvez !
http://www.bing.com/search?q=bons+plans+rentr%C3%A9e&form=MVDE6------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support