Discover duplex mismatch interfaces in the network

duplex

What are the causes of duplex mismatch other than misconfiguration? (power outage? improper cabling? auto negotiation implementation bugs?)

Any thoughts on discovering duplex mismatch? NetMRI seems to use interface error rate. Is it sufficient to just poll all interface error rates on switches/servers? What if this feature is not available on a device?

Edit: Drivers can definitely cause problems with duplex. I have seen Broadcom NIC stuck in half-duplex on FreeBSD.

Best Answer

By far the most common issue would be misconfiguration. Some people still hold on to old beliefs that auto negotation does not work reliably.

If you have different vendors there can be issues but I don't see it very often. I would much rather rely on auto negotiation as my first solution and if that fails fall back to hard coding it.

It is quite common to see ports operating in 100/half because if one side has auto and other side has 100/full then the speed can be detected but the duplex must be assumed to be half because it can't be negotiated.

Your NMS should be able to detect this but you could do a script that logins and does:

sh int status | i half

And reports back all interfaces running in half duplex. This would only work for switches. For routers you would need something like:

sh interfaces | i Fast|Giga|half

Then you would need to parse it in some way. It's probably nicer to use SNMP though. Browsing Ciscos SNMP page SNMP Object Navigator indicates that you should be able to use OID 1.3.6.1.4.1.9.5.1.4.1.1.10 which is PortDuplex.

Related Topic