Hardware Interfaces: USB, SDIO, PCMCIA, PCI....
Drivers Hierarchy:
Wireless Extension: to patch kernel
Woreless Tools: to generate the
tools like iwconfig iwevent iwgetid iwlist iwspy iwpriv
library libiw.so.xx
Configurations:
ifconfig wlan0 down;
ifconfig wlan0 192.168.1.23
iwconfig wlan0 essid linksys // the same as AP's ssid
iwconfig wlan0 mode Manager // i.e. iw_mode=2, the channel should be also same as AP's and can be set via iwconfig wlan0 channel channel_No
iwconfig
Ping AP: ping 192.168.1.44
surfe on the web:
route add default gw 192.168.1.1
append the DNS resolve: vi /tmp/var/tmp/resolv.conf and add nameserver like 'nameserver xxxxxx'
wpa_supplicant:
cross-compiling the wpa_supplicant package to generate the binary command: wpa_supplicant, wpa_cli. wpa_supplicant acts as server and wpa_cli as client to searching,setting and connecting network.
In most cases, if wpa_supplicant.conf is ok, wpa_supplicant will establish the connection with network.
wpa_supplicant.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
#AP的名字
ssid="my_network"
#AP的key
psk="my_key"
}edit /etc/network/interface
xxxxxx
Then, It is OK!
Some useful information and tools on WiFi:
1. Airopeek: wireless network sniffer tools with hack functionalities
: 伙聚WiFi无线联盟
2. a、安装wpa_supplicant apt-get install wpasupplicant
b、创建/etc/wpa_supplicant.conf包含以下内容:
network={
ssid="你的无线网ssid"
psk="你的wpa口令"
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
}
c、编辑/etc/network/interfaces
iface eth1 inet dhcp
pre-up wpa_supplicant -Bw -Dwext -ieth1 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
注:eth1是你的,并且假设你使用dhcp协议。
d、启动你的网卡
ifup eth1
如果有必要请关闭你的有线网络(ifdown eth0),防止路由问题。
===========EOF============
阅读(1119) | 评论(0) | 转发(1) |