From owner-freebsd-questions@FreeBSD.ORG Wed Dec 8 22:30:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C4F7106566C for ; Wed, 8 Dec 2010 22:30:15 +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 104718FC18 for ; Wed, 8 Dec 2010 22:30:14 +0000 (UTC) Received: by wyf19 with SMTP id 19so1695608wyf.13 for ; Wed, 08 Dec 2010 14:30:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=0G/s7ApmfLpBpICfIA5Lx9iQUyVcMv8e3hoORLTtThs=; b=GrxKy10EaetjUW5aX3tNBpJo/Qz0xKc9z4wOlc1BXUAoX7OmgdZ5eE6OBisWoPMeIA Y0RIOHPaplxR486HPWbOB7XpNu0dTrqAMPDpI3hFDN1N0ygYUdR3Gx6WUk0VJCASplA5 Hj4dfwzkCxKKnJMftRvKknEp0MZ1WaOqVcHac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=llBNIQSSgjGsf0NIrSQYfGqleIL1CQf9fifXgCbzauBhLt3GIb8oeSS7T1tuaTIiCO iz4l0fToM4IaEPq2d1MorXWJf93qfS2lQLn+uhNRUm9+98qKppRsJfz7WJQDJZLSK7Q+ YZZVRu7jtil8fxt4kqWO+rkTBRXGXzHgl6btg= Received: by 10.227.151.70 with SMTP id b6mr9586932wbw.205.1291845690735; Wed, 08 Dec 2010 14:01:30 -0800 (PST) Received: from prime.nonspace ([217.98.80.250]) by mx.google.com with ESMTPS id m10sm742113wbc.22.2010.12.08.14.01.29 (version=SSLv3 cipher=RC4-MD5); Wed, 08 Dec 2010 14:01:30 -0800 (PST) Message-ID: <4D000E4A.2000800@gmail.com> Date: Wed, 08 Dec 2010 23:01:30 +0000 From: Michael User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101203 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: dhclient doesn't work over wireless X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2010 22:30:15 -0000 Hello, My FreeBSD laptop is unable to get IP address over DHCP but the same network works fine on Windows, Ubuntu and Android so I believe the problem lies in my FreeBSD configuration and not on the router/access point. Problem occurs only for wireless interface. FreeBSD 8.1 amd64 with Atheros interface. Wireless networking was working fine on that system (the same config files) until I had to replace my wireless router. My rc.conf file: wlans_ath0="wlan0" ifconfig_wlan0="WPA SYNCDHCP" I'm using standard dhclient.conf file. My wpa_supplicant.conf file: network={ ssid="wifi" 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="xxxxx" } Now after reboot I'm geting wlan0 connection (status associated): wlan0: flags=8843 metric 0 mtu 1500 ether xx:xx:xx:xx:xx:xx inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11g status: associated ssid wifi channel 9 (2452 MHz 11g) bssid d8:5d:4c:ea:cb:ee regdomain 103 indoor ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL But for some reason it doesn't get the IP address! And whrn I manually try to: dhclient wlan0 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5 No DHCPOFFERS received. No working leases in persistent database - sleeping. Again, other systems doesn't seem to have any trouble with getting IP from this DHCP server and wired interface (em0) works fine too. Any ideas please?