From owner-freebsd-net@FreeBSD.ORG Tue Feb 12 07:49:32 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 381EB3F8 for ; Tue, 12 Feb 2013 07:49:32 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-ia0-x22f.google.com (ia-in-x022f.1e100.net [IPv6:2607:f8b0:4001:c02::22f]) by mx1.freebsd.org (Postfix) with ESMTP id C6FAFA52 for ; Tue, 12 Feb 2013 07:49:31 +0000 (UTC) Received: by mail-ia0-f175.google.com with SMTP id r4so7325441iaj.34 for ; Mon, 11 Feb 2013 23:49:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=bQdBmnWQzWAVXriGk/iOOLE3MaF3TtLVpfTKDbpqH78=; b=BtIi0VmWHWRu+tGn4iz50jeqRMTjU6BB6GeTisl6zBUa/QVsIctXb6Q7H41mk5ONU4 u9LB/uhyjmyn8u2/qnuW3nkCX6mEr07I6MnwsDVqwBskZhDSBn9GS+ekzMqF3nUG3yF8 y9ZUi8Icfw3Z95H0DUeLwMQO+i4FBLT81fHGLs8CStcz4pocsXBfhrmExfppMs/wBvPl 93pMrp/Yq6r1e+QnnemiLbjvBTWs+v16g5FwWBqpANGcWSVUm4SXzrYquamx215mBdPo NP2PrKD7BveKTuhXwtZadTv3NHJcZcS0WWK88BbbpDYvIR4dzDbpyw1ApMEEmjlImcRO fAUQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=x-received:sender:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=bQdBmnWQzWAVXriGk/iOOLE3MaF3TtLVpfTKDbpqH78=; b=bUEvVgIW4GQK0M4lj9ftJtEkpK393xEfBBZOsDXT1nYHShEGwASYZWLjqa5lfDzeb0 rtnA3Gf5MTkeqOME07D8witn1q9Yy6c+oHR0w1+agJCFeAUKSRoD9hjf2TOTAT1XXoI/ idAB/iN1eovr2oe1rVb3dy0Xc7ZU69SNZvQ3g= X-Received: by 10.50.135.100 with SMTP id pr4mr1467790igb.37.1360655371494; Mon, 11 Feb 2013 23:49:31 -0800 (PST) Received: from DataIX.net (24-231-147-188.dhcp.aldl.mi.charter.com. [24.231.147.188]) by mx.google.com with ESMTPS id qn10sm6043916igc.6.2013.02.11.23.49.28 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 11 Feb 2013 23:49:29 -0800 (PST) Sender: Jason Hellenthal Received: from [192.168.32.64] (sys64.wlan.DataIX.local [192.168.32.64]) (authenticated bits=0) by DataIX.net (8.14.6/8.14.6) with ESMTP id r1C7nPOP007013 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 12 Feb 2013 02:49:26 -0500 (EST) (envelope-from jhellenthal@DataIX.net) References: In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8C148) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <96DC616D-A250-41BC-9A47-4FA6A57B8054@DataIX.net> X-Mailer: iPhone Mail (8C148) From: Jason Hellenthal Subject: Re: how to find out if an IP address is assigned statically or dynamically? Date: Tue, 12 Feb 2013 02:49:16 -0500 To: hiren panchasara Cc: h bagade , "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:49:32 -0000 Just a OOB thought... But couldn't you adjust a dhclient script to be run up success and assign a d= escription to the interface that the address was dynamically configured by D= HCP. Wouldn't scale well in a large deployment but then again it might for you. BOL --=20 Jason Hellenthal JJH48-ARIN - (2^(N-1)) On Feb 12, 2013, at 2:30, hiren panchasara wrot= e: > On Feb 11, 2013 10:44 PM, "h bagade" wrote: >>=20 >> Hi all, >>=20 >> 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 processin= g >> dhclient leases files? >=20 > As per my limited knowledge, no. > The only reliable way is to look at > /var/db/dhclient.leases. files as you mentioned. >=20 > 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" > _______________________________________________ > 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"