kea.conf.pre 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. # This is a basic configuration for the Kea DHCPv4 and DHCPv6 servers.
  2. # Subnet declarations are commented out and no interfaces are listed.
  3. # Therefore, the servers will not listen or respond to any queries.
  4. # The basic configuration must be extended to specify interfaces on
  5. # which the servers should listen. Also, subnets and options must be
  6. # declared.
  7. {
  8. # DHCPv4 configuration starts here.
  9. "Dhcp4":
  10. {
  11. # Add names of interfaces to listen on.
  12. "interfaces-config": {
  13. "interfaces": [ ]
  14. },
  15. # Use Memfile lease database backend to store leases in a CSV file.
  16. "lease-database": {
  17. "type": "memfile"
  18. },
  19. # Setup reclamation of the expired leases and leases affinity.
  20. # Expired leases will be reclaimed every 10 seconds. Every 25
  21. # seconds reclaimed leases, which have expired more than 3600
  22. # seconds ago, will be removed. The limits for leases reclamation
  23. # are 100 leases or 250 ms for a single cycle. A warning message
  24. # will be logged if there are still expired leases in the
  25. # database after 5 consecutive reclamation cycles.
  26. "expired-leases-processing": {
  27. "reclaim-timer-wait-time": 10,
  28. "flush-reclaimed-timer-wait-time": 25,
  29. "hold-reclaimed-time": 3600,
  30. "max-reclaim-leases": 100,
  31. "max-reclaim-time": 250,
  32. "unwarned-reclaim-cycles": 5
  33. },
  34. # Global (inherited by all subnets) lease lifetime is mandatory parameter.
  35. "valid-lifetime": 4000,
  36. # Below an example of the simple subnet declaration. Uncomment to
  37. # enable it. This is a list, denoted with [ ], of structure, denoted
  38. # with { }. Each structure describes a single subnet and may have
  39. # several parameters. One of those parameters is "pools" that is
  40. # also a list of structures.
  41. "subnet4": [
  42. # { "subnet": "192.0.2.0/24",
  43. # "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ] }
  44. ]
  45. },
  46. # DHCPv6 configuration starts here.
  47. "Dhcp6":
  48. {
  49. # Add names of interfaces to listen on.
  50. "interfaces-config": {
  51. "interfaces": [ ]
  52. },
  53. # Use Memfile lease database backend to store leases in a CSV file.
  54. "lease-database": {
  55. "type": "memfile"
  56. },
  57. # Setup reclamation of the expired leases and leases affinity.
  58. # Expired leases will be reclaimed every 10 seconds. Every 25
  59. # seconds reclaimed leases, which have expired more than 3600
  60. # seconds ago, will be removed. The limits for leases reclamation
  61. # are 100 leases or 250 ms for a single cycle. A warning message
  62. # will be logged if there are still expired leases in the
  63. # database after 5 consecutive reclamation cycles.
  64. "expired-leases-processing": {
  65. "reclaim-timer-wait-time": 10,
  66. "flush-reclaimed-timer-wait-time": 25,
  67. "hold-reclaimed-time": 3600,
  68. "max-reclaim-leases": 100,
  69. "max-reclaim-time": 250,
  70. "unwarned-reclaim-cycles": 5
  71. },
  72. # Addresses will be assigned with preferred and valid lifetimes
  73. # being 3000 and 4000, respectively. Client is told to start
  74. # renewing after 1000 seconds. If the server does not respond
  75. # after 2000 seconds since the lease was granted, client is supposed
  76. # to start REBIND procedure (emergency renewal that allows switching
  77. # to a different server).
  78. "preferred-lifetime": 3000,
  79. "valid-lifetime": 4000,
  80. "renew-timer": 1000,
  81. "rebind-timer": 2000,
  82. # The following list defines subnets. Uncomment to enable them.
  83. "subnet6": [
  84. # { "subnet": "2001:db8:1::/64",
  85. # "pools": [ { "pool": "2001:db8:1::/80" } ] },
  86. # { "subnet": "2001:db8:2::/64",
  87. # "pools": [ { "pool": "2001:db8:2::/80" } ] },
  88. # { "subnet": "2001:db8:3::/64",
  89. # "pools": [ { "pool": "2001:db8:3::/80" } ] },
  90. # { "subnet": "2001:db8:4::/64",
  91. # "pools": [ { "pool": "2001:db8:4::/80" } ] }
  92. ]
  93. },
  94. # DHCP DDNS configuration starts here.
  95. "DhcpDdns":
  96. {
  97. "ip-address": "127.0.0.1",
  98. "port": 53001,
  99. "tsig-keys": [],
  100. "forward-ddns" : {},
  101. "reverse-ddns" : {}
  102. },
  103. # Logging configuration starts here. It tells Kea servers to store
  104. # all log messages (on severity INFO or more) in a file.
  105. # debuglevel variable is used on DEBUG level only.
  106. "Logging":
  107. {
  108. "loggers": [
  109. {
  110. "name": "kea-dhcp4",
  111. "output_options": [
  112. {
  113. "output": "@localstatedir@/log/kea-dhcp4.log"
  114. }
  115. ],
  116. "severity": "INFO",
  117. "debuglevel": 0
  118. },
  119. {
  120. "name": "kea-dhcp6",
  121. "output_options": [
  122. {
  123. "output": "@localstatedir@/log/kea-dhcp6.log"
  124. }
  125. ],
  126. "severity": "INFO",
  127. "debuglevel": 0
  128. },
  129. {
  130. "name": "kea-dhcp-ddns",
  131. "output_options": [
  132. {
  133. "output": "@localstatedir@/log/kea-ddns.log"
  134. }
  135. ],
  136. "severity": "INFO",
  137. "debuglevel": 0
  138. }
  139. ]
  140. }
  141. }