leases-expiration.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 the the database used to store leases. As of
  11. # September 2016, four database backends are supported: MySQL,
  12. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
  13. # We'll use memfile because it doesn't require any prior set up.
  14. "lease-database": {
  15. "type": "memfile",
  16. "lfc-interval": 3600
  17. },
  18. # The following parameters control processing expired leases. Expired leases
  19. # will be reclaimed periodically according to the "reclaim-timer-wait-time"
  20. # parameter. Reclaimed leases will be held in the database for 1800s to
  21. # facilitate lease affinity. After this period the leases will be removed.
  22. # The frequency of removal is controlled by the "flush-reclaimed-timer-wait-time"
  23. # parameter. The lease reclamation routine will process at most 500 leases
  24. # or will last for at most 100ms, during a single run. If there are still
  25. # some unreclaimed leases after 10 attempts, a warning message is issued.
  26. "expired-leases-processing": {
  27. "reclaim-timer-wait-time": 5,
  28. "hold-reclaimed-time": 1800,
  29. "flush-reclaimed-timer-wait-time": 10,
  30. "max-reclaim-leases": 500,
  31. "max-reclaim-time": 100,
  32. "unwarned-reclaim-cycles": 10
  33. },
  34. # Addresses will be assigned with preferred and valid lifetimes
  35. # being 3000 and 4000, respectively. Client is told to start
  36. # renewing after 1000 seconds. If the server does not respond
  37. # after 2000 seconds since the lease was granted, client is supposed
  38. # to start REBIND procedure (emergency renewal that allows switching
  39. # to a different server).
  40. "preferred-lifetime": 3000,
  41. "valid-lifetime": 4000,
  42. "renew-timer": 1000,
  43. "rebind-timer": 2000,
  44. # The following list defines subnets. Each subnet consists of at
  45. # least subnet and pool entries.
  46. "subnet6": [
  47. {
  48. "pools": [ { "pool": "2001:db8:1::/80" } ],
  49. "subnet": "2001:db8:1::/64",
  50. "interface": "ethX"
  51. }
  52. ]
  53. },
  54. # The following configures logging. It assumes that messages with at least
  55. # informational level (info, warn, error and fatal) should be logged to stdout.
  56. "Logging": {
  57. "loggers": [
  58. {
  59. "name": "kea-dhcp6",
  60. "output_options": [
  61. {
  62. "output": "stdout"
  63. }
  64. ],
  65. "debuglevel": 0,
  66. "severity": "INFO"
  67. }
  68. ]
  69. }
  70. }