On 1/28/07, Nilesh Khambal <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I have a following network topology
>
>           eth3/tun0
>                           eth3
> [Linux]<------------------------->[Router]<-------------------->[Linux]
> Client side
>                  Server side
>
> Both client and server are on same host using different interfaces.
>
> The interface between Linux (client) and Router is ethernet, however a
> tunnel is established between router and linux. The tunnel software installs
> "tun0" interfaces with a IP when it connects to the router.
>
> Now, I have a capture file captured on server side. It has src ip of tun0
> and dest ip of server side ethernet ip address (eth3) with ethernet headers.
> Now I want to replay it on above topology. However, it seems I can not send
> packets over tun0. Layer 2 header problem may be
>
> Is there a way in tcpreplay, to just consider info upto Layer 3 and let the
> OS build the Layer 2 headers? Or build a tunnel interface specific header.?

Well you've hit the nail on the head with the problem- tcpreplay is
building the entire packet from the ethernet header up.  Tcpreplay
always bypasses the IP stack of the system, so it doesn't build the
necessary headers for the tunnel.

Unfortunately, tcpreplay/tcprewrite doesn't support any tunnel
encapsulation at this time.  The good news is that tcprewrite is
moving towards a plugin architecture so that we can start supporting
things like this in the future.

-- 
Aaron Turner
http://synfin.net/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users

Reply via email to