新入手的树霉派配无线网卡遇到以下问题
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