我在modmypi.com(这个)上购买了一个纳米wifi适配器。
它可以工作,我在raspbmc配置中对其进行了检查(我使用raspbmc在此处进行配置)。
现在,我又回到了狂奔的发行版,无法正常使用。
当我执行ifconfig时(在下面)。
modmypi.com上的帮助页面上有一个脚本,但是运行该脚本时,出现以下异常:“看起来您正在使用新的2012-09-18-wheezy-raspbian映像。很抱歉,当前不会设置该脚本在该图像上打开wifi。您需要使用命令startx启动GUI并使用WiFi Config进行设置。脚本现在将终止。按任意键继续...”
所以现在我在GUI中,并开始了工作nm-connection-editor
,但似乎没有ipaddress。
我已经阅读了以下命令:dhclient -v wlan0
,这是它的输出:
sudo dhclient -v 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/00:0f:more numbers
Sending on LPF/wlan0/00:0f:more numbers
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
现在我不知道该怎么办。
这是ifconfig
:
wlan0 Link encap:Ethernet HWaddr 00:0f:1more numbers
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)
iwconfig wlan0
:
wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off 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
/etc/wpa_supplicant/wpa_supplicant.conf
:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Nerd"
psk="SECRET"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
}
执行wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
给出以下内容:
wlan0: Trying to associate with 2a:65:11:f2:ce:97 (SSID='Nerd' freq=2412 MHz)
wlan0: Association request to the driver failed
wlan0: Associated with 2a:65:11:f2:ce:97
wlan0: WPA: Key negotiation completed with 2a:65:11:f2:ce:97 [PTK=CCMP GTK=TKIP]
wlan0: CTRL-EVENT-CONNECTED - Connection to 2a:65:11:f2:ce:97 completed (auth) [id=0 id_str=]
wlan0: CTRL-EVENT-DISCONNECTED bssid=2a:65:11:f2:ce:97 reason=0
wlan0: Trying to associate with 90:00:4e:87:c8:cf (SSID='Nerd' freq=2412 MHz)
wlan0: Association request to the driver failed
wlan0: Associated with 00:00:00:00:00:00
wlan0: CTRL-EVENT-TERMINATING - signal 2 received
wlan0: Trying to associate with 90:00:4e:87:c8:cf (SSID='Nerd' freq=2412 MHz)
wlan0: Association request to the driver failed
iwconfig wlan0
会很有用。
iwconfig wlan0