CentOS 5 中缺少网卡 - AsteriskNow 1.7.1

CentOS 5 中缺少网卡 - AsteriskNow 1.7.1

所以我有两个网卡,但我无法加载第二个网卡,这是来自的输出

lspci -vvv


04:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
    Subsystem: Super Micro Computer Inc Unknown device 0000
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 169
    Region 0: Memory at fb900000 (32-bit, non-prefetchable) [size=128K]
    Region 2: I/O ports at e000 [size=32]
    Region 3: Memory at fb920000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: [c8] Power Management version 2
            Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
            Status: D0 PME-Enable- DSel=0 DScale=1 PME-
    Capabilities: [d0] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
            Address: 0000000000000000  Data: 0000
    Capabilities: [e0] Express Endpoint IRQ 0
            Device: Supported: MaxPayload 256 bytes, PhantFunc 0, ExtTag-
            Device: Latency L0s <512ns, L1 <64us
            Device: AtnBtn- AtnInd- PwrInd-
            Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-
            Device: RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
            Device: MaxPayload 128 bytes, MaxReadReq 512 bytes
            Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s L1, Port 0
            Link: Latency L0s <128ns, L1 <64us
            Link: ASPM Disabled RCB 64 bytes CommClk+ ExtSynch-
            Link: Speed 2.5Gb/s, Width x1
    Capabilities: [a0] MSI-X: Enable+ Mask- TabSize=5
            Vector table: BAR=3 offset=00000000
            PBA: BAR=3 offset=00002000

我发现使用 Intels e1000e 驱动程序,但是当我使用 make install 时,我得到以下信息:

[root@lan3 src]# make install
Makefile:67: *** Kernel header files not in any of the expected locations.
Makefile:68: *** Install the appropriate kernel development package, e.g.
Makefile:69: *** kernel-devel, for building kernel modules and try again.  Stop.
[root@lan3 src]#


[root@lan3 src]# yum install kernel-devel
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile                                                * addons: centos.mirror.nac.net
 * base: centos.chi.host-engine.com
 * extras: mirror.metrocast.net
 * updates: mirror.trouble-free.net
Setting up Install Process
Package kernel-devel-2.6.18-409.el5.x86_64 already installed and latest version
Nothing to do
[root@lan3 src]#

更改操作系统不是一个选项,我意识到它很旧,但它是标准的英特尔千兆位网卡。任何帮助表示赞赏!

更新:

# uname -r
2.6.18-194.11.1.el5

ifconfig 根本不显示网卡。

答案1

解决方案!

安装elrepo 存储库。 && 从 elrepo 安装独立于内核的 e1000e 驱动程序 && 告诉内核使用新驱动程序 && 重新启动。

rpm -Uvh http://www.elrepo.org/elrepo-release-5-5.el5.elrepo.noarch.rpm && yum install kmod-e1000e && sudo nano /etc/modprobe.conf && reboot

代替

#alias eth0 e100e
alias eth0 kmod-e1000e

相关内容