LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3369|回复: 14

Intel Pro 100/1000 for Linux

[复制链接]
发表于 2004-3-17 14:47:58 | 显示全部楼层 |阅读模式
请问,谁有Intel Pro 100/1000 for Linux 的驱动程序?
我的Linux服务器的网通不了了!HELP!!!
发表于 2004-3-17 15:05:37 | 显示全部楼层
这个已经支持了.我还用过呢。模块就是e1000

[root@Sir root]# modinfo e1000
filename:    /lib/modules/2.4.21-4.EL/kernel/drivers/net/e1000/e1000.o
description: "Intel(R) PRO/1000 Network Driver"
author:      "Intel Corporation, <linux.nics@intel.com>"
license:     "GPL"
parm:        TxDescriptors int array (min = 1, max = 32), description "Number of  transmit descriptors"
parm:        RxDescriptors int array (min = 1, max = 32), description "Number of  receive descriptors"
parm:        Speed int array (min = 1, max = 32), description "Speed setting"
parm:        Duplex int array (min = 1, max = 32), description "Duplex setting"
parm:        AutoNeg int array (min = 1, max = 32), description "Advertised auto -negotiation setting"
parm:        FlowControl int array (min = 1, max = 32), description "Flow Contro l setting"
parm:        XsumRX int array (min = 1, max = 32), description "Disable or enabl e Receive Checksum offload"
parm:        TxIntDelay int array (min = 1, max = 32), description "Transmit Int errupt Delay"
parm:        TxAbsIntDelay int array (min = 1, max = 32), description "Transmit Absolute Interrupt Delay"
parm:        RxIntDelay int array (min = 1, max = 32), description "Receive Inte rrupt Delay"
parm:        RxAbsIntDelay int array (min = 1, max = 32), description "Receive A bsolute Interrupt Delay"
parm:        InterruptThrottleRate int array (min = 1, max = 32), description "I nterrupt Throttling Rate"


改/etc/modules.conf,看有关eth0的,把eth0的那行改成
alias eth0 e1000

如果是两块相同的网卡,再加一行eth1的,如下
alias eth1 e1000

然后再来设置网卡的ip以及dns等。如果通过其它机器上网,把网关也设置好。

试试看,有问题,咱们再来讨论一下。
 楼主| 发表于 2004-3-17 15:23:09 | 显示全部楼层

输出

下面是lspci所得的信息:
00:00.0 Host bridge: ServerWorks: Unknown device 0012 (rev 13)
00:00.1 Host bridge: ServerWorks: Unknown device 0012
00:00.2 Host bridge: ServerWorks: Unknown device 0000
00:02.0 SCSI storage controller: Adaptec AHA-3960D / AIC-7899A U160/m (rev 01)
00:02.1 SCSI storage controller: Adaptec AHA-3960D / AIC-7899A U160/m (rev 01)
00:03.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
00:04.0 Ethernet controller: BROADCOM Corporation NetXtreme BCM5702X Gigabit Ethernet (rev 02)
00:05.0 System peripheral: Compaq Computer Corporation Advanced System Management Controller
00:0f.0 ISA bridge: ServerWorks CSB5 South Bridge (rev 93)
00:0f.1 IDE interface: ServerWorks CSB5 IDE Controller (rev 93)
00:0f.2 USB Controller: ServerWorks OSB4/CSB5 USB Controller (rev 05)
00:0f.3 Host bridge: ServerWorks: Unknown device 0225
00:11.0 Host bridge: ServerWorks: Unknown device 0101 (rev 03)
00:11.2 Host bridge: ServerWorks: Unknown device 0101 (rev 03)
05:02.0 Ethernet controller: Intel Corp.: Unknown device 100e (rev 02)
————————————————————————————————————————————
下面是lsmod所得的信息:
Module                  Size  Used by    Not tainted
autofs                 12804   0  (autoclean) (unused)
pcmcia_core            55904   0
tg3                    45184   1
ipchains               46184   8
usb-ohci               21600   0  (unused)
usbcore                77024   1  [usb-ohci]
aic7xxx               125440   7
sd_mod                 12896  14
scsi_mod              112272   2  [aic7xxx sd_mod]



烦请管理员帮助解决!
发表于 2004-3-17 15:31:55 | 显示全部楼层
通过上面的分析,得知这个网卡是bordcom5700,其实bordcom 5701和5702他们用的驱动都是一样的。

应该改/etc/modules.conf文件,把带eth0的那行改成
alias eth0 tg3

如果没有就加上吧。

改好/etc/modules.conf文件,所模块加载上。改好后重启网卡服务
[root@Sir root]# service network restart
正在关闭接口 eth0: [ 确定 ]
关闭环回接口: [ 确定 ]
设置网络参数: [ 确定 ]
弹出环回接口: [ 确定 ]
弹出界面 eth0: [ 确定 ]
[root@Sir root]#



试试看。
 楼主| 发表于 2004-3-22 22:13:17 | 显示全部楼层

管理员帮忙!

按照您给我的提示,不知道为什么使用modinfo e1000后,同你的信息有点不一样?信息是:
filename:    /lib/modules/2.4.18-3smp/kernel/drivers/addon/e1000/e1000.o
description: "Intel(R) PRO/1000 Network Driver"
author:      "Intel Corporation, <linux.nics@intel.com>"
license:     "BSD with patent grant"
parm:        TxDescriptors int array (min = 1, max = 8), description "Number of transmit descriptors"
parm:        RxDescriptors int array (min = 1, max = 8), description "Number of receive descriptors"
parm:        Speed int array (min = 1, max = 8), description "Speed setting"
parm:        Duplex int array (min = 1, max = 8), description "Duplex setting"
parm:        AutoNeg int array (min = 1, max = 8), description "Advertised auto-negotiation setting"
parm:        XsumRX int array (min = 1, max = 8), description "Disable or enable Receive Checksum offload"
parm:        FlowControl int array (min = 1, max = 8), description "Flow Control setting"
parm:        TxIntDelay int array (min = 1, max = 8), description "Transmit Interrupt Delay"
parm:        RxIntDelay int array (min = 1, max = 8), description "Receive Interrupt Delay"
parm:        MdiX int array (min = 1, max = 8), description "Set MDI/MDI-X Mode"
parm:        DisablePolarityCorrection int array (min = 1, max = 8), description "Disable or enable Automatic Correction for Reversed Cable Polarity"

__________________________________
然后使用lsmod,显示信息如下:
Module                  Size  Used by    Tainted: P
e1000                  57508   0  (unused)
soundcore               7236   0  (autoclean)
autofs                 12804   0  (autoclean) (unused)
pcmcia_core            55904   0
tg3                    45184   1
ipchains               46184   8
usb-ohci               21600   0  (unused)
usbcore                77024   1  [usb-ohci]
aic7xxx               125440   7
sd_mod                 12896  14
scsi_mod              112272   2  [aic7xxx sd_mod]

其中出现了e1000,是否说明已认识该网卡?但是unused又是怎么回事呢?
发表于 2004-3-22 22:22:46 | 显示全部楼层
这个是bordcom的网卡,也就是tg3的模块支持。请看我如下的帖子。
=================================================
通过上面的分析,得知这个网卡是bordcom5700,其实bordcom 5701和5702他们用的驱动都是一样的。

应该改/etc/modules.conf文件,把带eth0的那行改成
alias eth0 tg3

如果没有就加上吧。

改好/etc/modules.conf文件,所模块加载上。改好后重启网卡服务
[root@Sir root]# service network restart
正在关闭接口 eth0: [ 确定 ]
关闭环回接口: [ 确定 ]
设置网络参数: [ 确定 ]
弹出环回接口: [ 确定 ]
弹出界面 eth0: [ 确定 ]
[root@Sir root]#
 楼主| 发表于 2004-3-22 22:25:25 | 显示全部楼层

管理员帮忙!

按照您给我的提示,不知道为什么使用modinfo e1000后,同你的信息有点不一样?信息是:
filename:    /lib/modules/2.4.18-3smp/kernel/drivers/addon/e1000/e1000.o
description: "Intel(R) PRO/1000 Network Driver"
author:      "Intel Corporation, <linux.nics@intel.com>"
license:     "BSD with patent grant"
parm:        TxDescriptors int array (min = 1, max = 8), description "Number of transmit descriptors"
parm:        RxDescriptors int array (min = 1, max = 8), description "Number of receive descriptors"
parm:        Speed int array (min = 1, max = 8), description "Speed setting"
parm:        Duplex int array (min = 1, max = 8), description "Duplex setting"
parm:        AutoNeg int array (min = 1, max = 8), description "Advertised auto-negotiation setting"
parm:        XsumRX int array (min = 1, max = 8), description "Disable or enable Receive Checksum offload"
parm:        FlowControl int array (min = 1, max = 8), description "Flow Control setting"
parm:        TxIntDelay int array (min = 1, max = 8), description "Transmit Interrupt Delay"
parm:        RxIntDelay int array (min = 1, max = 8), description "Receive Interrupt Delay"
parm:        MdiX int array (min = 1, max = 8), description "Set MDI/MDI-X Mode"
parm:        DisablePolarityCorrection int array (min = 1, max = 8), description "Disable or enable Automatic Correction for Reversed Cable Polarity"

__________________________________
然后使用lsmod,显示信息如下:
Module                  Size  Used by    Tainted: P
e1000                  57508   0  (unused)
soundcore               7236   0  (autoclean)
autofs                 12804   0  (autoclean) (unused)
pcmcia_core            55904   0
tg3                    45184   1
ipchains               46184   8
usb-ohci               21600   0  (unused)
usbcore                77024   1  [usb-ohci]
aic7xxx               125440   7
sd_mod                 12896  14
scsi_mod              112272   2  [aic7xxx sd_mod]

其中出现了e1000,是否说明已认识该网卡?但是unused又是怎么回事呢?
 楼主| 发表于 2004-3-22 22:29:11 | 显示全部楼层

不知道如何设置第二块网卡的ip

通过操作 ifconfig eth1 up ,unused字样消失了,但不知道如何设置第二块网卡的ip!
发表于 2004-3-22 22:30:57 | 显示全部楼层
兄弟,e1000是intel的网卡模块,据我推测型号不太对。因为我也用过bordcom57xx的,其实就是tg3那个驱动。用我的方法来试试看。
 楼主| 发表于 2004-3-22 22:41:21 | 显示全部楼层

find

还必须有以下一步!

在/etc/sysconfig/network-scripts目录下创建文件ifcfg-eth1
DEVICE=eth1
USERCTL=no
ONBOOT=yes
BOOTPROTO=
BROADCAST=10.19.78.7
NETWORK=10.19.78.0
NETMASK=255.255.255.248

最后,service network restart,然后显示以下信息:
Shutting down interface eth0:   [60G[   [1;32mOK [0;39m  ]
Shutting down interface eth1:   [60G[   [1;32mOK [0;39m  ]
Shutting down loopback interface:   [60G[   [1;32mOK [0;39m  ]
Setting network parameters:   [60G[   [1;32mOK [0;39m  ]
Bringing up loopback interface:   [60G[   [1;32mOK [0;39m  ]
Bringing up interface eth0:   [60G[   [1;32mOK [0;39m  ]
Bringing up interface eth1:   [60G[   [1;32mOK [0;39m  ]

说明eth1已经安装完毕!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表