Date: Wed, 11 Sep 2002 08:42:58 -0400 From: Louis LeBlanc <leblanc+freebsd@keyslapper.org> To: FreeBSD Questions <freebsd-questions@FreeBSD.org> Subject: Re: Trouble with DHCP client Message-ID: <20020911124258.GA51749@keyslapper.org> In-Reply-To: <MGECLFEJFOACEEEMHEKLAEKOCKAA.chaegle@attbi.com> References: <200209111030.g8BAUOv7007473@zapper.org> <MGECLFEJFOACEEEMHEKLAEKOCKAA.chaegle@attbi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Actually, that is possible. I have AT&T myself, and They recently sent me a letter asking me to reconfigure my dhcp client. Turns out it came in the mail just hours before my machine went offline. I had to unplug the modem for about a minute and reboot my machine. Even then, I had to manually restart the dhcp client. It's pretty ugly, but I have a quickie script that does that for me: kick_dhcp.sh: #!/bin/sh /usr/bin/killall dhclient /bin/sleep 1 /sbin/dhclient xl0 /bin/sleep 2 PING=`/sbin/ping -c 1 netnews.attbi.com | /usr/bin/grep " 0% packet loss"` if [ "$PING" ]; then exit 0 else /usr/bin/killall dhclient /bin/sleep 1 /sbin/dhclient xl0 fi I know there is probably a cleaner way to do this, for instance, I don't think the dhclient process stays resident, but it does the job. If the dhcp isn't negotiated, the ping fails and the restart is retried. I also see a message on stderr that the lookup failed. The drawback is that if the dhcp negotiation works, but netnews.attbi.com is unavailable for other reasons, it will try to restart dhcp even though it is fine. HTH Lou On 09/11/02 06:40 AM, Cameron Haegle sat at the `puter and typed: > Thanks for the response. > > I do have this line in my rc.conf. > > Pardon me asking this potentially stupid question, but is there a > possibility that my cable provider (AT&T Broadband) is preventing my system > from negotiating the DHCP request? > > Cam > > > > -----Original Message----- > From: Daemon [mailto:daemon@ircee.com] > Sent: Wednesday, September 11, 2002 5:30 AM > To: Cameron Haegle > Cc: freebsd-questions@freebsd.org > Subject: Re: Trouble with DHCP client > > > Check to make sure you have ifconfig_xl0="DHCP" in your /etc/rc.conf > > Regards > > Mark > > On Tue, 10 Sep 2002 23:08:18 -0500 > "Cameron Haegle" <chaegle@attbi.com> wrote: > > > So I am attempting to bring my FreeBSD router back online with my cable > > modem and the Ethernet device simply fails to obtain an address. > > > > I have installed 4.6.2 and the NIC is a 3COM supported by the xl0 device > > driver. This same NIC had worked about one year ago, in the same system, > > until I lost the hard drive. > > > > The network at work also supports DHCP, so I brought the system in and > > connected it. Lo and behold it successfully got an address and worked, > > without any help from me. > > > > At home again whenever I attempt to execute 'dhclient xl0' all I receive > is > > the help screen. What am I doing wrong here? > > > > Any guidance would be greatly appreciated. > > > > Regards, > > Cameron > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > -- > The FoxSurfer Group > Admin FoxSurfer.Com > FreeBSD 4.6-STABLE > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ economics, n.: Economics is the study of the value and meaning of J.K. Galbraith. -- Mike Harding, "The Armchair Anarchist's Almanac" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020911124258.GA51749>