leases-expiration.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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
  23. // "flush-reclaimed-timer-wait-time" parameter. The lease reclamation
  24. // routine will process at most 500 leases or will last for at most
  25. // 100ms, during a single run. If there are still some unreclaimed
  26. // leases after 10 attempts, a warning message is issued.
  27. "expired-leases-processing": {
  28. "reclaim-timer-wait-time": 5,
  29. "hold-reclaimed-time": 1800,
  30. "flush-reclaimed-timer-wait-time": 10,
  31. "max-reclaim-leases": 500,
  32. "max-reclaim-time": 100,
  33. "unwarned-reclaim-cycles": 10
  34. },
  35. // Addresses will be assigned with preferred and valid lifetimes
  36. // being 3000 and 4000, respectively. Client is told to start
  37. // renewing after 1000 seconds. If the server does not respond
  38. // after 2000 seconds since the lease was granted, client is supposed
  39. // to start REBIND procedure (emergency renewal that allows switching
  40. // to a different server).
  41. "preferred-lifetime": 3000,
  42. "valid-lifetime": 4000,
  43. "renew-timer": 1000,
  44. "rebind-timer": 2000,
  45. // The following list defines subnets. Each subnet consists of at
  46. // least subnet and pool entries.
  47. "subnet6": [
  48. {
  49. "pools": [ { "pool": "2001:db8:1::/80" } ],
  50. "subnet": "2001:db8:1::/64",
  51. "interface": "ethX"
  52. }
  53. ]
  54. },
  55. // The following configures logging. It assumes that messages with at
  56. // least informational level (info, warn, error and fatal) should be
  57. // logged to stdout.
  58. "Logging": {
  59. "loggers": [
  60. {
  61. "name": "kea-dhcp6",
  62. "output_options": [
  63. {
  64. "output": "stdout"
  65. }
  66. ],
  67. "debuglevel": 0,
  68. "severity": "INFO"
  69. }
  70. ]
  71. }
  72. }