dhclient.conf ASCII dhclient () #
dhclient.conf DHCP
DHCP :
timeout
timeout time ;
timeout 60 retry
retry
retry time;
retry DHCP DHCP 5
select-timeout
select-timeout time;
DHCP () (lease discovery message) ( )
select-timeout 1 select-timeout
select-timeout 0
reboot
reboot time;
INIT-REBOOT () reboot reboot 10
backoff-cutoff
backoff-cutoff time;
(backoff) backoff-cutoff 2
initial-interval
initial-interval time;
initial-interval 1 0 1 2 backoff-cutoff 10
DHCP DHCP DHCP DHCP dhcp-options(5)
request
request [ option ] [, ... option ];
request request DHCP subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name
request :
request;
require
require [ option ] [, ... option ];
require
send
send { [ option declaration ] [, ... option declaration ]}
send dhcp-options(5) DHCP requested-lease-time (2 )
DHCP ( dhcpd.conf(5) ) fqdn :
send fqdn.fqdn "grosse.example.com."; send fqdn.encoded on; send fqdn.server-update off;
fqdn.fqdn fqdn.encoded DHCP on off
no-client-updates
no-client-updates [ flag ] ;
DHCP DNS DHCP (dhclient-script(8) ) DNS (DHCP SIG(0) ) no-client-updates DHCP flag true flag false DHCP DNS
default
default [ option declaration ] ;
default
supersede
supersede [ option declaration ] ;
supersede
prepend
prepend [ option declaration ] ;
prepend prepend
append
append [ option declaration ] ;
append append
lease
lease { lease-declaration [ ... lease-declaration ] }
( ) DHCP ping DHCP BOOTP 1 lease
: lease DHCP dhclient.leases dhclient.leases
lease 1 :
bootp;
bootp DHCP BOOTP
interface "string";
interface dhclient.conf
fixed-address ip-address;
fixed-address IP lease IP (12.34.56.78 ) 4
filename "string";
filename
server-name "string";
server-name
option option-declaration;
option dhclient.conf
script "script-name";
script dhcp dhcp 1 dhclient-script(8)
vendor option space "name";
vendor option space vendor-encapsulate-options dhcp-vendor-identifier dhcp-options(5)
medium "media setup";
medium media setup dhcp Unix Unix ifconfig
dhcp ( media ) dhcp ()
renew date;
rebind date;
expire date;
renew (renew) dhcp rebind dhcp dhcp expire dhcp
DHCP DHCP
date
<weekday> <year>/<month>/<day> <hour>:<minute>:<second>
weekday 0 6 0 year 4 month 1 (1 ) day 1 () hour 0 23 minute second 0 59
DHCP TCP/IP (roaming) DHCP IP Internet Systems Consortium DHCP dhcp alias IP
alias lease subnet-mask (expiry times) alias interface IP subnet-mask alias medium
reject DHCP dhcp dhcp DHCP
interface "name" { declarations ... }
DHCP lease alias interface interface interface
pseudo "name" "real-name" { declarations ... }
DHCP DHCP DHCP real-name IP :
interface "ep0" {
send dhcp-client-identifier "my-client-ep0";
}
pseudo "secondary" "ep0" {
send dhcp-client-identifier "my-client-ep0-secondary";
script "/etc/dhclient-secondary";
}
dhclient-script(8)
media "media setup" [ , "media setup", ... ];
media IP 1 dhcp media setup media setup ()
media setup (DHCPDISCOVER
DHCPOFFER )
dhcp
X .SH SAMPLE ... man-jp
timeout 60;
retry 60;
reboot 10;
select-timeout 5;
initial-interval 2;
reject 192.33.137.209;
interface "ep0" {
send host-name "andare.example.com";
send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
send dhcp-lease-time 3600;
supersede domain-name "example.com rc.isc.org home.isc.org";
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
script "CLIENTBINDIR/dhclient-script";
media "media 10baseT/UTP", "media 10base2/BNC";
}
alias {
interface "ep0";
fixed-address 192.5.5.213;
option subnet-mask 255.255.255.255;
}
dhclient.conf
dhclient.conf