udhcpd-p2p.conf 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # Sample udhcpd configuration file (/etc/udhcpd.conf)
  2. # The start and end of the IP lease block
  3. start 192.168.42.20 #default: 192.168.0.20
  4. end 192.168.42.254 #default: 192.168.0.254
  5. # The interface that udhcpd will use
  6. interface wlan2 #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-wlan2.pid #default: /var/run/udhcpd.pid
  35. # Every time 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.2.1
  49. option subnet 255.255.255.0
  50. option domain atherosowl.com
  51. option lease 864000 # 10 days of seconds
  52. # Currently supported options, for more info, see options.c
  53. #opt subnet
  54. #opt timezone
  55. #opt router
  56. #opt timesvr
  57. #opt namesvr
  58. #opt dns
  59. #opt logsvr
  60. #opt cookiesvr
  61. #opt lprsvr
  62. #opt bootsize
  63. #opt domain
  64. #opt swapsvr
  65. #opt rootpath
  66. #opt ipttl
  67. #opt mtu
  68. #opt broadcast
  69. #opt wins
  70. #opt lease
  71. #opt ntpsrv
  72. #opt tftp
  73. #opt bootfile
  74. # Static leases map
  75. #static_lease 00:60:08:11:CE:4E 192.168.0.54
  76. #static_lease 00:60:08:11:CE:3E 192.168.0.44