Debian 7.4 - WiFi配置失败...再次 [英] Debian 7.4 - Wifi configuration fails ... Again
问题描述
我一直在安装多个版本的ubunutu多年,现在我更好地理解为什么我总是面临在这些不同的基线的WiFi配置的问题:当然Debian根。
问题
现在在Debian 7.4上:
Broadcom BCM4313驱动程式不是免费的产品)为我的wifi卡。这是通过UNCLAIMED声明说明当看到网络硬件状态摘录:
sudo lshw -c network
* -network UNCLAIMED
描述:网络控制器
产品:BCM4313 802.11b / g / n无线LAN控制器
供应商:Broadcom公司
物理ID:0
总线信息: pci @ 0000:03:00.0
版本:01
宽度:64位
时钟:33MHz
功能:pm msi pciexpress cap_list
configuration:latency = 0
resources:memory:f1100000-f1103fff
未声明发现(没有内核关联)
所以我通过添加这个目标到本地软件包库中安装了位于非自由后端的驱动程序。/ etc / apt / sources.list
deb http://http.debian.net/debian/ wheezy main contrib非
并安装:
sudo apt-get update&&& sudo apt-get install firmware-brcm80211
sudo modprobe brcm80211
并重新启动
sudo shutdown now -r
$ b b
检查似乎没问题:
sudo lshw -c network
* -network
描述:无线接口
产品:BCM4313 802.11b / g / n无线LAN控制器
供应商:Broadcom公司
物理ID:0
总线信息:pci @ 0000:03 :00.0
逻辑名称:wlan0
版本:01
serial:78:e4:00:4e:49:a3
宽度:64位
时钟:33MHz
capabilities:pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration:broadcast = yes driver = brcmsmac driverversion = 3.2.0-4-amd64 firmware = N / A latency = 0 link = no multicast = yes wireless = IEEE 802.11bgn
资源:irq:19内存:f1100000-f1103fff
网络配置< h2>
minimal / etc / network / interfaces由NetworManager要求
iface lo inet loopback
..并重新启动
失败
没有检测到无线网络,当然无法使用wlan0连接
无效。
我在debian上找到有关WPA2 / PSK WiFi配置的信息:
因此我将此设置添加到我的interfaces文件中:
auto lo
iface lo inet loopback
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid Hznteam-Datacenter
#十六进制psk是从明文密码编码的
wpa-psk 12345678901234567890123456
与上面没有检测到无线网络,ifconfig没有分配的ip地址:
wlan0链路encap:以太网HWaddr 78:e4:00 :4e:49:a3
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 drop:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0(0.0 B)TX bytes:0(0.0 B)
wlan0:avahi链接encap:以太网HWaddr 78:e4:00:4e:49:a3
inet地址:169.254.7.34 Bcast:169.254.255.255掩码:255.255.0.0
UP BROADCAST MULTICAST MTU:1500公制:1 $请注意,我所要求的WPA2 / PSK AES密钥长度是26个字符,在我的其他电脑上成功连接请求。到我的WiFi路由器
任何想法?
帮助欢迎...
解决方案
选择了错误的WiFi内核模块
我应该安装了brcmsmac模块,而不是brcm80211模块。后者是Squeeze版本的内核模块。 Wheezy 需要提供的 brcmsmac 模块这里
Althouhg包名为brcm80211,用于Wheezy的内核模块是brcmsmac,而不是brcm80211用于Squeeze版本
在此 StackoverFlow post ,并且还提供摘要此处
接口
我还将/ etc / network / interfaces conf文件设置为<
$ sudo nano / etc / network / interfaces
auto lo
iface lo inet loopback
这似乎允许Network-Manager在帐户中接受任何发现的接口。
一切OK。 WLAN已启动并正在运行。
..这么多浪费时间为一个愚蠢的版本错误!
I've been installing multiple versions of ubunutu over years and now I better understand why I faced always problems with wifi configuration on these different baselines : Debian root of course.
Issue
Now on Debian 7.4 :
The Broadcom BCM4313 driver is not loaded by default (not free product) for my wifi card. This is stated thru the UNCLAIMED declaration when looking at the network hardware status excerpt :
sudo lshw -c network
*-network UNCLAIMED
description: Network controller
product: BCM4313 802.11b/g/n Wireless LAN Controller
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:03:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress cap_list
configuration: latency=0
resources: memory:f1100000-f1103fff
Unclaimed means : no driver found (no kernel association)
So I installed the driver located in the non-free backports by adding this target into the local packages repository /etc/apt/sources.list
deb http://http.debian.net/debian/ wheezy main contrib non-free
and install :
sudo apt-get update && sudo apt-get install firmware-brcm80211
sudo modprobe brcm80211
and restart
sudo shutdown now -r
Check seems OK :
sudo lshw -c network
*-network
description: Wireless interface
product: BCM4313 802.11b/g/n Wireless LAN Controller
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan0
version: 01
serial: 78:e4:00:4e:49:a3
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=brcmsmac driverversion=3.2.0-4-amd64 firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:19 memory:f1100000-f1103fff
Network Configuration
minimal /etc/network/interfaces as required by NetworManager
auto lo
iface lo inet loopback
.. and restart
Failure
No wifi network is detected and of course I can't connect using wlan0
it doesn't work.
I found informations here regarding WPA2/PSK wifi configuration on debian :
so I added this setup to my interfaces file an got :
auto lo
iface lo inet loopback
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid Hznteam-Datacenter
# hexadecimal psk is encoded from a plaintext passphrase
wpa-psk 12345678901234567890123456
Same as above no wifi network detected and ifconfig gives no allocated ip address :
wlan0 Link encap:Ethernet HWaddr 78:e4:00:4e:49:a3
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)
wlan0:avahi Link encap:Ethernet HWaddr 78:e4:00:4e:49:a3
inet addr:169.254.7.34 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Note that my required WPA2/PSK AES key length is 26 chars as requested on my other PC that connect successfully to my wifi router
Any idea ? it's boring wasting hours on the same problem again ..
Help welcome ...
解决方案 Wrong wifi kernel module selected
I should have installed the brcmsmac module instead of the brcm80211 one. The latter is the Squeeze version kernel module. Wheezy needs the brcmsmac module as mentioned here
Althouhg the package is named brcm80211 the kernel module to load for Wheezy is brcmsmac instead of brcm80211 for the Squeeze version
more detail in this StackoverFlow post and a summary is also available here
Interfaces
I also set the /etc/network/interfaces conf file to only
$ sudo nano /etc/network/interfaces
auto lo
iface lo inet loopback
this seems to allow Network-Manager to take any discovered interfaces in account.
Everything's OK. Wifi up and running now.
.. And so much wasted time for a stupid version error !
这篇关于Debian 7.4 - WiFi配置失败...再次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!