From owner-freebsd-stable Thu Mar 14 9:19:42 2002 Delivered-To: freebsd-stable@freebsd.org Received: from ns.altadena.net (ns.altadena.net [206.126.144.2]) by hub.freebsd.org (Postfix) with ESMTP id 8141037B402 for ; Thu, 14 Mar 2002 09:19:38 -0800 (PST) Received: (from pete@localhost) by ns.altadena.net (8.11.6/8.8.8) id g2EHJaD33116 for stable@freebsd.org; Thu, 14 Mar 2002 09:19:36 -0800 (PST) (envelope-from pete) From: Pete Carah Message-Id: <200203141719.g2EHJaD33116@ns.altadena.net> Subject: if_wi with dhclient problem To: stable@freebsd.org Date: Thu, 14 Mar 2002 09:19:36 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=iso8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Recent changes (probably the last week) to one or both of dhclient or if_wi have broken dhclient when used with wi0 after a card insertion. fxp0 still works fine in the same machine, and wi0 does too, after a manual ifconfig (kind of defeats the purpose of dhclient, though :-). The manual ifconfig does not have to be to a correct local LAN address, see below at the end. At least this gives a workaround... Also, "ifconfig wi0 down ; ifconfig wi0 up" is NOT sufficient to make dhclient work. Unfortunately there isn't a 'v' option to dhclient to try to get more output... In the fail case I get an ifconfig error message and _immediate_ exit (no wait for any timeout) (dhclient isn't left running after this): ----------------------------------------- portable# /sbin/dhclient wi0 ifconfig: ioctl (SIOCAIFADDR): File exists portable# /sbin/dhclient wi0 ifconfig: ioctl (SIOCAIFADDR): File exists portable# ifconfig wi0 wi0: flags=8843 mtu 1500 inet6 fe80::260:1dff:fe1e:db00%wi0 prefixlen 64 scopeid 0x14 ether 00:60:1d:1e:db:00 media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: associated ssid Altadena1 1:Altadena1 stationname Portable.Altadena channel 6 authmode NONE powersavemode OFF powersavesleep 100 wepmode MIXED weptxkey 1 wepkey 1:128-bit wepkey 2:64-bit portable# ifconfig wi0 66.127.158.100 netmask 255.255.255.248 portable# route add default 66.127.158.97 add net default: gateway 66.127.158.97 portable# /sbin/dhclient wi0 ifconfig: ioctl (SIOCAIFADDR): File exists dhclient: New IP Address(wi0): 66.127.158.100 dhclient: New Subnet Mask (wi0): 255.255.255.248 dhclient: New Broadcast Address(wi0): 66.127.158.103 dhclient: New Routers: 66.127.158.97 portable# ------------------------------------------------ new run after pccardc power cycle to test use of a non-local LAN address: ------------------------------ portable# pccardc power 0 0 portable# pccardc power 0 1 portable# sh /etc/pccard_wi_home ifconfig: ioctl (SIOCAIFADDR): File exists portable# ifconfig wi0 wi0: flags=8843 mtu 1500 inet6 fe80::260:1dff:fe1e:db00%wi0 prefixlen 64 scopeid 0x14 ether 00:60:1d:1e:db:00 media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: associated ssid Altadena1 1:Altadena1 stationname Portable.Altadena channel 6 authmode NONE powersavemode OFF powersavesleep 100 wepmode MIXED weptxkey 1 wepkey 1:128-bit wepkey 2:64-bit portable# /sbin/dhclient wi0 ifconfig: ioctl (SIOCAIFADDR): File exists portable# ifconfig wi0 wi0: flags=8843 mtu 1500 inet6 fe80::260:1dff:fe1e:db00%wi0 prefixlen 64 scopeid 0x14 ether 00:60:1d:1e:db:00 media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: associated ssid Altadena1 1:Altadena1 stationname Portable.Altadena channel 6 authmode NONE powersavemode OFF powersavesleep 100 wepmode MIXED weptxkey 1 wepkey 1:128-bit wepkey 2:64-bit portable# ifconfig wi0 10.0.0.1 netmask 255.255.255.0 portable# /sbin/dhclient wi0 ifconfig: ioctl (SIOCAIFADDR): File exists dhclient: New IP Address(wi0): 66.127.158.100 dhclient: New Subnet Mask (wi0): 255.255.255.248 dhclient: New Broadcast Address(wi0): 66.127.158.103 dhclient: New Routers: 66.127.158.97 portable# -- Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message