Centos 5.1 rtl8168/8111 NIC Driver Installation (my local is Asus m51)

Source: Internet
Author: User

 

(The original address is lost... after centos 5.2 is installed with an IP address, the IP address still cannot access the Internet, the gateway cannot be pinged, and other hosts in the LAN cannot be pinged. Previously

Once installed on a computer, you can access the Internet after installation. Now you can install a new driver to access the Internet)

 

Install the entos 5.1 rtl8168/8111 NIC Driver

Centos5.0 does not support GA-945PL-S3E/ConRoe945G-DVI/GA-945PL-S3G and other motherboard integrated Nic RealTek rtl8111b Solution

 
 
Operating system version: centos 5.0

Motherboard type: GA-945PL-S3E/ConRoe945G-DVI/GA-945PL-S3G

Integrated NIC: RealTek rtl8111b Gigabit Nic.

To the network card manufacturers download the corresponding network card Linux driver source package, name is: r8168-8.006.00.tar.bz2
 
 
 
 
1. Download the driver:

Http://www.realtek.com.tw/downloads/downloadsView.aspx? Langid = 3 & pnid = 5 & pfid = 5 & level = 5 & conn = 4 & downtypeid = 3 & getdown = false # rtl8111b/rtl8168b/rtl8111/rtl8168/rtl8111c

 
FTP: // 210.51.181.211/CN/NIC/r8168-8.006.00.tar.bz2

 
 
 
 
2. Prerequisites:

 
When centos is installed by default, the source code package that supports compilation is not included. You must use the yum install command to install both: kernel, kernel-headers, and kernel-devel.

Otherwise, an error is reported during NIC Driver compilation.

Or you can upgrade the entire centos kernel.

Of course, if the source code package already exists after centos is installed, you do not need to use Yum install to update the package and directly install the NIC Driver.

 
The kernel and the kernel source code must be consistent; otherwise, an error is reported during driver installation.

 
 
 
3. perform the following installation steps:

(1) Use the demsg | grep ETH command to determine whether the network card has no driver and thus cannot access the Internet.

 
(2) download the driver

 
(3) Check whether kernel-devel and GCC are installed

# Rpm-Q kernel-devel

# Rpm-Q gcc

If not, use Yum to install

# Yum install gcc

# Yum install kernel-devel kernel-headers

 
You can also use a cd

# Mount-t iso9660-o ro/dev/cdrom/mnt

# Cd/mnt

# Cd CentOS

# Rpm-ivh kernel-devel *. rpm

Other installations are similar.

(Excerpt: http://www.ccvita.com/304.html

Install gcc with the yum command

Edit the/etc/yum. repos. d/iso. repo file and add the local path/mnt/cdrom/directory.

Then start using the command

Yum-disablerepo =/*-enablerepo = c5-media install gcc

)

 
(4) install the driver

# Tar vjxf r8168-8.006.00.tar.bz2

# Cd r8168-8.006.00

# Vim readme (view installation instructions)

# Make clean modules (as root or with sudo)

# Make install

# Depmod-

# Insmod./src/r8168.ko

# Service network restart

 
(5) If the system prompts a lack of kernel-xen during driver installation

[Root @ new-host net] # cd r8168-8.006.00

[Root @ new-host r8168-8.006.00] # ls

Makefile readme release_note.txt src

[Root @ new-host r8168-8.006.00] # make all

Make-C src/clean

Make [1]: Entering directory '/usr/src/driver/net/r8168-8.006.00/src'

Rm-rf *. o *. ko *~ Core *. dep *. *. d. *. cmd *. mod. c *. a *. s. *. flags. tmp_versions Module. symvers Modules. symvers rset

Make [1]: Leaving directory '/usr/src/driver/net/r8168-8.006.00/src'

Make-C src/modules

Make [1]: Entering directory '/usr/src/driver/net/r8168-8.006.00/src'

Make-C/lib/modules/2.6.18-8. el5xen/build SUBDIRS =/usr/src/driver/net/r8168-8.006.00/src modules

Make: Entering an unknown directory

Make: ***/lib/modules/2.6.18-8. el5xen/build: No such file or directory. Stop.

Make: Leaving an unknown directory

Make [1]: *** [modules] Error 2

Make [1]: Leaving directory '/usr/src/driver/net/r8168-8.006.00/src'

Make: *** [modules] Error 2

[Root @ new-host r8168-8.006.00] #

 
Installation prompt: Install the kernel-xen-devel package

# Yum install kernel-xen-devel

Or you can use a CD to install the SDK:

# Cd/mnt/CentOS

# Rpm-ivh kernel-xen *. rpm

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.