Troubleshooting

A server's eth0 link is up, but file transfers are very slow. ethtool eth0 reports Speed: 100Mb/s, Duplex: Full and Auto-negotiation: off, and ip -s link shows rising error and carrier counts. The switch port is set to auto-negotiate, and both ends support 1 Gb/s. What is the BEST fix?

Show the answer

Correct answerA. Re-enable auto-negotiation with ethtool -s eth0 autoneg on

A forced speed and duplex on the NIC against an auto-negotiating switch port causes a duplex mismatch, which produces errors and poor throughput. Enabling auto-negotiation on the NIC lets both ends agree on 1 Gb/s full duplex. Changing MTU or queue length does not touch the negotiation fault.