From owner-freebsd-questions Tue Sep 28 14:42:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (fedde.littleton.co.us [216.17.174.44]) by hub.freebsd.org (Postfix) with ESMTP id 00B3514E0D for ; Tue, 28 Sep 1999 14:42:19 -0700 (PDT) (envelope-from cfedde@fedde.littleton.co.us) Received: from fedde.littleton.co.us (localhost.fedde.littleton.co.us [127.0.0.1]) by fedde.littleton.co.us (8.9.3/8.9.3) with ESMTP id PAA95472; Tue, 28 Sep 1999 15:42:14 -0600 (MDT) Message-Id: <199909282142.PAA95472@fedde.littleton.co.us> To: "whatever wherever" Cc: freebsd-questions@FreeBSD.ORG From: Chris Fedde Subject: Re: Fwd: ifconfig question In-reply-to: Your message of "Tue, 28 Sep 1999 09:13:45 EDT." <19990928131345.15301.qmail@hotmail.com> Date: Tue, 28 Sep 1999 15:42:14 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 303 773 9134 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message