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

Re: resetting /proc/net/dev && ifconfig shows lots of dropped and errors



On Feb 9, 2006, at 9:34 AM, Dan MacNeil wrote:

Do the errors and drops seem high?
errors/transmitted is 84%  !??!!

Absolutely. The first thing I would check is whether your connection is negotiated properly. For example, if one side is full-duplex and the other is half, you would see this kind of behaviour.

We haven't noticed any application errors on this machine (dedicated to mailman)

Does your throughput seem throttled?

...short of rebooting is there a way to reset /proc/net/dev ?

If your ethernet driver is loaded as a module, unloading it and reloading it will zero the counters. Also (at least for the e1000 driver) this causes the connection to be renegotiated. Also, a useful tool for the sysadmin belt is "ethtool". It let's you modify your nic settings.

If you want to reload your ethernet module via ssh, you can use a script like this:

/etc/init.d/networking stop
sleep 1
rmmod <modulename>
sleep 1
modprobe <modulename>
sleep 1
/etc/init.d/networking start

Run it, and three seconds later your network is available again and your counters will be zeroed. The sleeps probably aren't necessary, but it makes me more comfortable.

"carrier" means what?

Not sure. If someone knows, shout it out.

Good luck! Hopefully it's not a hardware problem.

.:. jeremy



Reply to: