{"revision": {"id": "f3438781-2f95-11f1-a57b-e86a64d24d78", "node_id": "f342a2a0-2f95-11f1-a11d-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Realtek NIC driver r8169 dropping packets on linux ubuntu and fedora\r\n=========================================================================\r\n\r\nMany motherboards nowadays have integrated gigabit ethernet that use the Realtek NIC chipset.\r\n\r\nThe Realtek r8168B network card does not work out of the box in Redhat, Centos, Fedora, or Ubuntu: instead of loading the r8168 driver, modprobe loads the r8169 driver, which is broken as can be seen with ifconfig which shows large amounts of dropped packets.\r\n\r\nOne solution found by `Barry Mavin <http://www.recital.com/>`_ is to remove the r8169 driver and install the latest r8168 driver.\r\n\r\nSteps to install Realtec r8168 driver\r\n-------------------------------------------\r\n\r\n* Download the R8168B linux driver: \r\n\r\n  .. code-block:: bash\r\n    \r\n    wget http://www.foxhop.net/attachment/r8168-8.023.00.tar.bz2\r\n    tar vjxf r8168-8.023.00.tar.bz2\r\n\r\n* Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed:\r\n\r\n  .. code-block:: bash\r\n\r\n     lsmod | grep r8169\r\n\r\n* r8169 seems installed if the lsmod command returns output, so remove r8169 with:\r\n\r\n  .. code-block:: bash\r\n\r\n     sudo rmmod r8169\r\n\r\n* install the Realtec r8168b nic driver:\r\n\r\n  .. code-block:: bash\r\n\r\n    cd r8168-8.023.00\r\n    sudo ./autorun.sh\r\n\r\n* prevent the r8169 driver from loading again:\r\n\r\n  .. code-block:: bash\r\n\r\n    echo \"blacklist r8169\" >> /etc/modprobe.d/blacklist.conf\r\n\r\n* you may now verify that r8168b has been installed and loaded by running:\r\n\r\n  .. code-block:: bash\r\n    \r\n    lsmod | grep r8168\r\n\r\n**The dropped packets problem should appear fixed! w00t!**", "source_format": "rst", "revision_number": 2, "created": 1305389226000}}