dhclient-script.8 revision 1.2 $NetBSD: dhclient-script.8,v 1.2 2018/04/07 22:37:29 christos Exp $ Id: dhclient-script.8,v 1.4 2009/11/24 02:06:56 sar Exp Copyright (c) 2004,2009,2016 by Internet Systems Consortium, Inc. ("ISC") Copyright (c) 1996-2003 by Internet Software Consortium Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Internet Systems Consortium, Inc. 950 Charter Street Redwood City, CA 94063 <info (at] isc.org> https://www.isc.org/ %FreeBSD: src/contrib/isc-dhcp/client/dhclient-script.8,v 1.5.2.4 2002/04/11 10:16:45 murray Exp % $FreeBSD: doc/ja_JP.eucJP/man/man8/dhclient-script.8,v 1.13 2002/05/08 03:27:27 horikawa Exp $ dhclient-script 8
dhclient-script - DHCP
DHCP
dhclient(8)
DHCP
1
(enter) (exit)
()
/etc/resolv.conf
ETCDIR/dhclient.conf
ETCDIR/dhclient.conf
make_resolv_conf
/etc/resolv.conf
make_resolv_conf
ETCDIR/dhclient-enter-hooks
Bourne '.'
exit_status 0
CLIENTBINDIR/dhclient-script
CLIENTBINDIR/dhclient-script
ETCDIR/dhclient-exit-hooks '.'
dhclient-script
dhclient-exit-hooks exit_status
0
dhclient-enter-hooks
ETCDIR/dhclient-exit-hooks exit_status
dhclient-script
dhclient
CLIENTBINDIR/dhclient-script
$reason
:
MEDIUM, PREINIT, BOUND, RENEW, REBIND, REBOOT,
EXPIRE, FAIL, TIMEOUT
MEDIUM
DHCP
$interface $medium
PREINIT
DHCP
BSD
IP 0.0.0.0 255.255.255.255
IP
$interface $medium
IP dhclient.conf
$alias_ip_address
IP
IP
BOUND
DHCP
IP $new_ip_address
$interface
$medium
dhcp-options
('-') ('_')
new_
$new_subnet_mask
dhclient-script
ARP 0
DHCPDECLINE
RENEW, REBIND, REBOOT
$new_domain_name $new_domain_name_servers
()
/etc/resolv.conf
$new_routers
$new_static_routes
IP
IP $alias_ip_address
DHCP ()
$new_ $alias_
IP IP ($new_ip_address)
RENEW
BOUND
$new_ $old
BOUND
REBIND
DHCP DHCP
RENEW IP
ARP
REBOOT
DHCP
BOUND
EXPIRE
DHCP
IP
RENEW REBIND
FAIL
DHCP DHCP
IP
EXPIRE
TIMEOUT
DHCP DHCP
BOUND
0
0
REBIND
()
$routers ping
$new_static_routers
$new_routers ping
Internet Systems Consortium DHCP
client/
scripts
dhclient-script /
etc/
resolv.conf
/
etc/
resolv.conf
dhclient.conf(5), dhclient.leases(5), dhclient(8)
dhclient-script(8) Ted Lemon
Vixie Enterprises Internet Systems Consortium
Internet Systems Consortium
https://www.isc.org
Vixie Enterprises
http://www.vix.com