[kwlug-disc] using "nc" to simulate a bunch of machines swapping packets?
cdfrey at foursquare.net
Fri Dec 26 12:38:43 EST 2008
On Fri, Dec 26, 2008 at 05:51:39AM -0500, Robert P. J. Day wrote:
> i'd like to simulate a small number of systems on an isolated
> network shipping packets around. can i use "nc" to emulate that sort
> of thing on a single host? has anyone done anything along those
> lines? thanks.
Not sure I understand the question, but something like this?
nc -l -p 2222 > /dev/null
nc machine1 2222 < /dev/zero
This works on localhost as well.
More information about the kwlug-disc_kwlug.org