我想在我的机器上使用两个以太网卡。所以我已经将新的以太网卡物理插入到我的机器中。但是,当输入ifconfig -a
命令时 Ubuntu 无法找到或检测到新设备。因此,我尝试以通常的方式启动新设备,但收到错误消息:
ifconfig eth1 up
eth1: error fetching interface information: Device not found
Run Code Online (Sandbox Code Playgroud)
这是我输入ifconfig -a
命令的时候
eth0 Link encap:Ethernet HWaddr 00:17:31:53:b7:9c
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17 Memory:cffe0000-d0000000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2249 errors:0 dropped:0 overruns:0 frame:0
TX packets:2249 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:362973 (362.9 KB) TX bytes:362973 (362.9 KB)
wlan0 Link encap:Ethernet HWaddr 64:70:02:25:6d:e4
inet addr:192.168.150.5 Bcast:192.168.150.255 Mask:255.255.255.0
inet6 addr: fe80::6670:2ff:fe25:6de4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14219 errors:0 dropped:0 overruns:0 frame:0
TX packets:18637 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8525631 (8.5 MB) TX bytes:3548272 (3.5 MB)
Run Code Online (Sandbox Code Playgroud)
Ubuntu 无法找到/或检测到新安装的设备。
我正在使用一个Silan SC92031 PCI Fast Ethernet Adapter
. 我检查了与它对应的模块,我找到了“sc92031.ko”。我尝试使用 modprobe 命令加载该模块
`modprobe -v sc92031`
Run Code Online (Sandbox Code Playgroud)
之后,我使用以下命令检查该模块是否已成功加载:
#cat /proc/modules |grep sc92031
sc92031 18108 0 - Live 0xf8436000
Run Code Online (Sandbox Code Playgroud)
我重新启动了我的机器。启动 Ubuntu 后仍然无法找到或检测到新的网络适配器。看来模块已消失或已自动卸载。
lspci
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 01)
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
02:00.0 Ethernet controller: Intel Corporation 82573L
Run Code Online (Sandbox Code Playgroud)
有没有人知道我接下来可以做什么来诊断这个问题?
lspci
不显示您的网络适配器。这意味着它没有连接到 PCI 总线。所有 PCI 外围设备都出现在lspci
输出中,无论您是否有驱动程序:这是一个 PCI 功能。文本描述(如“Intel Corporation 82573L”)来自数据库,但控制器至少会显示为“以太网控制器:设备 1904:2031”或诸如此类。所以存在硬件问题,要么您的适配器不工作,要么 PCI 插槽不工作,要么连接不良或不兼容等等。
一旦你解决了硬件问题,正确的驱动程序应该会自动加载,界面会出现在ifconfig -a
. 如果驱动程序未自动加载但硬件存在,则意味着驱动程序无法识别您的硬件。
归档时间: |
|
查看次数: |
73404 次 |
最近记录: |