[kwlug-disc] using "nc" to simulate a bunch of machines swapping packets?
Richard Weait
richard at weait.com
Fri Dec 26 22:07:07 EST 2008
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.
More information about the kwlug-disc
mailing list