From owner-freebsd-net@FreeBSD.ORG Wed Mar 9 09:06:21 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F7361065672 for ; Wed, 9 Mar 2011 09:06:21 +0000 (UTC) (envelope-from mlmichael70@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 946AA8FC0A for ; Wed, 9 Mar 2011 09:06:19 +0000 (UTC) Received: by wyf23 with SMTP id 23so301118wyf.13 for ; Wed, 09 Mar 2011 01:06:19 -0800 (PST) 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=5DlKGrMCyZwlEyc+8qdOntyDExaF/L5jev4Hm4jqlOI=; b=G7L6q6p8d1gzt1NZi2M2Qus8kskQeIpY6GH3/18Sny6UxUKiB3CsMb2sqTn5zdzUeS BiK/xFHsPGsH0W8IT957tek7epXn+onoUhWrIFH8pI9Z2PSvU/yl2C8JONaW9KsXB+HI znEm+/na5YDjWcLmPTFg7S4csJUsCPxHpUAMQ= 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=bwQ9E9RWqsbIRviLbNeyXWqczaYVU6IHkaJA4NzP8DczSyb/bMvlaZX/yjHrkpuM+5 EYR8rKJUngJUJtZE8BoNLpDih4ChkQeFTRV5xGOAEqvMUkVAAFf3DhDCvXXMYBie10ih BXrY/38xkiWZnCFtZVW2m/XkppSlJfAV7q+As= Received: by 10.227.147.198 with SMTP id m6mr5506645wbv.78.1299661255609; Wed, 09 Mar 2011 01:00:55 -0800 (PST) Received: from prime.nonspace (nat79.mia.three.co.uk [217.171.129.79]) by mx.google.com with ESMTPS id bd8sm1294936wbb.7.2011.03.09.01.00.53 (version=SSLv3 cipher=OTHER); Wed, 09 Mar 2011 01:00:54 -0800 (PST) Message-ID: <4D7741CF.8030403@gmail.com> Date: Wed, 09 Mar 2011 09:01:03 +0000 From: Michael User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101215 Thunderbird/3.1.7 MIME-Version: 1.0 To: bschmidt@freebsd.org References: <4D76D138.9010103@gmail.com> <201103090800.40211.bschmidt@freebsd.org> In-Reply-To: <201103090800.40211.bschmidt@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: dhclient (possibly all networking) not working with some routers and WPA X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2011 09:06:21 -0000 On 09/03/2011 07:00, Bernhard Schmidt wrote: >> >> The tricky part is that it says it is associated but has IP of 0.0.0.0. >> So it looks like encryption part is working and then other communication >> fails. >> > > Do I get that right? You've tried setting a fixed IP? Can you also run > tcpdump on a remote side? How does your wpa_supplicant.conf look like? > Do you have any other device available? an USB wlan stick or something > to rule out the Atheros hardware. > Yes, I have tried what follows: ifconfig_wlan0="WPA inet 192.168.0.10 netmask 255.255.255.0" in /etc/rc.conf as well as manually after it's associated: route flush ifconfig wlan0 inet 192.168.0.30 netmask 255.255.255.0 route add default 192.168.0.1 and in both cases when I try to ping my router I get "host down". The wireless led on the router is flashing green at that time. ping (and dhcp) to that router works fine if I don't use encryption and it works fine over the wire. tcpdump on the router is not available as it's just a closed embedded device (NETGEAR N300 series, but keep in mind that I'm experiencing the same problem with different router as well). My wpa_supplicant.conf file: ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel network={ ssid="NETGEAR" scan_ssid=1 bssid=xx:xx:xx:xx:xx:xx priority=9 mode=0 proto=RSN key_mgmt=WPA-PSK auth_alg=OPEN pairwise=CCMP group=CCMP psk="passphrase" } Unfortunately I don't have access to any other wireless cards. Anything else I can provide to help with narrowing it down? Michael