How to solve network data corruption with Realtek cards

by Rudd-O published 2009/01/03 08:05:00 GMT+0, last modified 2013-06-26T03:24:21+00:00
Do you have a Realtek card driven by the r8169 driver, and you're experiencing SSH, SSL or rsync errors associated to the error message "Disconnected: Corrupted MAC on input"? Do you download large files only to find them corrupted? Here's the solution.
/usr/sbin/ethtool -K eth0 rx off

The card eventually fails to compute the correct receive checksums in the packets.  This turns the checksum offloading.  Put this command on your /etc/rc.local file if you want it to be applied every boot.

This works on at least Fedora 10, kernel 2.6.28.