Date: Mon, 11 Feb 2013 23:30:30 -0800 From: hiren panchasara <hiren.panchasara@gmail.com> To: h bagade <bagadeh@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: how to find out if an IP address is assigned statically or dynamically? Message-ID: <CALCpEUE4d9zhJy8cXFSAeRbgGHQmcMeo7WUFhViq06_h7bxt3Q@mail.gmail.com> In-Reply-To: <CAARSjE2=izj=aXMnt_uMqdXN0W_Qo%2BDTJZnf81eWJf63LkdTpQ@mail.gmail.com> References: <CAARSjE2=izj=aXMnt_uMqdXN0W_Qo%2BDTJZnf81eWJf63LkdTpQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 11, 2013 10:44 PM, "h bagade" <bagadeh@gmail.com> 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.<interface_name> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALCpEUE4d9zhJy8cXFSAeRbgGHQmcMeo7WUFhViq06_h7bxt3Q>