[kwlug-disc] using "nc" to simulate a bunch of machines swapping packets?

Robert P. J. Day rpjday at crashcourse.ca
Sat Dec 27 06:05:29 EST 2008


On Fri, 26 Dec 2008, Richard Weait wrote:

> On Fri, 2008-12-26 at 12:43 -0500, Robert P. J. Day wrote:
> > On Fri, 26 Dec 2008, Chris Frey wrote:
> > > Machine 1:
> > > 	nc -l -p 2222 > /dev/null
> > >
> > > Machine 2:
> > >
> > > 	nc machine1 2222 < /dev/zero
> > >
> > > This works on localhost as well.
> >
> >   actually, there was a bit more to it as i wanted these simulated
> > systems to have unique IP addresses, but i think i solved that by
> > simply ifconfig'ing a bunch of eth0:[1-n] IP addresses, and
> > associating an invocation of nc with each of those.  now it really
> > appears that i have a number of independent IP-addressed systems
> > passing around packets.
>
> Sounds like that might be fun with some old wireshark logs to
> playback "real" packets.

  try that again ... what are you describing here?

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================



More information about the kwlug-disc_kwlug.org mailing list