Home | History | Annotate | Line # | Download | only in examples
      1      1.1  christos # Sample udhcpd configuration file (/etc/udhcpd.conf)
      2      1.1  christos 
      3      1.1  christos # The start and end of the IP lease block
      4      1.1  christos 
      5      1.1  christos start 		192.168.42.20	#default: 192.168.0.20
      6      1.1  christos end		192.168.42.254	#default: 192.168.0.254
      7      1.1  christos 
      8      1.1  christos 
      9      1.1  christos # The interface that udhcpd will use
     10      1.1  christos 
     11      1.1  christos interface	wlan2		#default: eth0
     12      1.1  christos 
     13      1.1  christos 
     14  1.1.1.2  christos # The maximum number of leases (includes addresses reserved
     15  1.1.1.2  christos # by OFFER's, DECLINE's, and ARP conflicts)
     16      1.1  christos 
     17      1.1  christos #max_leases	254		#default: 254
     18      1.1  christos 
     19      1.1  christos 
     20      1.1  christos # If remaining is true (default), udhcpd will store the time
     21      1.1  christos # remaining for each lease in the udhcpd leases file. This is
     22      1.1  christos # for embedded systems that cannot keep time between reboots.
     23      1.1  christos # If you set remaining to no, the absolute time that the lease
     24      1.1  christos # expires at will be stored in the dhcpd.leases file.
     25      1.1  christos 
     26      1.1  christos #remaining	yes		#default: yes
     27      1.1  christos 
     28      1.1  christos 
     29      1.1  christos # The time period at which udhcpd will write out a dhcpd.leases
     30      1.1  christos # file. If this is 0, udhcpd will never automatically write a
     31      1.1  christos # lease file. (specified in seconds)
     32      1.1  christos 
     33      1.1  christos #auto_time	7200		#default: 7200 (2 hours)
     34      1.1  christos 
     35      1.1  christos 
     36      1.1  christos # The amount of time that an IP will be reserved (leased) for if a
     37      1.1  christos # DHCP decline message is received (seconds).
     38      1.1  christos 
     39      1.1  christos #decline_time	3600		#default: 3600 (1 hour)
     40      1.1  christos 
     41      1.1  christos 
     42      1.1  christos # The amount of time that an IP will be reserved (leased) for if an
     43      1.1  christos # ARP conflct occurs. (seconds
     44      1.1  christos 
     45      1.1  christos #conflict_time	3600		#default: 3600 (1 hour)
     46      1.1  christos 
     47      1.1  christos 
     48      1.1  christos # How long an offered address is reserved (leased) in seconds
     49      1.1  christos 
     50      1.1  christos #offer_time	60		#default: 60 (1 minute)
     51      1.1  christos 
     52      1.1  christos # If a lease to be given is below this value, the full lease time is
     53      1.1  christos # instead used (seconds).
     54      1.1  christos 
     55  1.1.1.2  christos #min_lease	60		#default: 60
     56      1.1  christos 
     57      1.1  christos 
     58      1.1  christos # The location of the leases file
     59      1.1  christos 
     60  1.1.1.2  christos #lease_file	/var/lib/misc/udhcpd.leases	#default: /var/lib/misc/udhcpd.leases
     61      1.1  christos 
     62      1.1  christos # The location of the pid file
     63      1.1  christos pidfile	/var/run/udhcpd-wlan2.pid	#default: /var/run/udhcpd.pid
     64      1.1  christos 
     65      1.1  christos # Every time udhcpd writes a leases file, the below script will be called.
     66      1.1  christos # Useful for writing the lease file to flash every few hours.
     67      1.1  christos 
     68      1.1  christos #notify_file				#default: (no script)
     69      1.1  christos 
     70      1.1  christos #notify_file	dumpleases 	# <--- useful for debugging
     71      1.1  christos 
     72      1.1  christos # The following are bootp specific options, setable by udhcpd.
     73      1.1  christos 
     74      1.1  christos #siaddr		192.168.0.22		#default: 0.0.0.0
     75      1.1  christos 
     76      1.1  christos #sname		zorak			#default: (none)
     77      1.1  christos 
     78      1.1  christos #boot_file	/var/nfs_root		#default: (none)
     79      1.1  christos 
     80  1.1.1.2  christos # The remainder of options are DHCP options and can be specified with the
     81      1.1  christos # keyword 'opt' or 'option'. If an option can take multiple items, such
     82      1.1  christos # as the dns option, they can be listed on the same line, or multiple
     83      1.1  christos # lines. The only option with a default is 'lease'.
     84      1.1  christos 
     85      1.1  christos #Examles
     86      1.1  christos opt	dns	192.168.2.1
     87      1.1  christos option	subnet	255.255.255.0
     88      1.1  christos option	domain	atherosowl.com
     89      1.1  christos option	lease	864000		# 10 days of seconds
     90      1.1  christos 
     91      1.1  christos 
     92      1.1  christos # Currently supported options, for more info, see options.c
     93      1.1  christos #opt subnet
     94      1.1  christos #opt timezone
     95      1.1  christos #opt router
     96      1.1  christos #opt timesvr
     97      1.1  christos #opt namesvr
     98      1.1  christos #opt dns
     99      1.1  christos #opt logsvr
    100      1.1  christos #opt cookiesvr
    101      1.1  christos #opt lprsvr
    102      1.1  christos #opt bootsize
    103      1.1  christos #opt domain
    104      1.1  christos #opt swapsvr
    105      1.1  christos #opt rootpath
    106      1.1  christos #opt ipttl
    107      1.1  christos #opt mtu
    108      1.1  christos #opt broadcast
    109      1.1  christos #opt wins
    110      1.1  christos #opt lease
    111      1.1  christos #opt ntpsrv
    112      1.1  christos #opt tftp
    113      1.1  christos #opt bootfile
    114      1.1  christos 
    115      1.1  christos 
    116      1.1  christos # Static leases map
    117      1.1  christos #static_lease 00:60:08:11:CE:4E 192.168.0.54
    118      1.1  christos #static_lease 00:60:08:11:CE:3E 192.168.0.44
    119