{"id":369,"date":"2020-11-26T11:13:04","date_gmt":"2020-11-26T14:13:04","guid":{"rendered":"http:\/\/xaxowareti.com.br\/?p=369"},"modified":"2020-11-26T11:13:18","modified_gmt":"2020-11-26T14:13:18","slug":"ethernet-rtl-8168-driver-on-debian","status":"publish","type":"post","link":"https:\/\/xaxowareti.com.br\/?p=369","title":{"rendered":"Ethernet RTL 8168 driver on Debian"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Ethernet RTL 8168 driver on Debian<\/h2>\n\n\n\n<p>By default on&nbsp;<a href=\"https:\/\/www.unixteacher.org\/blog\/tag\/debian\/\" target=\"_blank\" rel=\"noreferrer noopener\">Debian<\/a>&nbsp;is used 8169 driver instead of&nbsp;<a href=\"https:\/\/www.unixteacher.org\/blog\/tag\/8168\/\" target=\"_blank\" rel=\"noreferrer noopener\">8168<\/a>&nbsp;(Realtek ethernet driver). Also, 8168 driver does not exist.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">~# find \/lib\/modules\/`uname -r`\/kernel\/drivers\/net\/ethernet\/ -name *816*\n\/lib\/modules\/3.16.0-4-amd64\/kernel\/drivers\/net\/ethernet\/realtek\/r8169.ko\n<\/pre>\n\n\n\n<p>The network device<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">~# lspci |grep Ether\n03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111\/8168\/8411 PCI Express Gigabit Ethernet Controller (rev 09)\n<\/pre>\n\n\n\n<p>The loaded driver<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">~# lsmod |grep 816\nr8169                  68262  0 \n<\/pre>\n\n\n\n<p>Driver installation<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">~# apt-get update\n~# apt-get install dkms\n~# wget https:\/\/www.unixteacher.org\/download\/r8168-dkms_8.040.00-1_all.deb\n~# dpkg -i r8168-dkms_8.040.00-1_all.deb \nSelecting previously unselected package r8168-dkms.\n(Reading database ... 45372 files and directories currently installed.)\nPreparing to unpack r8168-dkms_8.040.00-1_all.deb ...\nUnpacking r8168-dkms (8.040.00-1) ...\nSetting up r8168-dkms (8.040.00-1) ...\nLoading new r8168-8.040.00 DKMS files...\nFirst Installation: checking all kernels...\n...........\n~# init 6\n<\/pre>\n\n\n\n<p>After reboot everything looks ok<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">~# lsmod |grep 816\nr8168                 490633  0 \n~# dmesg |grep 8168\n[    0.245756] pci 0000:03:00.0: [10ec:8168] type 00 class 0x020000\n[    0.538032] r8168 Gigabit Ethernet driver 8.040.00-NAPI loaded\n[    0.538150] r8168 0000:03:00.0: irq 41 for MSI\/MSI-X\n[    0.559287] r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.\n[    0.559290] r8168  Copyright (C) 2015  Realtek NIC software team  \n[    4.557205] r8168: eth0: link up\n<\/pre>\n\n\n\n<p>\/\/ Update: For Debian Stretch, you can install r8168-dkms from non-free. Is not necessary to download the package.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt-get install build-essential <a href=\"https:\/\/www.unixteacher.org\/blog\/tag\/linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">linux<\/a>-headers-`uname -r` r8168-dkms\n<\/pre>\n\n\n\n<p>My \u2018\/etc\/apt\/sources.list\u2019:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">deb http:\/\/httpredir.debian.org\/debian stretch main non-free contrib\ndeb-src http:\/\/httpredir.debian.org\/debian stretch main non-free contrib\n\ndeb http:\/\/security.debian.org stretch\/updates main non-free contrib\ndeb-src http:\/\/security.debian.org stretch\/updates main non-free contrib\n\n# stretch-updates, previously known as 'volatile'\ndeb http:\/\/httpredir.debian.org\/debian stretch-updates main non-free contrib\ndeb-src http:\/\/httpredir.debian.org\/debian stretch-updates main non-free contrib\n<\/pre>\n\n\n\n<p>Published in<a href=\"https:\/\/www.unixteacher.org\/blog\/category\/linux\/\">Linux<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ethernet RTL 8168 driver on Debian By default on&nbsp;Debian&nbsp;is used 8169 driver instead of&nbsp;8168&nbsp;(Realtek ethernet driver). Also, 8168 driver does not exist. ~# find \/lib\/modules\/`uname -r`\/kernel\/drivers\/net\/ethernet\/ -name *816* \/lib\/modules\/3.16.0-4-amd64\/kernel\/drivers\/net\/ethernet\/realtek\/r8169.ko The network device ~# lspci |grep Ether 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111\/8168\/8411 PCI Express Gigabit Ethernet Controller (rev 09) The loaded driver ~# [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-369","post","type-post","status-publish","format-standard","hentry","category-sem-categoria"],"_links":{"self":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts\/369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=369"}],"version-history":[{"count":1,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":370,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions\/370"}],"wp:attachment":[{"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xaxowareti.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}