xref: /freebsd/sbin/dhclient/dhclient.leases.5 (revision 9a7feaa13c6948185109d6dad8d123c55d90caa2)
147c08596SBrooks Davis.\"	$OpenBSD: dhclient.leases.5,v 1.4 2004/04/15 08:59:47 jmc Exp $
247c08596SBrooks Davis.\"
347c08596SBrooks Davis.\" Copyright (c) 1997 The Internet Software Consortium.
447c08596SBrooks Davis.\" All rights reserved.
547c08596SBrooks Davis.\"
647c08596SBrooks Davis.\" Redistribution and use in source and binary forms, with or without
747c08596SBrooks Davis.\" modification, are permitted provided that the following conditions
847c08596SBrooks Davis.\" are met:
947c08596SBrooks Davis.\"
1047c08596SBrooks Davis.\" 1. Redistributions of source code must retain the above copyright
1147c08596SBrooks Davis.\"    notice, this list of conditions and the following disclaimer.
1247c08596SBrooks Davis.\" 2. Redistributions in binary form must reproduce the above copyright
1347c08596SBrooks Davis.\"    notice, this list of conditions and the following disclaimer in the
1447c08596SBrooks Davis.\"    documentation and/or other materials provided with the distribution.
1547c08596SBrooks Davis.\" 3. Neither the name of The Internet Software Consortium nor the names
1647c08596SBrooks Davis.\"    of its contributors may be used to endorse or promote products derived
1747c08596SBrooks Davis.\"    from this software without specific prior written permission.
1847c08596SBrooks Davis.\"
1947c08596SBrooks Davis.\" THIS SOFTWARE IS PROVIDED BY THE INTERNET SOFTWARE CONSORTIUM AND
2047c08596SBrooks Davis.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
2147c08596SBrooks Davis.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
2247c08596SBrooks Davis.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2347c08596SBrooks Davis.\" DISCLAIMED.  IN NO EVENT SHALL THE INTERNET SOFTWARE CONSORTIUM OR
2447c08596SBrooks Davis.\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2547c08596SBrooks Davis.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2647c08596SBrooks Davis.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
2747c08596SBrooks Davis.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
2847c08596SBrooks Davis.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2947c08596SBrooks Davis.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
3047c08596SBrooks Davis.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3147c08596SBrooks Davis.\" SUCH DAMAGE.
3247c08596SBrooks Davis.\"
3347c08596SBrooks Davis.\" This software has been written for the Internet Software Consortium
3447c08596SBrooks Davis.\" by Ted Lemon <mellon@fugue.com> in cooperation with Vixie
3547c08596SBrooks Davis.\" Enterprises.  To learn more about the Internet Software Consortium,
3647c08596SBrooks Davis.\" see ``http://www.isc.org/isc''.  To learn more about Vixie
3747c08596SBrooks Davis.\" Enterprises, see ``http://www.vix.com''.
3847c08596SBrooks Davis.\"
399a7feaa1SRuslan Ermilov.\" $FreeBSD$
409a7feaa1SRuslan Ermilov.\"
4147c08596SBrooks Davis.Dd January 1, 1997
4247c08596SBrooks Davis.Dt DHCLIENT.LEASES 5
4347c08596SBrooks Davis.Os
4447c08596SBrooks Davis.Sh NAME
4547c08596SBrooks Davis.Nm dhclient.leases
4647c08596SBrooks Davis.Nd DHCP client lease database
4747c08596SBrooks Davis.Sh DESCRIPTION
4847c08596SBrooks DavisThe Internet Software Consortium DHCP client keeps a persistent
4947c08596SBrooks Davisdatabase of leases that it has acquired that are still valid.
5047c08596SBrooks DavisThe database is a free-form ASCII file containing one valid declaration
5147c08596SBrooks Davisper lease.
5247c08596SBrooks DavisIf more than one declaration appears for a given lease,
5347c08596SBrooks Davisthe last one in the file is used.
5447c08596SBrooks DavisThe file is written as a log, so this is not an unusual occurrence.
5547c08596SBrooks Davis.Pp
5647c08596SBrooks DavisThe lease file is named
579a7feaa1SRuslan Ermilov.Pa dhclient.leases. Ns Ar IFNAME ,
5847c08596SBrooks Daviswhere
599a7feaa1SRuslan Ermilov.Ar IFNAME
6047c08596SBrooks Davisrepresents the network interface the DHCP client acquired the lease on.
6147c08596SBrooks DavisFor example, if
6247c08596SBrooks Davis.Xr dhclient 8
639a7feaa1SRuslan Ermilovis configured for the
649a7feaa1SRuslan Ermilov.Li em0
659a7feaa1SRuslan Ermilovnetwork device,
6647c08596SBrooks Davisthe lease file will be named
679a7feaa1SRuslan Ermilov.Pa dhclient.leases.em0 .
6847c08596SBrooks Davis.Pp
6947c08596SBrooks DavisThe format of the lease declarations is described in
7047c08596SBrooks Davis.Xr dhclient.conf 5 .
7147c08596SBrooks Davis.Sh FILES
729a7feaa1SRuslan Ermilov.Bl -tag -width ".Pa /var/db/dhclient.leases. Ns Ar IFNAME"
739a7feaa1SRuslan Ermilov.It Pa /var/db/dhclient.leases. Ns Ar IFNAME
7447c08596SBrooks DavisCurrent lease file.
7547c08596SBrooks Davis.El
7647c08596SBrooks Davis.Sh SEE ALSO
7747c08596SBrooks Davis.Xr dhclient.conf 5 ,
7847c08596SBrooks Davis.Xr dhcpd.conf 5 ,
799a7feaa1SRuslan Ermilov.Xr dhcp-options 5 ,
8047c08596SBrooks Davis.Xr dhclient 8 ,
8147c08596SBrooks Davis.Xr dhcpd 8
829a7feaa1SRuslan Ermilov.Rs
839a7feaa1SRuslan Ermilov.%R "RFC 2132, RFC 2131"
849a7feaa1SRuslan Ermilov.Re
8547c08596SBrooks Davis.Sh AUTHORS
869a7feaa1SRuslan Ermilov.An -nosplit
879a7feaa1SRuslan ErmilovThe
8847c08596SBrooks Davis.Xr dhclient 8
899a7feaa1SRuslan Ermilovutility
9047c08596SBrooks Daviswas written by
9147c08596SBrooks Davis.An Ted Lemon Aq mellon@vix.com
9247c08596SBrooks Davisunder a contract with Vixie Labs.
9347c08596SBrooks Davis.Pp
9447c08596SBrooks DavisThe current implementation was reworked by
9547c08596SBrooks Davis.An Henning Brauer Aq henning@openbsd.org .
96