LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1671|回复: 3

关于使用wpa_supplicant,设置IP地址的郁闷问题...[解决]

[复制链接]
发表于 2009-3-21 10:33:51 | 显示全部楼层 |阅读模式
关于使用wpa_supplicant,设置IP地址的问题...

  1. /etc/init.d/net.wlan0 start
复制代码

wpa验证没问题,却不能自动设定IP地址,
如果
  1. /etc/init.d/net.wlan0 restart
复制代码

IP地址又能自动设定了,stop 后start,也能自动设定。
  
如果
  1. /etc/init.d/net.wlan0 stop
  2. rmmod iwl3945 && modprobe iwl3945 (iwl3945是我的无线驱动模块)
  3. /etc/init.d/net.wlan0 start
  4. ifconfig
复制代码

还是没IP地址
  1. /etc/init.d/net.wlan0 restart
复制代码

IP地址又来了! 郁闷之极
难道我只能在local.start里写
  1. /etc/init.d/net.wlan0 start
  2. sleep 1
  3. /etc/init.d/net.wlan0 restart
复制代码

?!

配置文件:

  1. localhost ~ # grep -v ^# /etc/conf.d/net
  2. modules=( "wpa_supplicant" )
  3. config_wlan0=( "192.168.0.11 " )
  4. routes_wlan0=( "default gw 192.168.0.1" )
  5. localhost ~ # grep -v ^# /etc/wpa_supplicant/wpa_supplicant.conf
  6. ctrl_interface=/var/run/wpa_supplicant
  7. ctrl_interface_group=0
  8. ap_scan=1

  9. network={
  10.         ssid="Celinda"
  11.         psk="******"
  12.         priority=5
  13. }
复制代码
发表于 2009-3-21 11:50:06 | 显示全部楼层
推荐使用WICD
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-21 14:02:43 | 显示全部楼层
wicd ..
A lightweight wired and wireless network manager for Linux

落伍了.. 都没听说过.. 等下试试。

嘿,正在把/换成EXT4。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-21 16:27:29 | 显示全部楼层
晕,这个wicd依赖GTK....

是不是不起图形就不能用啊? 鹅不装了...

PS,wpa_supplicant好像好了,重启了几次,都能自动设置IP地址了。也许早上是巧合..
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表