From owner-freebsd-questions Tue Aug 28 17:58:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail35.sdc1.sfba.home.com (femail35.sdc1.sfba.home.com [24.254.60.25]) by hub.freebsd.org (Postfix) with ESMTP id 6DB6737B405 for ; Tue, 28 Aug 2001 17:58:56 -0700 (PDT) (envelope-from genisis@istar.ca) Received: from x1-6-00-50-ba-de-36-33.kico1.on.home.com ([24.141.119.162]) by femail35.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010829005856.LZMA19181.femail35.sdc1.sfba.home.com@x1-6-00-50-ba-de-36-33.kico1.on.home.com>; Tue, 28 Aug 2001 17:58:56 -0700 Received: from localhost (genisis@localhost) by x1-6-00-50-ba-de-36-33.kico1.on.home.com (8.11.3/8.11.3) with ESMTP id f7T13xv24491; Tue, 28 Aug 2001 21:04:00 -0400 (EDT) (envelope-from genisis@istar.ca) X-Authentication-Warning: x1-6-00-50-ba-de-36-33.kico1.on.home.com: genisis owned process doing -bs Date: Tue, 28 Aug 2001 21:03:59 -0400 (EDT) From: Dru X-X-Sender: To: =?iso-8859-1?q?Keith=20Spencer?= Cc: fbsd Subject: Re: How to find out DHCP ip? In-Reply-To: <20010829003319.26322.qmail@web12008.mail.yahoo.com> Message-ID: <20010828205836.U24368-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 29 Aug 2001, [iso-8859-1] Keith Spencer wrote: > Hi all, > I have a dynamic ip ADSL connection. > Is there a command to find out the ADSL DHCP ip? > must it naturally be the machine I am dialing to? Or > could it be some other?? Hi Keith, I'm not sure I understand your question. Do you want to find out what IP address was assigned to your FreeBSD system by a DHCP server? If so, there's several ways: ifconfig interface where interface is the name of your interface e.g. ed0, rl0, etc or more /var/db/dhclient.leases | grep address should do it. Or, are you trying to find the address of the DHCP server itself? If so, try: more /var/db/dhclient.leases | grep server Dru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message