leases-expiration.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # This is an example configuration file for the DHCPv4 server in Kea.
  2. # It provides parameters controlling processing of expired leases,
  3. # a.k.a. leases reclamation.
  4. { "Dhcp4":
  5. {
  6. # Kea is told to listen on ethX interface only.
  7. "interfaces-config": {
  8. "interfaces": [ "ethX" ]
  9. },
  10. # We need to specify lease type. As of May 2014, three backends are supported:
  11. # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require
  12. # any prior set up.
  13. "lease-database": {
  14. "type": "memfile"
  15. },
  16. # The following parameters control processing expired leases. Expired leases
  17. # will be reclaimed periodically according to the "reclaim-timer-wait-time"
  18. # parameter. Reclaimed leases will be held in the database for 1800s to
  19. # facilitate lease affinity. After this period the leases will be removed.
  20. # The frequency of removal is controlled by the "flush-reclaimed-timer-wait-time"
  21. # parameter. The lease reclamation routine will process at most 500 leases
  22. # or will last for at most 100ms, during a single run. If there are still
  23. # some unreclaimed leases after 10 attempts, a warning message is issued.
  24. "expired-leases-processing": {
  25. "reclaim-timer-wait-time": 5,
  26. "hold-reclaimed-time": 1800,
  27. "flush-reclaimed-timer-wait-time": 10,
  28. "max-reclaim-leases": 500,
  29. "max-reclaim-time": 100,
  30. "unwarned-reclaim-cycles": 10
  31. },
  32. # Addresses will be assigned with valid lifetimes being 4000. Client
  33. # is told to start renewing after 1000 seconds. If the server does not respond
  34. # after 2000 seconds since the lease was granted, client is supposed
  35. # to start REBIND procedure (emergency renewal that allows switching
  36. # to a different server).
  37. "valid-lifetime": 4000,
  38. # The following list defines subnets. We have only one subnet
  39. # here. We tell Kea that it is directly available over local interface.
  40. "subnet4": [
  41. {
  42. "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ],
  43. "subnet": "192.0.2.0/24",
  44. "interface": "ethX"
  45. }
  46. ]
  47. },
  48. # The following configures logging. It assumes that messages with at least
  49. # informational level (info, warn, error) will will be logged to stdout.
  50. "Logging": {
  51. "loggers": [
  52. {
  53. "name": "kea-dhcp4",
  54. "output_options": [
  55. {
  56. "output": "stdout"
  57. }
  58. ],
  59. "severity": "INFO"
  60. }
  61. ]
  62. }
  63. }