Am Dienstag, 14. März 2006 18:08 schrieb Timothy A. Holmes: > Hans -- Thank you, I realize that I can make it blink with network > traffic, the problem is that basically all the ports on the switches > have traffic running constantly on them, so I need to find a way to make > it distinctive enough so it can be picked out from the rest of the > noise.
Save the following script as floodping.sh, and try it, you should be able to notice the traffic from your regular traffic: #!/bin/sh ifconfig $1 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255 while true do ping -f -w $2 -b 10.0.0.255 sleep $2 done ./floodping.sh eth0 5 would mean that it does five seconds of intensive traffic (which has packets going to the switch in the order of <20ms or so, depending on your laptop, and the lamp should blink very frequently), then does five seconds of data sleep, which should be almost completely quiet on the switch (except for that occasional broadcast packet from another computer directed at yours). Be sure to use a network that isn't on your local net for testing, as my network is 192.*, I've used 10.* in the example. If you use a network that's regularily used on your network, you might get problems discerning the sleep phase, as the arp address of your laptop propagates to all other endpoints on your net due to the use of a regular network, and this might mean a lot of ARP queries, depending on your network size. I've used a technique like this to check the cabling in a building, and it worked just fine. HTH! -- --- Heiko. -- gentoo-user@gentoo.org mailing list