several-subnets.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # This is an example configuration file for DHCPv4 server in Kea.
  2. # It's a basic scenario with three IPv4 subnets configured. In each
  3. # subnet, there's a smaller pool of dynamic addresses.
  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. # Addresses will be assigned with the valid lifetimes being 4000.
  17. # Client is told to start renewing after 1000 seconds. If the server
  18. # does not respond after 2000 seconds since the lease was granted, client
  19. # is supposed to start REBIND procedure (emergency renewal that allows
  20. # switching to a different server).
  21. "valid-lifetime": 4000,
  22. "renew-timer": 1000,
  23. "rebind-timer": 2000,
  24. # The following list defines subnets. Each subnet consists of at
  25. # least subnet and pool entries.
  26. "subnet4": [
  27. { "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ],
  28. "subnet": "192.0.2.0/24" },
  29. { "pools": [ { "pool": "192.0.3.100 - 192.0.3.200" } ],
  30. "subnet": "192.0.3.0/24" },
  31. { "pools": [ { "pool": "192.0.4.1 - 192.0.4.254" } ],
  32. "subnet": "192.0.4.0/24" } ]
  33. },
  34. # The following configures logging. Kea will log all debug messages
  35. # to /var/log/kea-debug.log file.
  36. "Logging": {
  37. "loggers": [
  38. {
  39. "name": "kea-dhcp4",
  40. "output_options": [
  41. {
  42. "output": "/var/log/kea-debug.log"
  43. }
  44. ],
  45. "debuglevel": 99,
  46. "severity": "DEBUG"
  47. }
  48. ]
  49. }
  50. }