{"id":1441,"date":"2011-09-05T23:28:58","date_gmt":"2011-09-05T17:58:58","guid":{"rendered":"https:\/\/www.suramya.com\/blog\/?p=1441"},"modified":"2011-09-06T00:18:38","modified_gmt":"2011-09-05T18:48:38","slug":"getting-rtl81118168b-pci-express-gigabit-ethernet-controller-to-work-in-debian-6","status":"publish","type":"post","link":"https:\/\/www.suramya.com\/blog\/2011\/09\/getting-rtl81118168b-pci-express-gigabit-ethernet-controller-to-work-in-debian-6\/","title":{"rendered":"Getting RTL8111\/8168B PCI Express Gigabit Ethernet controller to work in Debian 6"},"content":{"rendered":"<p>Once I got Debian 6 installed on my server I needed to connect it to the internet to download updates etc, however my network card wasn&#8217;t being detected correctly so I had to perform the following steps to get it to work correctly:<\/p>\n<li>Download the latest Linux drivers for the RTL8111 Chipset from <a href='http:\/\/www.realtek.com\/Downloads\/downloadsView.aspx?Langid=1&#038;PNid=13&#038;PFid=5&#038;Level=5&#038;Conn=4&#038;DownTypeID=3&#038;GetDown=fa'>the Realtek site<\/a> on a computer that can connect to the Internet.<\/li>\n<li>Copy the file over to your new system via USB or smoke signals<\/li>\n<li>Login as root to the server<\/li>\n<li>Identify the kernel version that you are running, using the following command:<\/li>\n<pre class='code'>uname -a<\/pre>\n<p>It will give you a result like the following:<\/p>\n<pre class='code'>Linux StarKnight 2.6.30-2-686 #1 SMP Sat Aug 27 16:41:03 UTC 2011 i686 GNU\/Linux<\/pre>\n<p>Now you need to install the kernel source code for this version on the server. First we need to find the package name of the kernel source code, we do that by running the following command:<\/p>\n<pre class='code'>apt-cache search linux |grep header |grep 2.6 <\/pre>\n<p>If you have a 2.4.x kernel, replace grep 2.6 with grep 2.4. Once you have the package name install it using the following command as root:<\/p>\n<pre class='code'>apt-get install linux-headers-2.6.30-2-686<\/pre>\n<p>Make sure you replace <i>linux-headers-2.6.30-2-686<\/i> with the package name you got. <\/p>\n<p>Once we have the kernel source installed we can go ahead and install the driver using the following commands:<\/p>\n<pre class='code'>tar -jxvf r8168-8.025.00.tar.bz\r\ncd r8168-8.025.00\r\n.\/autorun.sh \r\n<\/pre>\n<p>This will compile the drive and install it. I didn&#8217;t get any errors when I ran it, but if you do get errors try searching for the error message on Google, it usually provides a solution.<\/p>\n<p>After I installed the driver I tried initializing my network but kept getting the following error message:<\/p>\n<pre class='code'>StarKnight:~# ifdown eth0\r\nifdown: interface eth0 not configured\r\nStarKnight:~# ifup eth0\r\nIgnoring unknown interface eth0=eth0.\r\n<\/pre>\n<p>Fixing it was fairly simple though, all I had to do was edit the <strong>\/etc\/network\/interfaces<\/strong> file and add the following lines to it (This assumes you are using DHCP):<\/p>\n<pre class='code'>auto eth0\r\niface eth0 inet dhcp\r\n<\/pre>\n<p>Once you add the lines, you can try starting the network again using the command:<\/p>\n<pre class='code'>ifup eth0<\/pre>\n<p>If all went well, you will be assigned an IP address and will now be able to successfully browse the net.<\/p>\n<p>Hope this helped.<\/p>\n<p>&#8211; Suramya<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once I got Debian 6 installed on my server I needed to connect it to the internet to download updates etc, however my network card wasn&#8217;t being detected correctly so I had to perform the following steps to get it to work correctly: Download the latest Linux drivers for the RTL8111 Chipset from the Realtek [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[24,13,2,14],"tags":[],"class_list":["post-1441","post","type-post","status-publish","format-standard","hentry","category-knowledgebase","category-linuxunix-related","category-techie-stuff","category-tutorials"],"_links":{"self":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/1441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/comments?post=1441"}],"version-history":[{"count":6,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/1441\/revisions"}],"predecessor-version":[{"id":1445,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/1441\/revisions\/1445"}],"wp:attachment":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/media?parent=1441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/categories?post=1441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/tags?post=1441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}