Date: Tue, 12 Feb 2013 02:49:16 -0500 From: Jason Hellenthal <jhellenthal@DataIX.net> To: hiren panchasara <hiren.panchasara@gmail.com> Cc: h bagade <bagadeh@gmail.com>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Re: how to find out if an IP address is assigned statically or dynamically? Message-ID: <96DC616D-A250-41BC-9A47-4FA6A57B8054@DataIX.net> In-Reply-To: <CALCpEUE4d9zhJy8cXFSAeRbgGHQmcMeo7WUFhViq06_h7bxt3Q@mail.gmail.com> References: <CAARSjE2=izj=aXMnt_uMqdXN0W_Qo%2BDTJZnf81eWJf63LkdTpQ@mail.gmail.com> <CALCpEUE4d9zhJy8cXFSAeRbgGHQmcMeo7WUFhViq06_h7bxt3Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <hiren.panchasara@gmail.com> wrot= e: > On Feb 11, 2013 10:44 PM, "h bagade" <bagadeh@gmail.com> 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.<interface_name> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96DC616D-A250-41BC-9A47-4FA6A57B8054>