Subject: Re: IP addy using DHCP
To: None <port-macppc@netbsd.org>
From: paul beard <paulbeard@mac.com>
List: port-macppc
Date: 01/22/2002 19:38:34
this is what I see (on freeBSD): wouldn't ifconfig -a suffice?

lease {
   interface "xl0";
   fixed-address 12.228.75.82; <- this would be the one
   option subnet-mask 255.255.248.0;
   option routers 12.228.72.1;
<snippage>

[/home/paul]:: ifconfig -a
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet6 fe80::210:5aff:fe9b:1c02%xl0 prefixlen 64 scopeid 0x1
         inet 12.228.75.82 netmask 0xfffff800 broadcast 255.255.255.255
         ether 00:10:5a:9b:1c:02
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active



William Waites wrote:

> On Tue, Jan 22, 2002 at 08:51:29PM -0600, Jeff Hergan wrote:
> 
>>How do I find out what the IP address is once I get DHCP running on the 
>>latest 1.5 NetBSD?
>>
> 
> Have a look in /var/db/dhclient.leases, I believe the last 
> entry refers to the most recent lease.
> 
> -w
>