|
|
关于使用wpa_supplicant,设置IP地址的问题...
- /etc/init.d/net.wlan0 start
复制代码
wpa验证没问题,却不能自动设定IP地址,
如果
- /etc/init.d/net.wlan0 restart
复制代码
IP地址又能自动设定了,stop 后start,也能自动设定。
如果
- /etc/init.d/net.wlan0 stop
- rmmod iwl3945 && modprobe iwl3945 (iwl3945是我的无线驱动模块)
- /etc/init.d/net.wlan0 start
- ifconfig
复制代码
还是没IP地址
- /etc/init.d/net.wlan0 restart
复制代码
IP地址又来了! 郁闷之极
难道我只能在local.start里写
- /etc/init.d/net.wlan0 start
- sleep 1
- /etc/init.d/net.wlan0 restart
复制代码
?!
配置文件:
- localhost ~ # grep -v ^# /etc/conf.d/net
- modules=( "wpa_supplicant" )
- config_wlan0=( "192.168.0.11 " )
- routes_wlan0=( "default gw 192.168.0.1" )
- localhost ~ # grep -v ^# /etc/wpa_supplicant/wpa_supplicant.conf
- ctrl_interface=/var/run/wpa_supplicant
- ctrl_interface_group=0
- ap_scan=1
- network={
- ssid="Celinda"
- psk="******"
- priority=5
- }
复制代码 |
|