how to find out if an IP address is assigned statically or dynamically?

hiren panchasara hiren.panchasara at gmail.com
Tue Feb 12 07:30:37 UTC 2013


On Feb 11, 2013 10:44 PM, "h bagade" <bagadeh at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"


More information about the freebsd-net mailing list