Date: Thu, 14 Mar 2002 09:19:36 -0800 (PST) From: Pete Carah <pete@ns.altadena.net> To: stable@freebsd.org Subject: if_wi with dhclient problem Message-ID: <200203141719.g2EHJaD33116@ns.altadena.net>
next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203141719.g2EHJaD33116>