From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 26 08:55:53 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31389106566B for ; Sun, 26 Jun 2011 08:55:53 +0000 (UTC) (envelope-from zhtx10@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id EFB458FC12 for ; Sun, 26 Jun 2011 08:55:52 +0000 (UTC) Received: by pvg11 with SMTP id 11so3282280pvg.13 for ; Sun, 26 Jun 2011 01:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=6UILnoeDOp9DdnEgNI6N+kryhmOYCQ1zY5FObJJ4ZP4=; b=shePzw7hqM4YSZ4xUifmk6qFvA2su0geYvaHJgk8ON2Z9Nj+4NSTGRJhqkv+Z7LuFH tf/NbaJlCwcgFN9+q5jB0E45wOeiIa850k7Dwvw1IBxRr4L0m9l/A5PERRfdEezbEHRR KJt3yOTeWLjv22ut91vZs+AtxFLlAu6SLQH7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=gw/7Z8DuotndzLGmIMwx6BJDJ9kX1cNHm955S/Av0Ar35Al7g0fUyqQoqMl2BRw0kC E4SIbr16787Smcg4DY3zENMZiP2siqi4kWuoSsNP/HtaWT9UHSWY1yDoIapvhlYxvdon zPZ0kVA9ptM/DMOo2RpqTMlNk4Zw3NqXlffOo= Received: by 10.142.218.11 with SMTP id q11mr966995wfg.235.1309078552404; Sun, 26 Jun 2011 01:55:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.42.18 with HTTP; Sun, 26 Jun 2011 01:55:32 -0700 (PDT) In-Reply-To: <4E06E668.4040603@gmail.com> References: <4E06E668.4040603@gmail.com> From: =?UTF-8?B?57q15qiq5aSp5LiL?= Date: Sun, 26 Jun 2011 16:55:32 +0800 Message-ID: To: Matt Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: Couldn't connect to wireless networking X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2011 08:55:53 -0000 =E5=9C=A8 2011=E5=B9=B46=E6=9C=8826=E6=97=A5 =E4=B8=8B=E5=8D=883:57=EF=BC= =8CMatt =E5=86=99=E9=81=93=EF=BC=9A > On 06/25/11 21:21, Kevin Oberman wrote: > > You seem determined to not to provide information that might help. Outp= ut > > of: > > ifconfig wlan0 > > netstat -rnf inet > > would be a start. > > > > R. Kevin Oberman, Network Engineer > > Retired > > kob6558@gmail.com > > On Jun 25, 2011 5:00 PM, "=E7=BA=B5=E6=A8=AA=E5=A4=A9=E4=B8=8B" wrote: > >> I only know that it's 11g mode. > >> > >> The main issue is I cannot ping any websites if wlan0 becomes > associated. > >> I really don't know what I do next... :-( > >> I think my configurations are correct. > >> > >> What's the channel of the AP? > >>> > >>> adrian > >>> > >>> 2011/6/25 =E7=BA=B5=E6=A8=AA=E5=A4=A9=E4=B8=8B : > >>>>> Too many possibilities to tell. > >>>>> > >>>>> Is your DNS server configured? It should be in /etc/resolv.conf. > >>>>> > >>>>> Is your default route set? > >>>>> netstat -rnf inet > >>>>> > >>>>> What is the output of > >>>>> ifconfig wlan0 > >>>>> > >>>>> Most of these things should be set by DHCP, but may not be. > >>>>> If it shows as associated, try pinging your router. > >>>>> > >>>>> Still, without more information, it's all just guesses on my part. > >>>>> > >>>>> -- > >>>>> R. Kevin Oberman, Network Engineer > >>>>> Retired > >>>>> kob@gmail.com > >>>> OK. > >>>> the output ifconfig wlan0: > >>>> wlan0: flags=3D8c43 > > metric > >>> 0 > >>>> mut 1500 > >>>> ether 00:26:37:64:1e:b9 > >>>> inet 0.0.0 netmask 0xff000000 broadcast 255.255.255.255 > >>>> media:IEEE 802.11 wireless ethernet autoselect (autoselect) > >>>> status: no carried. > >>>> ssid "" channel 6 (2437 MHz 11g) > >>>> regdomail 97 indoor ecm authmode WPA1+WPA2/802.11i privacy ON > >>>> deftxkey UNDEF txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 3= 00 > >>>> bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst > >>>> roaming MANUAL > >>>> > >>>> ifconfig wlan0 list scan > >>>> > >>>> > >>>> netstat -rnf inet > >>>> Routing tables > >>>> Internet: > >>>> Destination Gateway Flags Refs Use Netif Expire > >>>> 0.0.0.0/8 link#4 U 0 0 wlan0 > >>>> 127.0.0.1 link#3 UH 0 0 lo0 > >>>> > >>>> > >>>> > >> _______________________________________________ > >> freebsd-wireless@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > >> To unsubscribe, send any mail to " > freebsd-wireless-unsubscribe@freebsd.org > > " > > _______________________________________________ > > freebsd-wireless@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > To unsubscribe, send any mail to " > freebsd-wireless-unsubscribe@freebsd.org" > > > Please note -Dbsd is generally unnecessary, although probably not the > problem. > Below is a bit of sh that can be put into a script or run line by line > that should record most connection setup and connection into a log in > your home directory called "wifilog.txt" which you could upload if it's > still not working. As an added bonus, it should leave your connection > setup afterward (it's a modified version of a connection script I tend > to use). > > run the following as root or under sudo: > > echo "Setup log:" > ~/wifilog.txt > route -n flush &>> ~/wifilog.txt > ifconfig wlan0 destroy &>> ~/wifilog.txt > ifconfig ath0 down &>> ~/wifilog.txt > ifconfig ath0 up &>> ~/wifilog.txt > ifconfig wlan0 create wlandev ath0 &>>~/wifilog.txt > ifconfig wlan0 up scan &>> ~/wifilog.txt > sleep 2 > ifconfig ath0 scan &>> ~/wifilog.txt > wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B &>>~/wifilog.txt > sleep 5 > dhclient wlan0 &>>~/wifilog.txt > echo "Connection info:" >> ~/wifilog.txt > netstat -rn &>>~/wifilog.txt > cat /etc/resolv.conf &>>~/wifilog.txt > ifconfig wlan0 &>>~/wifilog.txt > ping -t 3 4.4.4.4 &>>~/wifilog.txt > > # Hope it helps, > # Matt > I got many errors, but not save to wifilog.txt. (Copied here) laptop# ifconfig wlan0 destroy laptop# ifconfig wlan0 create wlandev ath0 laptop# ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 ether 00:26:37:64:1e:b9 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid WEB channel 6 (2437 MHz 11g) regdomain 97 indoor ecm authmode WPA1+WPA2/802.11i privacy ON deftxkey UNDEF txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL laptop# route -n flush laptop# ifconfig wlan0 destroy laptop# ifconfig ath0 down laptop# ifconfig ath0 up laptop# ifconfig wlan0 create wlandev ath0 laptop# ifconfig wlan0 up scan laptop# sleep 2 laptop# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B laptop# dhclient wlan0 wlan0: no link .............. giving up laptop# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS CTRL-EVENT-SCAN-RESULTS ^CCTRL-EVENT-TERMINATING - signal 2 received ioctl[SIOCS80211, op 26, arg 0x0]: Operation not supported Failed to disable WPA in the driver. ELOOP: remaining socket: sock=3D4 eloop_data=3D0x800e0b1c0 user_data=3D0x80= 0e070f0 handler=3D0x421840 laptop# dhclient wlan0 wlan0: no link ....^C laptop# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 link#3 UH 0 48 lo0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%lo0/64 link#3 U lo0 fe80::1%lo0 link#3 UHS lo0 ff01:3::/32 fe80::1%lo0 U lo0 ff02::%lo0/32 fe80::1%lo0 U lo0 laptop# cat /etc/resolv.conf cat: /etc/resolv.conf: No such file or directory laptop# ifconfig wlan0 wlan0: flags=3D8802 metric 0 mtu 1500 ether 00:26:37:64:1e:b9 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid WEB channel 6 (2437 MHz 11g) regdomain 97 indoor ecm authmode WPA1+WPA2/802.11i privacy OFF txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL laptop# ping -t 3 192.168.1.1 PING 192.168.1.1 (192.168.1.1): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host --- 192.168.1.1 ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss laptop# Maybe the troubles happen when connect the DHCP server?