gary1982 发表于 2013-3-9 10:38:19

新入手树霉派在配置无线网卡遇到的问题及解决方法

本帖最后由 gary1982 于 2013-3-9 20:56 编辑

新入手的树霉派配无线网卡遇到以下问题
pi@RaspberryPi ~ $ sudo ifup wlan0
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/7c:dd:90:0c:38:80
Sending on   LPF/wlan0/7c:dd:90:0c:38:80
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
No DHCPOFFERS received.
Unable to obtain a lease on first try.Exiting.
Failed to bring up wlan0hh
pi@raspberrypi ~ $
在查询后在官网论谈找到以下解决方案
也就是说直接修改 /etc/network/interfaces文件为以下内容,注意:NETWORK SSID为要连的网络名,NETWORK PASSWORD为网络密码:
auto lo
iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
wpa-ssid “NETWORK SSID”
wpa-psk “NETWORK PASSWORD”

树老大 发表于 2013-3-9 10:58:30

好东西,赞一个。

imlonghao 发表于 2013-3-9 13:42:57

如果WIFI没密码呢?

gary1982 发表于 2013-3-9 14:26:09

你可以把密码设为空(即"")试试,我没有试过,你试了以后发一下结果。

imlonghao 发表于 2013-3-9 14:32:57

gary1982 发表于 2013-3-9 14:26 static/image/common/back.gif
你可以把密码设为空(即"")试试,我没有试过,你试了以后发一下结果。

我的还没到货呢~
页: [1]
查看完整版本: 新入手树霉派在配置无线网卡遇到的问题及解决方法