我遇到了一个奇怪的问题,在 Google 上搜索了几个小时后我还是找不到答案。Ubuntu 服务器版本 12.04。
lspci -v 显示我的无线网卡,如下所示:
Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
Subsystem: Linksys WMP54GS v1.1 802.11g Wireless-G PCI Adapter with SpeedBooster
Flags: bus master, fast devsel, latency 64, IRQ 16
Memory at fe9fc000 (32-bit, non-prefetchable) [size=8K]
Kernel driver in use: b43-pci-bridge
Kernel modules: ssb
但是,ifconfig 显示:
eth0 Link encap:Ethernet HWaddr 00:12:3f:d4:6c:d2
inet addr:192.168.2.14 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::212:3fff:fed4:6cd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:318642 errors:0 dropped:0 overruns:0 frame:0
TX packets:36376 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:89728370 (89.7 MB) TX bytes:7303647 (7.3 MB)
Interrupt:17
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:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
iwconfig 显示:
lo no wireless extensions.
eth0 no wireless extensions.
如何让无线网卡在网络配置命令中显示为有效网络适配器?根据 lspci,计算机显然正在读取它。
答案1
为了正常运行,您的卡需要固件。请获取临时有线以太网连接,打开终端并执行以下操作:
sudo apt-get install linux-firmware-nonfree
sudo modprobe -r b43 && sudo modprobe b43
可能需要重新启动。