Install the RTL8168B Nic in Linux.

Source: Internet
Author: User
For more information about how to install the RTL8168B Nic in Linux, see asusa77.com-Linux general technology-Linux technology and application. Today, I decided to try out fedora core 6. Although this version is not too long, I still want to try it. I have been using the ubuntu system, because the FC5 Nic I installed previously does not support accessing the Internet in my laptop, but UBUNTU does. The driver of the video card in UBUNTU is also supported. This time, I downloaded the FC6 disc from the official website and burned it directly. Five CDs are installed without MD5 verification.

The installation was smooth, and the FC6 Installation Wizard was also seen during the installation process. There was a lot more content. Good, good. It is estimated that the font has improved a lot. You don't have to spend more than N hours debugging the font. (FC6 was also installed because the font of FC5 was broken two days ago, no matter how it is done, it cannot be adjusted back. Depressing .).

After the installation, it's a pretty girl. The interface looks much more beautiful at the beginning. However, after installation, I found that the machine still cannot access the Internet. I have already pasted all the network card parameters. This is how to configure the NIC under FC.

It is not difficult to configure the RTL 8168 Nic In FC6. I went to the Internet to find some information. Some minor problems were encountered in the middle, but they were all solved one by one. Send an image to see it. First, download the driver from the RTL official website. Http://www.realtek.com.tw/

Before installing the driver, you must compile the driver by source code before it can be properly driven. Therefore, you need to install an RPM package. This is very important. Otherwise, the system will always prompt that the BULID Folder does not exist and terminate. Even if the BUILD folder already exists.

Because you cannot access the Internet, you need the first FC6 installation disk. RPM file under FEDORA on the disk

Kernel-devel XXXXX. rpm. Here I am kernel-devel-2.6.18-1.2798.fc6.i686.rpm

(In the terminal: rpm-ivh kernel-devel-2.6.18-1.2798.fc6.i686.rpm to install this RPM package), you can also double-click the installation directly in the folder.

Then I found an article on the Internet to help install it. The following is the content of the article.

Install the RTL8168B Nic
The RTL8168B Nic cannot be recognized directly in FC6 (or RHEL5), and must be compiled and installed manually. first download the linux driver source code of the realtek8111/8168 (B) Nic, and then cp to a working directory, such as/home

Tar-xvf r1000 * tar.gz

Cd./r1000 *

Vi./src/r1000_n.c

Modify MODULE_PARM (speed, "1-" _ MODULE_STRING (MAX_UNITS) "I ");
MODULE_PARM (duplex, "1-" _ MODULE_STRING (MAX_UNITS) "I ");
MODULE_PARM (autoneg, "1-" _ MODULE_STRING (MAX_UNITS) "I ");

Is

MODULE_PARM_DESC (speed, "1-" _ MODULE_STRING (MAX_UNITS) "I ");
MODULE_PARM_DESC (duplex, "1-" _ MODULE_STRING (MAX_UNITS) "I ");
MODULE_PARM_DESC (autoneg, "1-" _ MODULE_STRING (MAX_UNITS) "I ");

Save (: qw !)

Exit to the/home/r1000 * directory,

Make clean modules

Make install

Depmod-

Well, the following is not suitable for beginners and cainiao, and there is a suspicion of confusion.

If no error message is displayed, the installation is complete! Restart the machine.

Run lsmod to check whether there is an r1000.o module. If yes, the installation is successful.

Then run kudzu to restart the machine.

In the network configuration program (kde or gnome)

After entering the system, select the network settings in the graphic interface.

Create an Ethernet hardware. Select rtl8139 for the module and fill in the corresponding IO and IRC. If you are sure, the system will prompt that the configuration is incorrect. It doesn't matter. Continue...

Create a new network connection, fill in the correct IP address and DNS, gateway, and then activate it to see if you can access the Internet? Restart ~~.

Delete the configuration file and the Ethernet hardware and create a new network connection. At this time, we will find that the 8168B Nic is already in the option and make necessary configuration (IP address, gateway, DNS), activate, OK, now you should be able to access the Internet.

I am not so supportive of the following, because I feel it is okay after configuration, maybe it is because my network speed is slow and I cannot feel it. But it may also be a problem set by this dude. It is important that I set MTU to 1500 when setting. I don't know why, but when I use UBUNTU, the system parameters.

It is estimated that the speed of this big brother should be enough according to this setting.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.