From owner-freebsd-wireless@FreeBSD.ORG Sun Jun 26 07:57:44 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 DAF3F1065670 for ; Sun, 26 Jun 2011 07:57:44 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id A4FE88FC13 for ; Sun, 26 Jun 2011 07:57:44 +0000 (UTC) Received: by pwi7 with SMTP id 7so1386802pwi.13 for ; Sun, 26 Jun 2011 00:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=wjImZglezrvCsgTJfbLlC95uoIRaq/w+9d88cd6PZkU=; b=cz0deSCUB+ROmqpT7lDrqZqQqSJHGdjJ4Zq5dLCfF0/Bdn4yYS9tANoG/B8amrecit mnjoiDL7eYnTehRfu+bwmoWRbe7xZBlknvs+s5gRd17LDP7WfIn5q+CplofbuCqa25r6 fulknWChlIIdtxFVMHukpAtVP12ICUUIDnIPo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=KPLZiHS5RNUX58qOlO4d6dzh0kvMat0rKIBxgRPQqpQplOGBjqLNMSTd6Sv5RMi+CJ 5rdhCm60Uu0jlm3w9XGsTRNaKCFODA/nTgetzI0JNcirounYA3Deyj5UR990k3xUyQly QnwrLm1zvfSgRLY2kW+2eSrdewp0KAxLhdvzA= Received: by 10.68.40.193 with SMTP id z1mr16398pbk.295.1309075063132; Sun, 26 Jun 2011 00:57:43 -0700 (PDT) Received: from sidhe.local ([75.111.37.204]) by mx.google.com with ESMTPS id u6sm3399191pbh.64.2011.06.26.00.57.40 (version=SSLv3 cipher=OTHER); Sun, 26 Jun 2011 00:57:41 -0700 (PDT) Message-ID: <4E06E668.4040603@gmail.com> Date: Sun, 26 Jun 2011 00:57:28 -0700 From: Matt User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.18) Gecko/20110624 Thunderbird/3.1.11 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit Cc: 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 07:57:44 -0000 On 06/25/11 21:21, Kevin Oberman wrote: > You seem determined to not to provide information that might help. Output > 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, "ΧέΊαΜμΟΒ" 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 ΧέΊαΜμΟΒ : >>>>> 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=8c43 > 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 300 >>>> 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