[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to test Ethernet connection



Serena Cantor wrote:
I bought  a second-hand Ethernet card, how to test it?

I have 2 PCs, both have a Ethernet card, both running
Linux. Now I connect them with a line, how to test the
connection? Is there Linux command that send a message
thru eth0 interface to display on the other PC? Thanks!


'ping' is always a good tool to test connections between hosts.

$ ping -c 4 pc1
$ ping -c 4 pc2

Try it from both machines and if everythings is working you should see a reply message from the ping commands.

NB! if the machines are connected directly (without a router etc) you'll need a cross-over cable to get your setup to work.

-Øyvind



Reply to: