Vous êtes sur la page 1sur 2

# # Sample configuration file for ISC dhcpd for Debian # # Attention: If /etc/ltsp/dhcpd.

conf exists, that will be used as # configuration file instead of this file. # # # he ddns!updates!st"le parameter controls whether or not the ser#er will # attempt to do a D$S update when a lease is confirmed. %e default to the # beha#ior of the #ersion & pac'ages ()none), since D*C+ #& didn)t # ha#e support for DD$S., ddns!update!st"le none# option definitions common to all supported networ's... option domain!name .example.org.option domain!name!ser#ers ns/.example.org, ns&.example.orgdefault!lease!time 011max!lease!time 2&11# If this D*C+ ser#er is the official D*C+ ser#er for the local # networ', the authoritati#e directi#e should be uncommented. #authoritati#e# 3se this to send dhcp log messages to a different log file ("ou also # ha#e to hac' s"slog.conf to complete the redirection,. log!facilit" local2# $o ser#ice will be gi#en on this subnet, but declaring it helps the # D*C+ ser#er to understand the networ' topolog". #subnet /1./4&./52.1 netmas' &44.&44.&44.1 6 #7 # his is a #er" basic subnet declaration.

#subnet /1.&48.&9:.1 netmas' &44.&44.&44.&&8 6 # range /1.&48.&9:./1 /1.&48.&9:.&1# option routers rtr!&9:!1!/.example.org, rtr!&9:!1!&.example.org#7 # his declaration allows ;<< + clients to get d"namic addresses, # which we don)t reall" recommend. #subnet /1.&48.&9:.9& netmas' &44.&44.&44.&&8 6 # range d"namic!bootp /1.&48.&9:.81 /1.&48.&9:.01# option broadcast!address /1.&48.&9:.9/# option routers rtr!&9:!9&!/.example.org#7 # A slightl" different configuration for an internal subnet. subnet /2&./0.1.1 netmas' &44.&44.1.1 6 range /2&./0./.& /2&./0./.&48# option domain!name!ser#ers ns/.internal.example.org# option domain!name .internal.example.org.option routers /2&./0././option broadcast!address /2&./0./.&44-

7 # # # #

default!lease!time 011max!lease!time 2&11*osts which re=uire special configuration options can be listed in host statements. If no address is specified, the address will be allocated d"namicall" (if possible,, but the host!specific information will still come from the host declaration.

#host passacaglia 6 # hardware ethernet 1:1:c1:4d:bd::4# filename .#munix.passacaglia.# ser#er!name .toccata.fugue.com.#7 # >ixed I+ addresses can also be specified for hosts. hese addresses # should not also be listed as being a#ailable for d"namic assignment. # *osts for which fixed I+ addresses ha#e been specified can boot using # ;<< + or D*C+. *osts for which no fixed address is specified can onl" # be booted with D*C+, unless there is an address range on the subnet # to which a ;<< + client is connected which has the d"namic!bootp flag # set. #host fantasia 6 # hardware ethernet 15:11:12:&0:c1:a4# fixed!address fantasia.fugue.com#7 # # # # ?ou can declare a class of clients and then do address allocation based on that. he example below shows a case where all clients in a certain class get addresses on the /1./2.&&8/&8 subnet, and all other clients get addresses on the /1.1.&:/&8 subnet.

#class .foo. 6 # match if substring (option #endor!class!identifier, 1, 8, @ .S3$%.#7 #shared!networ' &&8!&: 6 # subnet /1./2.&&8.1 netmas' &44.&44.&44.1 6 # option routers rtr!&&8.example.org# 7 # subnet /1.1.&:.1 netmas' &44.&44.&44.1 6 # option routers rtr!&:.example.org# 7 # pool 6 # allow members of .foo.# range /1./2.&&8./1 /1./2.&&8.&41# 7 # pool 6 # den" members of .foo.# range /1.1.&:./1 /1.1.&:.&91# 7 #7

Vous aimerez peut-être aussi