I have a USB->Ethernet card that may or may not be somehow broken. The problem is I don't really know how to test it. I have a normal Ethernet port as well, so I can hook a (already tested) cable from one to the other, but then what?
I could setup NAT on one interface and try to connect with the other, but that seems a bit excessive as well as possibilities for other problems. I want some way of just sending a raw Ethernet frame and seeing if the other side receives it.
I've looked at netcat
a bit, but it works on the TCP/UDP level, while it seems I need to work at the Ethernet frame level.
What would be the best way to test this USB->Ethernet adapter?
Best Answer
For starters you can use the tool
excerpt from man pageethtool
to run your NIC's self tests.Example
Looking at the statistics for the NIC may be useful too in terms of diagnosing your issue further.
Any of the statistics that have the string "error" in them should be zero. If they aren't then I would pursue what may have caused these.