Date: Sun, 23 Mar 2003 11:25:33 -0500 From: "Dan Langille" <dan@langille.org> To: "Kevin Oberman" <oberman@es.net> Cc: mobile@FreeBSD.ORG Subject: Re: dhclient gives "no route to host" upon startup Message-ID: <3E7D99AD.17877.19575073@localhost> In-Reply-To: <20030322225454.486C15D08@ptavv.es.net> References: Your message of "Sat, 22 Mar 2003 15:40:30 EST." <3E7C83EE.9728.151A4A7B@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On 22 Mar 2003 at 14:54, Kevin Oberman wrote: > > From: "Dan Langille" <dan@langille.org> > > Date: Sat, 22 Mar 2003 15:40:30 -0500 > > Sender: owner-freebsd-mobile@FreeBSD.ORG > > > > I have a FreeBSD 4.8-PRERELEASE laptop upon which dhclient doesn't > > get an IP address during start up. After logging in, a tail -F > > /var/log/messages will show this: > > > > Mar 22 15:05:38 laptop login: ROOT LOGIN (root) ON ttyv0 > > Mar 22 15:09:58 laptop dhclient: send_packet: No route to host > > Mar 22 15:10:34 laptop last message repeated 3 times > > Mar 22 15:12:36 laptop last message repeated 8 times > > > > If I kill dhclient, and run it manually, it gets an IP address: > > > > # /sbin/dhclient -pf /var/run/dhclient.wi0.pid wi0 > > > > Mar 22 15:12:58 laptop dhclient: New Network Number: 192.168.0.0 > > Mar 22 15:12:58 laptop dhclient: New Broadcast Address: 192.168.0.255 > > Mar 22 15:12:58 laptop dhclient: New IP Address (wi0): 192.168.0.34 > > Mar 22 15:12:58 laptop dhclient: New Subnet Mask (wi0): 255.255.255.0 > > Mar 22 15:12:58 laptop dhclient: New Broadcast Address (wi0): > > 192.168.0.255 > > Mar 22 15:12:58 laptop dhclient: New Routers: 192.168.0.21 > > > > The above test was with a wireless Orinoco card. The problem occurs > > with a wired Linksys NIC. > > > > Any ideas? > > How is your system starting dhclient at initialization? via this entry in /etc/rc.conf: ifconfig_wi0="DHCP" > Do you use pccard_ether? No, I've never heard of it before. There's no man page for it but I can see it's used by pccard.conf. > What do you have in rc.conf for this? Do you have any > pccard entries? Since my original post, I've been able to get DHCP to work. I think the problem was a combination of issues, but I can't point to any one cause. Here is what I now have in /etc/rc.conf which relates to wi0: pccard_enable="YES" pccard_ifconfig="DHCP" My /etc/start_if.wi0 contains this: wicontrol -i wi0 -n linksys That gets me onto the net. FWIW, /var/run/dmesg.boot contains these wi0 entries: wi0 at port 0x240-0x27f irq 3 slot 0 on pccard0 wi0: 802.11 address: 00:02:2d:01:26:12 wi0: using Lucent Technologies, WaveLAN/IEEE wi0: Lucent Firmware: Station 8.10.01 The card is an Orinoco which I've recently upgraded to the latest firmware. If I extract the card, I notice that dhclient keeps running, and I get the following messages in /var/log/messages 11:13:06 laptop login: ROOT LOGIN (root) ON ttyv0 11:14:49 laptop dhclient: New Network Number: 192.168.0.0 11:14:49 laptop dhclient: New Broadcast Address: 192.168.0.255 11:18:58 laptop dhclient: New Network Number: 192.168.0.0 11:18:58 laptop dhclient: New Broadcast Address: 192.168.0.255 *here is where I extract the card.... 11:19:38 laptop /kernel: wi0: timeout in wi_seek to fc80/0; last status ffff 11:19:38 laptop /kernel: wi0: timeout in wi_seek to fc80/0; last status ffff 11:19:38 laptop /kernel: wi0: detached 11:19:38 laptop /kernel: pccard: card removed, slot 0 11:19:38 laptop /kernel: stray irq 3 11:19:38 laptop dhclient: receive_packet failed on wi0: Device not configured 11:20:08 laptop last message repeated 53729 times 11:20:20 laptop last message repeated 21330 times 11:20:21 laptop /kernel: pccard: card inserted, slot 1 11:20:21 laptop dhclient: receive_packet failed on wi0: Device not configured 11:20:21 laptop last message repeated 888 times What configuration should I use in order to allow removal and insertion of the card such that DHCP just *happens*? Is wireless NIC usage documented anywhere? From my research, most of it seems to be lore. If not, I'll write up my experiences so at least they are available via The FreeBSD Diary. Thanks folks. -- Dan Langille : http://www.langille.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E7D99AD.17877.19575073>