What Port am I plugged into??

Something that’s always handy to know is what switch port you’re plugged into. What’s even better is being able to find out without getting out of your chair.

If you’re on a nix based system with tcpdump then just turn the following:

tcpdump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2] == 0x2000'

On Windows you’ll need to grab WinDump and WinPCap from http://www.winpcap.org.

Once installed run

windump -D

To list the interfaces on your system. Then just run the same as above but with windump:

windump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2] == 0x2000'

Leave a Comment