From owner-freebsd-questions@FreeBSD.ORG Tue Dec 2 14:05:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF48516A4CF for ; Tue, 2 Dec 2003 14:05:08 -0800 (PST) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D83F43FDD for ; Tue, 2 Dec 2003 14:05:07 -0800 (PST) (envelope-from msmith@code-fu.com) Received: (qmail 32630 invoked from network); 2 Dec 2003 22:05:06 -0000 Received: from unknown (HELO code-fu.com) ([66.92.151.60]) (envelope-sender )encrypted SMTP for ; 2 Dec 2003 22:05:06 -0000 Message-ID: <3FCD0C92.7080508@code-fu.com> Date: Tue, 02 Dec 2003 17:05:06 -0500 From: "Michael A. Smith" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031109 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: getting DHCP-assigned IP address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2003 22:05:09 -0000 Is there an easy way to get the IP address that DHCP has assigned to an interface? I know I can do it the hard way -- parsing the results of ifconfig with regular expressions -- but I suspect there's a much easier way. -- Michael A. Smith Programmer at Large