From owner-freebsd-net@FreeBSD.ORG Tue Feb 12 07:30:37 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 380DAFA0 for ; Tue, 12 Feb 2013 07:30:37 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id A34BE9AF for ; Tue, 12 Feb 2013 07:30:36 +0000 (UTC) Received: by mail-ee0-f49.google.com with SMTP id d4so3539897eek.36 for ; Mon, 11 Feb 2013 23:30:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=tASsUxW4VRY6DfjyCtK+HjBwRnHcc92fbpnARZ+6MT4=; b=WKugf3beMRVFyhQQPXBinmdpGZricKXdb8VXqapALE6pTfHOYFP7pU/ykfkZcEvIvi 5Jvk7pW8OzZJqR8tvZUQEXQLKGCrh6GKYROMqVwlsu9XYpusRg9XEFnq73PvHEkyIoQz dmCmyi01wBsHlCqlJHS032bl4GWiNfaduxj+RjSFwQWhaf0U/+HPHtQi/oVmWwfFwPHL ujrHTys9s7sli0+EhDC70IEfBYhj2fEQ5RiQ71prqJIKpGX7Zwg4ha8GjZPzSWvEqJ1U x93zZ2UYwKGdt9luS/swBP3GyCydASF/PkMQnTvTzD9EozI3jNM5+I44pkjy6kmXiDt2 XdQw== MIME-Version: 1.0 X-Received: by 10.14.219.6 with SMTP id l6mr59174179eep.23.1360654230594; Mon, 11 Feb 2013 23:30:30 -0800 (PST) Received: by 10.14.133.204 with HTTP; Mon, 11 Feb 2013 23:30:30 -0800 (PST) Received: by 10.14.133.204 with HTTP; Mon, 11 Feb 2013 23:30:30 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Feb 2013 23:30:30 -0800 Message-ID: Subject: Re: how to find out if an IP address is assigned statically or dynamically? From: hiren panchasara To: h bagade Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2013 07:30:37 -0000 On Feb 11, 2013 10:44 PM, "h bagade" wrote: > > Hi all, > > I want to know if there is a way to find out if an interface address is > assigned by dhcp or statically? For example, any distinctive flag or > something like that on ifconfig output! or any other way except processing > dhclient leases files? As per my limited knowledge, no. The only reliable way is to look at /var/db/dhclient.leases. files as you mentioned. Hiren _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"