From owner-freebsd-net@FreeBSD.ORG Mon Feb 11 01:06:28 2008 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE40116A417 for ; Mon, 11 Feb 2008 01:06:28 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2522513C458 for ; Mon, 11 Feb 2008 01:06:27 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.1/8.13.8) with ESMTP id m1B16RWZ069660; Sun, 10 Feb 2008 19:06:27 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.1/8.13.8/Submit) id m1B16Ris069659; Sun, 10 Feb 2008 19:06:27 -0600 (CST) (envelope-from brooks) Date: Sun, 10 Feb 2008 19:06:26 -0600 From: Brooks Davis To: Robert Jenssen Message-ID: <20080211010626.GA69153@lor.one-eyed-alien.net> References: <200802111137.21550.robertjenssen@ozemail.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: <200802111137.21550.robertjenssen@ozemail.com.au> User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Sun, 10 Feb 2008 19:06:27 -0600 (CST) Cc: net@freebsd.org Subject: Re: dhclient conflict between /sbin/devd and /etc/rc.d/netif ? 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: Mon, 11 Feb 2008 01:06:28 -0000 --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 11, 2008 at 11:37:21AM +1100, Robert Jenssen wrote: > Hi, > Every so often I have trouble connecting rt2560 based PCI wireless networ= k=20 > card to my wireless router/access point. Typically I get: >=20 > # sudo /etc/rc.d/netif restart ral0 > Starting wpa_supplicant. > ral0: no link .............. giving up > ral0: flags=3D8843 metric 0 mtu 1= 500 > ether 00:11:50:63:cd:47 > media: IEEE 802.11 Wireless Ethernet autoselect (DS/1Mbps) > status: no carrier >=20 > Even though there seems to be plenty of signal power: >=20 > # sudo ifconfig ral0 list scan > SSID BSSID CHAN RATE S:N INT CAPS > xxxxxxx... 00:xx:xx:xx:xx:xx 10 54M -74:-95 100 EPS WPA >=20 > Recently I noticed that sometimes, after the above "netif restart" fails,= the=20 > ral0 interface "automagically" comes up anyway. Then dhclient is owned=20 > by /sbin/devd. The default devd.conf starts dhclient for both ethernet an= d=20 > PCI-cardbus devices. Is it a good idea for both /sbin/devd=20 > and /etc/rc.d/netif to start a dhclient on ral0 at about the same time?= =20 What do you mean by "owned"? If there's no dhclient running and an interface configured for dhcp associates or negotiates a link, devd starts a dhclient. Assuming I get time to make the necessicary changes and push the issue, netif won't start dhclient at all in the future. > Should I disable dhclient in /etc/devd.conf? I wouldn't recommend it unless you never lose association since if you do a= nd you remove the lines in devd.conf you will end up without a dhclient. -- Brooks > Regards, >=20 > Rob Jenssen > =20 > PS: >=20 > "uname -a" shows: > FreeBSD 7.0-PRERELEASE #1: Fri Feb 8 14:36:49 EST 2008 >=20 > dmesg.today shows: > ral0: mem 0xf2004000-0xf2005fff irq 22 at devi= ce=20 > 6.0 on pci2 > ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525 > ral0: Ethernet address: 00:11:50:63:cd:47 > ral0: [ITHREAD] > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFHr5+SXY6L6fI4GtQRAnMJAKCoEJ6wbnYRF32udKzAQShmnSm9vACgno5o 7PYN2/n/xIl8csVBnLBlBh8= =dPOZ -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--