I'am using a machine as a router, it works sort of fine, however if I do a ping -t whatever.server
it will always cause a 3-4% package loss, no matter what server. Looking at ifconfig
or netstat -i
show no errors what so ever, what are some of the tools I might use to analyse this error?
Using wireshark
tells me that it does a request but it gives no reply, so the errors seems to be on the incoming end.
Any idea or suggestions is very welcome, I am kind of lost here.
Thanks in advance,
UPDATE: It seems I get this reply from pinging a VM on the same machine also, I will try and replace the network cable to see if this resolves the issue. I will update this question when I have done the switch. Thanks for the help so far.
Anders
Impossible to say without knowing your setup. Does it happen when you ping the upstream network equipment? What if off of the network and just attached to another computer?
Have you tried replacing the network cable?
To get the beginnings of a starting point, try tracerouting to a remote point, then ping all intermediate hops.
If you find that going from hop N (with no ping loss) to hop N+1 ()with the same ping loss as to the remote end), there's a decent chance that's where the issue is. However, it is possible for intermediate hops to drop (or be slow to reply to) pings directed at themselves, without there being an actual issue.
It might be a sign of a funky cable of a NIC going bad. The easiest test would be to plug in another known to be good NIC (USB one would probably be the best if you cant have downtime) and ping that interface. Another test would be to look at routing, if there's a loop somewhere and every now and then a packet ends up going in circles until it runs out of TTL, that'd be another reason for packets to disappear.