udhcpd.conf 2.4 KB

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