blob: e71aba01befd06843d0a455072221de767406070 [file] [log] [blame]
Simon Kelley7de060b2011-08-26 17:24:52 +01001.TH DHCP_RELEASE 1
2.SH NAME
3dhcp_release \- Release a DHCP lease on a the local dnsmasq DHCP server.
4.SH SYNOPSIS
5.B dhcp_release <interface> <address> <MAC address> <client_id>
6.SH "DESCRIPTION"
7A utility which forces the DHCP server running on this machine to release a
8DHCP lease.
9.PP
10Send a DHCPRELEASE message via the specified interface to tell the
11local DHCP server to delete a particular lease.
12
13The interface argument is the interface in which a DHCP
14request _would_ be received if it was coming from the client,
15rather than being faked up here.
16
17The address argument is a dotted-quad IP addresses and mandatory.
18
19The MAC address is colon separated hex, and is mandatory. It may be
20prefixed by an address-type byte followed by -, eg
21
2210-11:22:33:44:55:66
23
24but if the address-type byte is missing it is assumed to be 1, the type
25for ethernet. This encoding is the one used in dnsmasq lease files.
26
27The client-id is optional. If it is "*" then it treated as being missing.
28.SH NOTES
29MUST be run as root - will fail otherwise.
Simon Kelley1c10b9d2013-04-23 10:58:35 +010030.SH LIMITATIONS
31Only usable on IPv4 DHCP leases.
Simon Kelley7de060b2011-08-26 17:24:52 +010032.SH SEE ALSO
33.BR dnsmasq (8)
34.SH AUTHOR
35This manual page was written by Simon Kelley <simon@thekelleys.org.uk>.
36
37