CentOS 6.x System installation + NIC driver installation (Realtek PCIe GBE Family Controller for Linux)

Source: Internet
Author: User

Many of the available NIC drivers have actually been installed during the installation of Gnu/linux, but this one:Realtek PCIe GBE Family ControllerBut not the driver.
And my desktop: the HP HP Pro 3380 MT is just using this NIC. Because there is no network, and centos6.x did not pre-installed gcc,g++ compilation environment, really toss a long time.

The following summarizes the installation process:
installation of a CentOS system

1 Create an image file with a CD-ROM (or USB drive). Note: The image file I am using here is Centos-6.6-i386-bin-dvd1.iso (originally intended to use a 64-bit system, but because the motherboard supports both UEFI mode and BIOS mode, and the CentOS 6.4 and above 64-bit systems use the UEFI installation mode by default. In Uefi installation mode, the hard disk partition is a GPT partition, while the native hard disk is in MBR partition mode and the solid is always not installed. Specific to Google "UEFI")

2 Normal installation of CentOS, this step specific method online there are many. Due to system boot issues, it is recommended to read and install later. Refer to: http://blog.sina.com.cn/s/blog_86e874d30101e3d8.html

  after the installation is complete, we will find everything OK, but it is not on the net, there are the issues mentioned at the beginning of this article.

Two installing the Build Environment and network card driver

Next, we will install the NIC driver:
First, install GCC, g++ the compilation environment. Because the network is not available, you can only use the installation files in the disc image, fortunately the image file has these necessary files.
1) load the CD (or USB flash drive) image file into the system and set the Yum software source to the local image file. Methods can be referred to: http://www.jb51.net/os/RedHat/43343.html
2) because I made a disc image, I used the method is to first in the file '/etc/yum.repos.d/centos-media.repo ' BaseURL added: ' file:///media/CentOS_6.6_Final/'
Then enter the command directly 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 are here http://www.realtek.com.tw/Default.aspx download the corresponding NIC driver.
4) Unzip the file using the command: Tar jxvf r8168-8.039.00.tar.bz2
5) Use the command sudo./autorun.sh installation. At this time,error will occur because we do not have the kernel source package installed, you need to use the method in step 1), 2) to install "Kernel-devel", the command is:
Yum--disablerepo=\*--enablerepo=c6-media Install Kernel-devel
6) Execute sudo again./autorun.sh
7) 6th) After the successful step, you can view the R8186.ko file in the directory '/lib/modules/$ (uname-r)/kernel/drivers/net/', stating that the installation was successful.
Use command: Lsmod | grep r8168, see if the NIC driver module just installed is loaded and can be used in the directory '/lib/modules/$ (uname-r)/kernel/drivers/net/' command if it is not loaded: sudo depmod-a
Use command: LSPCI | grep NET to see if the NIC driver is started
8) Successful completion 7) indicates that the NIC has been successfully installed. In general, this is the upper right corner of the network icon above the small red fork should be no, indicating that the network card is connected. If not, you can use the next method.

NIC driver installation is successful, still unable to connect network


Three configuration networks (optional)


The reason is that there is no configuration eth0, click here http://blog.csdn.net/iycao/article/details/22497291 have a workaround.


This article is for reference, thanks to the following sources:

CentOS Installation: http://blog.sina.com.cn/s/blog_86e874d30101e3d8.htm
Set up local yum software Source: http://www.jb51.net/os/RedHat/43343.html
Eth0 Configuration: http://blog.csdn.net/iycao/article/details/22497291

CentOS 6.x System installation + NIC driver installation (Realtek PCIe GBE Family Controller for Linux)

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.