Linux系统装intel网卡,在Centos下安装intel网卡的方法

2023-05-16

下面是收集整理的安装方法,

intel千兆网卡在linux下的驱动安装(e1000)

我们是做服务器的,linux下做事情,别的也不多,就是加个驱动啥的,先说说网卡吧,一般很多高手在驱动intel的网卡的时候还是犯晕,因为INTEL的网卡,有很多种,还都统称叫intel,e1000其实主要还是看芯片都是什么82541,82573不过安装方法还是挺简单的

1:看清楚了系统的版本:

unname -r

2:去intel的网站下一下驱动:

http://support.intel.com/support/network/adapter/

如果网卡是主板板载的就直接下载它的那个主板。

3:把下载的网卡文件解开:

tar zxf e1000-.tar.gz

4:进安装目录

cd e1000-/src/

5:安装

make install

6:安装的目录

/lib/modules//kernel/drivers/net/e1000/e1000.[k]o

7:安装完成后重启,会提示加载网卡一定要配置了IP地址,要不然有的时候还会出错,弄不好还要重装

8:如果没有的话进系统后输入

insmod e1000 =

一般就会有,或者在/etc/

9:modprobe e1000

10:也可以输入dmesg |grep eth0/eth1

看看网卡的信息。

注:系统一定要把内核文件都装全了啊

======

intel千兆网卡驱动的安装2008-07-12 10:07

有两块板载千兆网卡,但是用ifconfig看的时候,只看到eth0,没有看到eth1直接执行/etc/init.d/net.eth1

start的时候报错,信息提示:找不到eth1这个设备直接dmesg看的时候,发现e1000的驱动已经加载了

然后使用lspci发现,只识别出来了一块网卡,另外一块板载网卡被标记为intel unknown device

核对了一下硬件配置,发现:

识别出来的是:intel 82573L 没有识别出来的是:intel 82566DM

而上面已经发现e1000的驱动加载了,所以肯定是e1000的驱动不支持intel 82566DM

从intel的站点上面直接下载了最新的8.0.3.1的驱动

编译安装以后,发现insmod的时候出现:

insmod: error inserting

'..../e1000.lo': -1 File exists

但是直接lsmod,发现没有e1000的modules的info,结合e1000已经加载的现实,多半就是e1000是以内置驱动的方式加载到内核的。

进入/usr/local/src/linux,执行make menuconfig

发现e1000果然是内置的。将e1000改成modules以后,重新编译内核

make

make install

make modules_install

然后重新启动以后,发现e1000果然没有加载了。

此时,将最新的驱动(其实那个8.0.3.1的驱动没用,后来下了一个7.x版本的管用了),make

&& make install以后

发现,能够支持intel 82566dm网卡了。

为了让e1000模块能够开机自动加载,必须修改/etc/modprobe.conf,添加:

alias eth0 e1000

alias eth1 e1000

然后重新启动就可以了

===intel(R) 82566DM-2

Building and Installation

=========================

To build a binary RPM* package of this driver,

run 'rpmbuild -tb '.

Replace with the specific filename

of the driver.

NOTE: For the build to work properly, the currently

running kernel MUST

match the version and configuration of the installed kernel

sources.

If you have just recompiled the kernel reboot the system now.

RPM functionality has only been tested in Red Hat

distributions.

1. Move the base driver tar file to the directory of your choice.

For

example, use /home/username/e1000e or /usr/local/src/e1000e.

2. Untar/unzip archive:

tar zxf e1000e-x.x.x.tar.gz

3. Change to the driver src directory:

cd e1000e-x.x.x/src/

4. Compile the driver module:

make install

The binary will be installed as:

/lib/modules//kernel/drivers/net/e1000e/e1000e.[k]o

The install locations listed above are the default locations.

They

might not be correct for certain Linux distributions.

5. Load the module using either the insmod or modprobe

command:

modprobe e1000e

insmod e1000e

Note that for 2.6 kernels the insmod command can be used if the

full

path to the driver module is specified. For

example:

insmod /lib/modules//kernel/drivers/net/e1000e/e1000e.ko

With 2.6 based kernels also make sure that older e1000e drivers

are

removed from the kernel, before loading the new

module:

rmmod e1000e; modprobe e1000e

6. Assign an IP address to the interface by entering the following,

where

x is the interface number:

ifconfig ethx

7. Verify that the interface works. Enter the following,

where

is the IP address for another machine on the same subnet as

the

interface that is being tested:

ping

=====================

最近才开始学习Linux试着装了RedHat AS

5.0为了安装网卡找了好多地方终于安装成功,现记录下来方便自己以后使用,同时也希望能够给像我这样的新手提供掌握安装网卡驱动的捷径

1.确认系统的内核版本

[root@localhost ~]# uname -r

2.6.18-8.el5PAE

我的内核版本是2.6.18-8.el5PAE

2.确认系统是否已经安装下列包

由于编译需要用到内核的源代码包和编译程序gcc.所以如果没有的话,要先装.

查看:

检查是否已经安装内核源码

[root@localhost ~]# rpm -qa|grep kernel

kernel-doc-2.6.18-8.el5

kernel-xen-2.6.18-8.el5

kernel-2.6.18-8.el5

kernel-PAE-2.6.18-8.el5

kernel-headers-2.6.18-8.el5

kernel-PAE-devel-2.6.18-8.el5

kernel-devel-2.6.18-8.el5

检查是否已经安装编译用到的gcc

[root@localhost ~]# rpm -qa|grep gcc

gcc-gfortran-4.1.1-52.el5

gcc-java-4.1.1-52.el5

libgcc-4.1.1-52.el5

gcc-c++-4.1.1-52.el5

compat-gcc-34-c++-3.4.6-4

compat-gcc-34-3.4.6-4

gcc-4.1.1-52.el5

compat-gcc-34-g77-3.4.6-4

compat-libgcc-296-2.96-138

一般情况下如果安装了内核源码的话源码目录一般都在/usr/src/rRedHat目录下

如果没有的话就用安装盘里面的文件进行安装

3.驱动程序编译及安装

通过官方网站获取相应的驱动程序,我用的是Intel的e1000e的网卡驱动程序

相应的驱动程序包为e1000e-0.5.8.2.tar.gz将驱动程序包拷贝到/usr/src目录下解压缩

cd /usr/src

tar zxvf e1000e-0.5.8.2.tar.gz

完毕以后转到 cd e1000e-0.5.8.2/src目录下准备编译安装

在src目录下依次执行

make (编译驱动程序源码)

make install(安装相应的驱动程序)

安装完毕以后将驱动程序生成的e1000e.o拷贝到/lib/modules/2.6.18-8.el5PAE/kernel/drives/net

目录下

cp e1000e.o /lib/modules/2.6.18-8.el5PAE/kernel/drivers/net

然后执行depmod -a加载驱动程序

4.驱动程序测试

我们可以通过modprobe e1000e进行加载 如果没有提示错误信息证明驱动程序已经加载

同时可以通过lsmod查看已经加载的驱动程序

如果在显示的驱动程序中能够看到e1000e的字样说明驱动程序已经加载成功

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Linux系统装intel网卡,在Centos下安装intel网卡的方法 的相关文章

随机推荐