|
我用的是 ~x86 ,都是最新的包。
我的卡是这个
02:04.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05)
我的路由器是 d-link 624A+。连无线用的是 wpa_supplicant
情况就是无线能连上 ap,iwconfig 能看到连上了,然后就是 dhcp 的时候基本就是一获取到 ip,ap 就断了。后面就是这个过程在不停的重复。下面是 log。
Nov 21 22:37:23 tux wpa_cli: interface eth1 DISCONNECTED
Nov 21 22:37:23 tux dhcpcd: received SIGHUP, releasing lease
Nov 21 22:37:23 tux dhcpcd: eth1: releasing lease of 192.168.0.182
Nov 21 22:37:23 tux dhcpcd: eth1: removing interface
Nov 21 22:37:24 tux wpa_cli: interface eth1 CONNECTED
Nov 21 22:37:24 tux dhcpcd: version 5.1.3 starting
Nov 21 22:37:24 tux dhcpcd: eth1: broadcasting for a lease
Nov 21 22:37:24 tux dhcpcd: eth1: offered 192.168.0.182 from 192.168.0.1
Nov 21 22:37:24 tux dhcpcd: eth1: acknowledged 192.168.0.182 from 192.168.0.1
Nov 21 22:37:24 tux dhcpcd: eth1: checking for 192.168.0.182
Nov 21 22:37:29 tux dhcpcd: eth1: leased 192.168.0.182 for 604800 seconds
Nov 21 22:37:29 tux dhcpcd: forking to background
Nov 21 22:37:29 tux wpa_cli: interface eth1 DISCONNECTED
Nov 21 22:37:29 tux dhcpcd: received SIGHUP, releasing lease
Nov 21 22:37:29 tux dhcpcd: eth1: releasing lease of 192.168.0.182
Nov 21 22:37:29 tux dhcpcd: eth1: removing interface
Nov 21 22:37:29 tux wpa_cli: interface eth1 CONNECTED
Nov 21 22:37:29 tux dhcpcd: version 5.1.3 starting
Nov 21 22:37:29 tux dhcpcd: eth1: broadcasting for a lease
Nov 21 22:37:29 tux dhcpcd: eth1: offered 192.168.0.182 from 192.168.0.1
Nov 21 22:37:29 tux dhcpcd: eth1: acknowledged 192.168.0.182 from 192.168.0.1
Nov 21 22:37:29 tux dhcpcd: eth1: checking for 192.168.0.182
Nov 21 22:37:34 tux dhcpcd: eth1: leased 192.168.0.182 for 604800 seconds
Nov 21 22:37:34 tux dhcpcd: forking to background
Nov 21 22:37:34 tux wpa_cli: interface eth1 DISCONNECTED
Nov 21 22:37:34 tux dhcpcd: received SIGHUP, releasing lease
Nov 21 22:37:34 tux dhcpcd: eth1: releasing lease of 192.168.0.182
Nov 21 22:37:34 tux dhcpcd: eth1: removing interface
Nov 21 22:37:34 tux wpa_cli: interface eth1 CONNECTED
Nov 21 22:37:34 tux dhcpcd: version 5.1.3 starting
Nov 21 22:37:34 tux dhcpcd: eth1: broadcasting for a lease
Nov 21 22:37:34 tux dhcpcd: eth1: offered 192.168.0.182 from 192.168.0.1
Nov 21 22:37:39 tux dhcpcd: eth1: acknowledged 192.168.0.182 from 192.168.0.1
Nov 21 22:37:39 tux dhcpcd: eth1: checking for 192.168.0.182
Nov 21 22:37:44 tux dhcpcd: eth1: leased 192.168.0.182 for 604800 seconds
Nov 21 22:37:44 tux dhcpcd: forking to background
Nov 21 22:37:44 tux wpa_cli: interface eth1 DISCONNECTED
Nov 21 22:37:44 tux dhcpcd: received SIGHUP, releasing lease
Nov 21 22:37:44 tux dhcpcd: eth1: releasing lease of 192.168.0.182
Nov 21 22:37:44 tux dhcpcd: eth1: removing interface
Nov 21 22:37:44 tux wpa_cli: interface eth1 CONNECTED
Nov 21 22:37:44 tux dhcpcd: version 5.1.3 starting
Nov 21 22:37:44 tux dhcpcd: eth1: broadcasting for a lease
Nov 21 22:37:44 tux dhcpcd: eth1: offered 192.168.0.182 from 192.168.0.1
Nov 21 22:37:44 tux dhcpcd: eth1: acknowledged 192.168.0.182 from 192.168.0.1
Nov 21 22:37:44 tux dhcpcd: eth1: checking for 192.168.0.182
可以看到这一分钟不到,断了好几次。这种情况出现的时候,还有这么个现象
$ sudo /etc/init.d/net.eth1 stop
* ERROR: net.eth1 stopped by something else
$ sudo /etc/init.d/net.eth1 start
* WARNING: net.eth1 is already starting
就是 eth1 停不了,不知道怎么回事。执行一下
$ sudo /etc/init.d/net.eth1 zap
* Manually resetting net.eth1 to stopped state
然后就可以了。。
$ sudo /etc/init.d/net.eth1 start
* Bringing up interface eth1
* Starting wpa_supplicant on eth1... [ ok ]
* Starting wpa_cli on eth1... [ ok ]
* Backgrounding ......
* WARNING: net.eth1 has started, but is inactive
/etc/wpa_supplicant/wpa_supplicant.conf 的配置如下
network={
ssid="wd"
key_mgmt=WPA-PSK
proto=WPA RSN
pairwise=CCMP TKIP
group=CCMP TKIP
psk="xxxxxx"
password="xxxxxxx"
priority=5
}
/etc/conf.d/net 的配置如下
#modules=( "dhcpcd" )
#modules_eth1=( "iwconfig" )
modules_eth1=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dwext"
#modules_wlan0=( "wpa_supplicant" )
#wpa_supplicant_wlan0="-Dndiswrapper"
config_eth1=( "dhcp" )
config_eth0=( "dhcp" )
#config_wlan0=( "dhcp" )
wpa_timeout_eth1=60
#dhcpcd_eth1="-t 60"
#dhcpcd_eth0="-t 1"
#dhcp="release nodns nontp nonis"
dhcp="release nontp nonis"
ifplugd_eth0="..."
ifplugd_eth1="--api-mode=wlan"
我还试过用 ndiswrapper ,结果基本就是连上一会就死机。。。。唉。。。不知道是不是我找的 windows 驱动的问题。 |
|