1 # Sample udhcpd configuration file (/etc/udhcpd.conf)
2 # Values shown are defaults
4 # The start and end of the IP lease block
8 # The interface that udhcpd will use
11 # The maximum number of leases (includes addresses reserved
12 # by OFFER's, DECLINE's, and ARP conflicts). Will be corrected
13 # if it's bigger than IP lease block, but it ok to make it
14 # smaller than lease block.
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
19 # lease file. Specified in seconds.
22 # The amount of time that an IP will be reserved (leased to nobody)
23 # if a DHCP decline message is received (seconds)
26 # The amount of time that an IP will be reserved
27 # if an ARP conflict occurs (seconds)
30 # How long an offered address is reserved (seconds)
33 # If client asks for lease below this value, it will be rounded up
34 # to this value (seconds)
37 # The location of the leases file
38 #lease_file /var/lib/misc/udhcpd.leases
40 # The location of the pid file
41 #pidfile /var/run/udhcpd.pid
43 # Every time udhcpd writes a leases file, the below script will be called
44 #notify_file # default: no script
45 #notify_file dumpleases # useful for debugging
47 # The following are bootp specific options
48 # next server to use in bootstrap
49 #siaddr 192.168.0.22 # default: 0.0.0.0 (none)
51 #sname zorak # default: none
52 # tftp file to download (e.g. kernel image)
53 #boot_file /var/nfs_root # default: none
56 #static_lease 00:60:08:11:CE:4E 192.168.0.54
57 #static_lease 00:60:08:11:CE:3E 192.168.0.44
59 # The remainder of options are DHCP options and can be specified with the
60 # keyword 'opt' or 'option'. If an option can take multiple items, such
61 # as the dns option, they can be listed on the same line, or multiple
64 opt dns 192.168.10.2 192.168.10.10
65 option subnet 255.255.255.0
66 opt router 192.168.10.2
67 opt wins 192.168.10.10
68 option dns 129.219.13.81 # appended to above DNS servers for a total of 3
70 option lease 864000 # default: 10 days
71 # Arbitrary option in hex form:
72 option 0x08 01020304 # option 8: "cookie server IP addr: 1.2.3.4"
74 # Currently supported options (for more info, see options.c):
81 #opt hostname STRING # client's hostname
82 #opt domain STRING # client's domain suffix
83 #opt search STRING_LIST # search domains
85 #opt timezone NUM # (localtime - UTC_time) in seconds. signed
86 #opt tftp STRING # tftp server name
87 #opt bootfile STRING # tftp file to download (e.g. kernel image)
88 #opt bootsize NUM # size of that file
89 #opt rootpath STRING # (NFS) path to mount as root fs
91 #opt serverid IP # default: server's IP
92 #opt message STRING # error message (udhcpd sends it on success too)
93 # Options specifying server(s)
100 # Obsolete options, no longer supported
101 #opt logsrv IP_LIST # 704/UDP log server (not syslog!)
102 #opt namesrv IP_LIST # IEN 116 name server, obsolete (August 1979!!!)
103 #opt cookiesrv IP_LIST # RFC 865 "quote of the day" server, rarely (never?) used
104 #opt timesrv IP_LIST # RFC 868 time server, rarely (never?) used