From owner-freebsd-questions@FreeBSD.ORG Fri Nov 30 20:17:51 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52338BC6 for ; Fri, 30 Nov 2012 20:17:51 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id F22808FC08 for ; Fri, 30 Nov 2012 20:17:50 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TeX1K-0006Fw-VD for freebsd-questions@freebsd.org; Fri, 30 Nov 2012 21:17:11 +0100 Received: from 79-139-19-75.prenet.pl ([79.139.19.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Nov 2012 21:17:10 +0100 Received: from jb.1234abcd by 79-139-19-75.prenet.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Nov 2012 21:17:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: jb Subject: Re: dhclient and random disconnects Date: Fri, 30 Nov 2012 20:15:27 +0000 (UTC) Lines: 66 Message-ID: References: <50B8D04D.2020703@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 79.139.19.75 (Mozilla/5.0 (X11; FreeBSD i386; rv:9.0.1) Gecko/20100101 Firefox/9.0.1) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2012 20:17:51 -0000 David Demelier gmail.com> writes: > > Hi, > > In my university, I have a WPA-EAP wifi access point, it requires > authentification to access, with dhclient, I'm disconnected randomly and > I must run wpa_cli reconfigure / dhclient again to get it working. This is really too general - it could be a problem with AP or your box. When you say randomly, do you mean like every hour or so, or every 10 min or so ? What is the pattern ? Does it happen that your box is left alone for extended period of time, that is without user and active application activity, while being connected ? If so, do you find your box disconnected after such time (what is the time interval) ? Do the disconnects happen at IP lease renewal times (see output below) ? > What could the problem be with dhclient? I don't know very well what > these processes are doing. Does the process check for lease by a > specific interval? Yes, it does IP lease renewal. Post to the list the following outputs while using dhclient: Your wireless configuration (relevant data only): $ cat /etc/rc.conf Review /etc/defaults/rc.conf w/r to dhclient and wpa_supplicant. Do you have anything related to your wireless card driver in loader(8) tunables or sysctl(8) variables ? Your wpa_supplicant_conf_file, presumably: $ cat /etc/wpa_supplicant.conf $ ps auxwww | grep -i dhclient Config file: $ cat /etc/dhclient.conf Your lease renewal log file: # cat /var/db/dhclient.leases.???? $ ifconfig -a $ netstat -s Any wireless card driver related messages (substitute wpi for yours): $ grep -i wpi /var/log/messages After that spend some time with: $ apropos dhclient dhclient(8) - Dynamic Host Configuration Protocol (DHCP) client dhclient-script(8) - DHCP client network configuration script dhclient.conf(5) - DHCP client configuration file dhclient.leases(5) - DHCP client lease database You should not hesitate to contact, if possible, your Uni sys admin and ask about it. By now you should be an expert - after all you use FreeBSD for a reason :-) jb