Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2001 22:08:29 -0500
From:      David Kelly <dkelly@hiwaay.net>
To:        =?iso-8859-1?q?Keith=20Spencer?= <bsd2000au@yahoo.com.au>
Cc:        fbsd <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How to find out DHCP ip? 
Message-ID:  <200108290308.f7T38Tw72598@grumpy.dyndns.org>
In-Reply-To: Message from =?iso-8859-1?q?Keith=20Spencer?= <bsd2000au@yahoo.com.au>  of "Wed, 29 Aug 2001 10:33:19 %2B1000." <20010829003319.26322.qmail@web12008.mail.yahoo.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
=?iso-8859-1?q?Keith=20Spencer?= writes:
> 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??

I use a variation of this in my ipfw firewall script:

        ip=$(/sbin/ifconfig $nic | awk '/inet / {print $2}')

But its not clear this is what you are asking.

-- 
David Kelly N4HHE, dkelly@hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.



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?200108290308.f7T38Tw72598>