probe a NIC

Apr 27, 2024
367
116
43
Portland, OR
www.gnetsys.net
This is one of my favorite pieces of code.
Use it to determine exactly what's on the other end of your NIC.

For enterprise gear, that might have 6+ NICs and be in a lights-out datacenter you've never been too, installed by the guy that doesn't work here anymore and never took notes about anything anyway ... well, sometimes you aren't sure where they are plugged in.

Code:
tcpdump -nn -vvv -i eno1 -s 1500 -c 1 'ether[20:2] == 0x2000'

That's it. Replace eno1 with the intended NIC. Give it about 60 seconds to run. Try it.