leases-expiration.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # This is an example configuration file for DHCPv6 server in Kea.
  2. # It provides parameters controlling processing of expired leases,
  3. # a.k.a. leases reclamation.
  4. { "Dhcp6":
  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 preferred and valid lifetimes
  33. # being 3000 and 4000, respectively. Client is told to start
  34. # renewing after 1000 seconds. If the server does not respond
  35. # after 2000 seconds since the lease was granted, client is supposed
  36. # to start REBIND procedure (emergency renewal that allows switching
  37. # to a different server).
  38. "preferred-lifetime": 3000,
  39. "valid-lifetime": 4000,
  40. "renew-timer": 1000,
  41. "rebind-timer": 2000,
  42. # The following list defines subnets. Each subnet consists of at
  43. # least subnet and pool entries.
  44. "subnet6": [
  45. {
  46. "pools": [ { "pool": "2001:db8:1::/80" } ],
  47. "subnet": "2001:db8:1::/64",
  48. "interface": "ethX"
  49. }
  50. ]
  51. },
  52. # The following configures logging. Kea will log all debug messages
  53. # to /var/log/kea-debug.log file.
  54. "Logging": {
  55. "loggers": [
  56. {
  57. "name": "kea-dhcp6",
  58. "output_options": [
  59. {
  60. "output": "/var/log/kea-debug.log"
  61. }
  62. ],
  63. "debuglevel": 99,
  64. "severity": "DEBUG"
  65. }
  66. ]
  67. }
  68. }