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

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

Another tool:    mii-tool

[root@r3m3dy ~]# mii-tool
eth0: negotiated 100baseTx-FD, link ok

Sometimes the auto negotiation causes the problem.
Is the server connected to switch?
May be force the speed and duplex on both sides.


jeremy avnet wrote:

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: