Install Realtek PCIe GBE Family Controller in CentOS 6. x

Source: Internet
Author: User

Install Realtek PCIe GBE Family Controller in CentOS 6. x
Many available Nic drivers have been installed in the GNU/Linux installation process, but the Realtek PCIe GBE Family Controller driver does not.
My desktop: HP Pro 3380 MT uses this Nic. Since there is no network, and CentOS6.x is not pre-installed with gcc, g ++ compiling environment, it has been a long time.
The following describes the installation process:
1. Install CentOS

1. Use a cd (or USB flash drive) to create an image file. Note: The image file I use here is a CentOS-6.6-i386-bin-DVD1.iso (I would have intended to use a 64-bit system, but since the machine motherboard supports both UEFI and BIOS modes, the UEFI installation mode is used by default for 64-bit CentOS 6.4 and later. In UEFI installation mode, the hard disk partition is GPT, while the local hard disk adopts MBR partition mode, and the hard disk is always not installed. Google "UEFI ")

2. CentOS is installed normally. There are many methods for this step on the Internet. Due to system boot problems, it is recommended to read and install later. See: http://blog.sina.com.cn/s/blog_86e874d30101e3d8.html

After the installation is complete, we will find that everything is OK, but it cannot be connected to the network, and the problem mentioned at the beginning of this article appears.

2. Install the compiling environment and NIC Driver

Next, we need to install the NIC Driver:
First, install the gcc and g ++ compiling environment. Because the network is not accessible, you can only use the installation files in the CD image. Fortunately, these files are mandatory.
1) load the image file of the CD (or USB flash drive) to the system and set the yum software source to a local image file. Method can refer to: http://www.jb51.net/ OS /RedHat/43343.html 2) because I made a CD image, I use the method here is first in the file '/etc/yum. repos. add: 'file: // media/CentOS_6.6_Final/'to the baseurl of d/CentOS-Media.repo /'
Then directly enter the command in the terminal: yum -- disablerepo = \ * -- enablerepo = c6-media [command] ([cmmand] = 'Install gcc '), all the installation commands can simulate this method.
Then, install the NIC Driver. 3) Next we will download the corresponding NIC driver at http://www.realtek.com.tw/default.aspx.
4) decompress the file using the command: tar jxvf r8168-8.039.00.tar.bz2
5) Run The sudo./autorun. sh command to install the SDK. In this case, an error occurs. Because we have not installed the kernel source code package, we need to install "kernel-devel" in steps 1) and 2). The command is:
Yum -- disablerepo = \ * -- enablerepo = c6-media install kernel-devel
6) Run sudo./autorun. sh.
7) 6th) after successful steps, you can view the r8186.ko file in the '/lib/modules/$ (uname-r)/kernel/drivers/net/' directory, the installation is successful.
Run the command lsmod | grep r8168 to check whether the newly installed NIC Driver Module is loaded. If not, run the command in the '/lib/modules/$ (uname-r) directory) run sudo depmod-a in/kernel/drivers/net /'.
Run the following command: lspci | grep net to check whether the NIC Driver is enabled.
8) successfully completed 7) indicates that the NIC has been successfully installed. In general, the Red Cross on the Network icon in the upper right corner should be absent, indicating that the network card is connected to the network. If not, use the following method.

The NIC Driver is successfully installed and cannot connect to the network

3. network configuration (optional)

The reason is that eth0 is not configured. Click here at http://blog.csdn.net/iycao/article/details/22497291.

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.