blob: 6550cab081ed12531e119b4d549e305f6ad66bf1 [file] [log] [blame]
Russ Dill61fb4892002-10-14 21:41:28 +00001# Sample udhcpd configuration file (/etc/udhcpd.conf)
Denys Vlasenko2b0e9572009-06-17 13:22:26 +02002# Values shown are defaults
Russ Dill61fb4892002-10-14 21:41:28 +00003
4# The start and end of the IP lease block
Denys Vlasenko2b0e9572009-06-17 13:22:26 +02005start 192.168.0.20
6end 192.168.0.254
Russ Dill61fb4892002-10-14 21:41:28 +00007
8# The interface that udhcpd will use
Denys Vlasenko2b0e9572009-06-17 13:22:26 +02009interface eth0
Russ Dill61fb4892002-10-14 21:41:28 +000010
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020011# The maximim number of leases (includes addresses reserved
12# by OFFER's, DECLINE's, and ARP conficts). Will be corrected
13# if it's bigger than IP lease block, but it ok to make it
14# smaller than lease block.
15#max_leases 254
Russ Dill61fb4892002-10-14 21:41:28 +000016
17# The time period at which udhcpd will write out a dhcpd.leases
18# file. If this is 0, udhcpd will never automatically write a
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020019# lease file. Specified in seconds.
20#auto_time 7200
Russ Dill61fb4892002-10-14 21:41:28 +000021
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020022# The amount of time that an IP will be reserved (leased to nobody)
23# if a DHCP decline message is received (seconds).
24#decline_time 3600
Russ Dill61fb4892002-10-14 21:41:28 +000025
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020026# The amount of time that an IP will be reserved
27# if an ARP conflct occurs (seconds).
28#conflict_time 3600
Russ Dill61fb4892002-10-14 21:41:28 +000029
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020030# How long an offered address is reserved (seconds).
31#offer_time 60
Russ Dill61fb4892002-10-14 21:41:28 +000032
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020033# If client asks for lease below this value, it will be rounded up
34# to this value (seconds).
35#min_lease 60
Russ Dill61fb4892002-10-14 21:41:28 +000036
37# The location of the leases file
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020038#lease_file /var/lib/misc/udhcpd.leases
Russ Dill61fb4892002-10-14 21:41:28 +000039
40# The location of the pid file
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020041#pidfile /var/run/udhcpd.pid
Russ Dill61fb4892002-10-14 21:41:28 +000042
43# Everytime udhcpd writes a leases file, the below script will be called.
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020044#notify_file # default: no script
45#notify_file dumpleases # useful for debugging
Russ Dill61fb4892002-10-14 21:41:28 +000046
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020047# The following are bootp specific options, settable by udhcpd.
Russ Dill61fb4892002-10-14 21:41:28 +000048#siaddr 192.168.0.22 #default: 0.0.0.0
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020049#sname zorak #default: none
50#boot_file /var/nfs_root #default: none
Russ Dill61fb4892002-10-14 21:41:28 +000051
52# The remainer of options are DHCP options and can be specifed with the
53# keyword 'opt' or 'option'. If an option can take multiple items, such
54# as the dns option, they can be listed on the same line, or multiple
55# lines. The only option with a default is 'lease'.
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020056# Examples:
Russ Dill61fb4892002-10-14 21:41:28 +000057opt dns 192.168.10.2 192.168.10.10
58option subnet 255.255.255.0
59opt router 192.168.10.2
60opt wins 192.168.10.10
61option dns 129.219.13.81 # appened to above DNS servers for a total of 3
62option domain local
63option lease 864000 # 10 days of seconds
64
Denys Vlasenko2b0e9572009-06-17 13:22:26 +020065# Currently supported options (for more info, see options.c):
Russ Dill920c1e82002-12-11 21:39:13 +000066#opt subnet
67#opt timezone
68#opt router
Denis Vlasenko1d614162007-12-25 15:32:56 +000069#opt timesrv
70#opt namesrv
Russ Dill920c1e82002-12-11 21:39:13 +000071#opt dns
Denis Vlasenko1d614162007-12-25 15:32:56 +000072#opt logsrv
73#opt cookiesrv
74#opt lprsrv
Russ Dill920c1e82002-12-11 21:39:13 +000075#opt bootsize
76#opt domain
Denis Vlasenko1d614162007-12-25 15:32:56 +000077#opt swapsrv
Russ Dill920c1e82002-12-11 21:39:13 +000078#opt rootpath
79#opt ipttl
80#opt mtu
81#opt broadcast
82#opt wins
83#opt lease
84#opt ntpsrv
85#opt tftp
86#opt bootfile
Eric Andersenabf58d62004-10-08 08:49:26 +000087
Eric Andersenabf58d62004-10-08 08:49:26 +000088# Static leases map
89#static_lease 00:60:08:11:CE:4E 192.168.0.54
90#static_lease 00:60:08:11:CE:3E 192.168.0.44