udhcpd.conf 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # Sample udhcpd configuration file (/etc/udhcpd.conf)
  2. # The start and end of the IP lease block
  3. start 192.168.0.20 #default: 192.168.0.20
  4. end 192.168.0.254 #default: 192.168.0.254
  5. # The interface that udhcpd will use
  6. interface eth0 #default: eth0
  7. # The maximim number of leases (includes addressesd reserved
  8. # by OFFER's, DECLINE's, and ARP conficts
  9. #max_leases 254 #default: 254
  10. # If remaining is true (default), udhcpd will store the time
  11. # remaining for each lease in the udhcpd leases file. This is
  12. # for embedded systems that cannot keep time between reboots.
  13. # If you set remaining to no, the absolute time that the lease
  14. # expires at will be stored in the dhcpd.leases file.
  15. #remaining yes #default: yes
  16. # The time period at which udhcpd will write out a dhcpd.leases
  17. # file. If this is 0, udhcpd will never automatically write a
  18. # lease file. (specified in seconds)
  19. #auto_time 7200 #default: 7200 (2 hours)
  20. # The amount of time that an IP will be reserved (leased) for if a
  21. # DHCP decline message is received (seconds).
  22. #decline_time 3600 #default: 3600 (1 hour)
  23. # The amount of time that an IP will be reserved (leased) for if an
  24. # ARP conflct occurs. (seconds
  25. #conflict_time 3600 #default: 3600 (1 hour)
  26. # How long an offered address is reserved (leased) in seconds
  27. #offer_time 60 #default: 60 (1 minute)
  28. # If a lease to be given is below this value, the full lease time is
  29. # instead used (seconds).
  30. #min_lease 60 #defult: 60
  31. # The location of the leases file
  32. #lease_file /var/lib/misc/udhcpd.leases #defualt: /var/lib/misc/udhcpd.leases
  33. # The location of the pid file
  34. #pidfile /var/run/udhcpd.pid #default: /var/run/udhcpd.pid
  35. # Everytime udhcpd writes a leases file, the below script will be called.
  36. # Useful for writing the lease file to flash every few hours.
  37. #notify_file #default: (no script)
  38. #notify_file dumpleases # <--- useful for debugging
  39. # The following are bootp specific options, setable by udhcpd.
  40. #siaddr 192.168.0.22 #default: 0.0.0.0
  41. #sname zorak #default: (none)
  42. #boot_file /var/nfs_root #default: (none)
  43. # The remainer of options are DHCP options and can be specifed with the
  44. # keyword 'opt' or 'option'. If an option can take multiple items, such
  45. # as the dns option, they can be listed on the same line, or multiple
  46. # lines. The only option with a default is 'lease'.
  47. #Examles
  48. opt dns 192.168.10.2 192.168.10.10
  49. option subnet 255.255.255.0
  50. opt router 192.168.10.2
  51. opt wins 192.168.10.10
  52. option dns 129.219.13.81 # appened to above DNS servers for a total of 3
  53. option domain local
  54. option lease 864000 # 10 days of seconds
  55. # Currently supported options, for more info, see options.c
  56. #opt subnet
  57. #opt timezone
  58. #opt router
  59. #opt timesrv
  60. #opt namesrv
  61. #opt dns
  62. #opt logsrv
  63. #opt cookiesrv
  64. #opt lprsrv
  65. #opt bootsize
  66. #opt domain
  67. #opt swapsrv
  68. #opt rootpath
  69. #opt ipttl
  70. #opt mtu
  71. #opt broadcast
  72. #opt wins
  73. #opt lease
  74. #opt ntpsrv
  75. #opt tftp
  76. #opt bootfile
  77. # Static leases map
  78. #static_lease 00:60:08:11:CE:4E 192.168.0.54
  79. #static_lease 00:60:08:11:CE:3E 192.168.0.44