Date: Tue, 28 Sep 1999 15:42:14 -0600 From: Chris Fedde <cfedde@sendmail.com> To: "whatever wherever" <bsdquestions@hotmail.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Fwd: ifconfig question Message-ID: <199909282142.PAA95472@fedde.littleton.co.us> In-Reply-To: Your message of "Tue, 28 Sep 1999 09:13:45 EDT." <19990928131345.15301.qmail@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Which dhcp client are you using? If you are using the default one (/sbin/dhclient) then when it runs it eventually runs a script (/sbin/dhclient-script) that does all the calls to things like ifconfig. and updating /etc/resolv.conf dhclient-script sources /etc/dhclient-enter-hooks if it exisists and is excecutable. By default dhclient-enter-hooks creates a file (/tmp/dhclient-enter-hooks) that contains all the output from dhclient-script You can alter /etc/dhclient-enter-hooks to do whatever other work you need. There is also an etc/dhclient-exit-hooks that lets you customize things at the end of the session. chris "whatever wherever" writes: +--------------- | Hi all; | I am running 3.2 on a server that fileshares between 2 networks | using Samba; | one is DHCP(ep0) the other is static(ep1). | today I lost the ability to see the DHCP one from the win9* machines | on that net when i type ifconfig ep0 i get the usual stuff that i did | before same with ep1 | when I go to one of the DHCP machines and use the Win9* 'find' command, I | can find the BSD machine! | | my question - what is ifconfig DOING? | is it querieing the dhcp server? | is it printing from a file? | | i THINK that the DHCP net has expired the lease and reasigned a new | IP, how | do i figure out the new IP? | | thanks all | | greg kinney | +--------------- __ Chris Fedde <cfedde@sendmail.com> 303 773 9134 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?199909282142.PAA95472>