我正在尝试帮助我的一个朋友修复他笔记本电脑上的 Debian 安装。他已从 CD 安装了 Debian Wheezy 7.8.0 i386 netinst。他的笔记本电脑是 Packard Bell Easynote R6510,使用外部 USB 无线卡,型号为 Asus USB N13 适配器 N3000。
在安装过程中,他没有连接网络电缆,整个安装过程都使用他的无线卡进行。这样,Debian就可以正确识别并使用该卡了。
安装完成后,他重新启动系统,现在卡已经无法识别了。如果他单击 gnome 顶部栏中的网络图标,他会收到一条消息:“无线已被硬件开关禁用”。
安装后他没有关闭无线卡,因此我们认为这是配置问题。有没有办法修复配置,以便该卡可以在安装过程中使用?
编辑
这是输出ifconfig
:
eth0 Link encap:Ethernet HWaddr 00:40:d0:74:3a:d3
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:10 Base address:0xa100
eth1 Link encap:Ethernet HWaddr 00:e0:98:42:20:7c
inet addr:192.168.1.70 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:98ff:fe42:207c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3696 errors:0 dropped:0 overruns:0 frame:0
TX packets:1689 errors:0 dropped:0 overruns:0 carrier:0
collisions:19 txqueuelen:1000
RX bytes:3976612 (3.7 MiB) TX bytes:226713 (221.3 KiB)
Interrupt:11 Base address:0xa300
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:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1200 (1.1 KiB) TX bytes:1200 (1.1 KiB)
请注意,笔记本电脑有两个以太网卡,其中一个通过电缆连接到路由器。
编辑2
这是我在/var/log/messages
上次启动(几分钟前)的文件中找到的内容。我只是粘贴提到无线卡的行,至少是我们找到的无线卡。
...
Apr 5 22:18:01 batman kernel: [ 10.662012] rtl8192cu: MAC address: ac:9e:17:78:1a:74
Apr 5 22:18:01 batman kernel: [ 10.662029] rtl8192cu: Board Type 0
Apr 5 22:18:01 batman kernel: [ 10.818286] usb 1-2.2: firmware: agent loaded rtlwifi/rtl8192cufw.bin into memory
Apr 5 22:18:01 batman kernel: [ 10.819057] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
Apr 5 22:18:01 batman kernel: [ 10.819363] cfg80211: Calling CRDA for country: US
Apr 5 22:18:01 batman kernel: [ 10.835532] cfg80211: Regulatory domain changed to country: US
Apr 5 22:18:01 batman kernel: [ 10.835543] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Apr 5 22:18:01 batman kernel: [ 10.835554] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm)
Apr 5 22:18:01 batman kernel: [ 10.835565] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm)
Apr 5 22:18:01 batman kernel: [ 10.835574] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm)
Apr 5 22:18:01 batman kernel: [ 10.835584] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm)
Apr 5 22:18:01 batman kernel: [ 10.835594] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
Apr 5 22:18:01 batman kernel: [ 10.890421] usbcore: registered new interface driver rtl8192cu
...
从文档中查到,rtl8192cu
是无线网卡的驱动程序。
编辑3
这是文件的内容/etc/udev/rules.d/70-persistent-net.rules
:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:1e.0/0000:02:02.0 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:40:d0:74:3a:d3", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCMCIA device 0xc1ab:0x0149 (pcnet_cs)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:98:42:20:7c", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.0 (ipw2200)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:12:f0:3a:eb:65", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="ac:9e:17:78:1a:74", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
虽然ifconfig
只报告 devices lo
,eth0
并且eth1
(如上所述),但如果我运行,iwconfig
我会得到:
lo no wireless extensions.
eth2 IEEE 802.11bg ESSID:off/any
Mode:Managed Channel:0 Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power=off Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth1 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:on
eth0 no wireless extensions.
编辑 4 - 问题已解决
根据您的提示,我们设法通过以下方式解决了该问题。该文件/etc/udev/rules.d/70-persistent-net.rules
列出了两种无线卡,即eth2
with driveripw2200
和wlan0
with driver rtl8192cu
。我们通过禁用解决了这个问题eth2
:我们将内核模块添加ipw2200
到黑名单文件中/etc/modprobe.d/blacklist.conf
。
我们有这个想法是因为据rfkill
报道eth2
被硬阻止。现在外部无线设备wlan0
可以正常工作了。
我们不知道为什么当第一张卡被阻止时第二张卡不起作用。任何想法?
感谢 Faheem Mitha 提供的有用提示:没有您的帮助,我们将无法解决该问题。