/etc/network/interfaces
原始
# Configure Loopback
auto lo
iface lo inet loopback
设置为
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "secret-wiki-net"
wpa-psk "verysecret-wpa-psk"
iwlistwifi-name scanning //扫描wifi
echo 4 >/proc/sys/kernel/printk
wpa_supplicant -d -c/etc/wpa_supplicant.conf -iwlan0 -Dwext &
iwconfig wlan0 essid "robot-lab" key 123456320
iwconfig wlan0 key 123456320
Error for wireless request "Set Encode" (8B2A) :
SET failed on device wlan0 ; Invalid argument.
iwconfig wlan0 essid WRTnode116E
wpa_passphrase WRTnode116E 12345678 >> /etc/wpa_supplicant.conf
640x480
iwconfig wlan0 key 12345678
iwconfig wlan0 essid "WRTnode116E"
#! /bin/sh
ifconfig wlan0 up
iwconfig wlan0 key 12345678
iwconfig wlan0 essid "WRTnode116E"
iwconfig wlan0 ap auto
ifconfig wlan0 192.168.8.30 netmask 255.255.255.0
A20连接wifi方法
修改etc/wpa_supplicant.conf中的
essid 和psk
重启
然后用下面的指令设置ip就OK
udhcpc -i wlan0
原始
# Configure Loopback
auto lo
iface lo inet loopback
设置为
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "secret-wiki-net"
wpa-psk "verysecret-wpa-psk"
iwlistwifi-name scanning //扫描wifi
echo 4 >/proc/sys/kernel/printk
wpa_supplicant -d -c/etc/wpa_supplicant.conf -iwlan0 -Dwext &
iwconfig wlan0 essid "robot-lab" key 123456320
iwconfig wlan0 key 123456320
Error for wireless request "Set Encode" (8B2A) :
SET failed on device wlan0 ; Invalid argument.
iwconfig wlan0 essid WRTnode116E
wpa_passphrase WRTnode116E 12345678 >> /etc/wpa_supplicant.conf
640x480
iwconfig wlan0 key 12345678
iwconfig wlan0 essid "WRTnode116E"
#! /bin/sh
ifconfig wlan0 up
iwconfig wlan0 key 12345678
iwconfig wlan0 essid "WRTnode116E"
iwconfig wlan0 ap auto
ifconfig wlan0 192.168.8.30 netmask 255.255.255.0
A20连接wifi方法
修改etc/wpa_supplicant.conf中的
essid 和psk
重启
然后用下面的指令设置ip就OK
udhcpc -i wlan0