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