On Fri, Nov 11, 2011 at 1:20 PM, John Lumby <johnlu...@hotmail.com> wrote: > > I *think* I know why no traffic is being received at the other end - > These are bootpc (dhcp) requests and I guess the server must be on the > same LAN or VLAN as the client? > Which it wasn't if I run the tcpreplay from the pseudo-client machine via > an un-tagged interface such as virbr0. > So I am wondering if I can make it use a VLAN-tagged interface instead, > and tag the interface on the server the same tag. > I am kind of hoping this should work since tcprewrite supports adding VLAN > tag into the e-header. > I tried it and addded VLAN id 172 with tcprewrite (ok), > set up a vlan-tagged interface virbr0.172 tagged with VLAN id 172 (also > ok), > then tried tcpreplay to virbr0.172 - but no luck. It says > Fatal Error: Invalid interface name/alias: virbr0.172 > In fact it won't even let me use the buddy virbr0 interface either - it > has disappeared from the listnics list. > > My question is, does tcpreplay support sending out on a VLAN-tagged > interface? > Or is there some other way I can make the client packets go to the server?
Basically, tcpreplay really only works with physical interfaces, not logical ones like vlan tagged interfaces. The reason being is that it writes the entire ethernet header and won't let the OS do things like add VLAN tags. You should be able to use tcprewrite to add the VLAN tag (sounds like you already did that) and then send it out the untagged physical interface. Anyways, I'm not that familiar with the virbr0 interface type, but if it doesn't show up under --listnics then libpcap can't open it for writing packets. If you're using Linux which defaults to the PF_PACKET API, that may not matter, but you'd just have to try to find out. Basically, I haven't tried tcpreplay under various VM solutions and I never know if things will change between versions, so I can't really say how successful you will be. I always strongly recommend not using VMWare/etc in general since it tends to screw up the clock (or at least how I use it in tcpreplay) anyways. -Aaron -- 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" ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ 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