simple.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # This is an example configuration file for DHCPv6 server in Kea.
  2. # It's a basic scenario with one IPv6 subnet configured. It is
  3. # assumed that one subnet (2001:db8:1::/64 is available directly
  4. # over ethX interface.
  5. { "Dhcp6":
  6. {
  7. # Kea is told to listen on ethX interface only.
  8. "interfaces-config": {
  9. "interfaces": [ "ethX" ]
  10. },
  11. # We need to specify lease type. As of May 2014, three backends are supported:
  12. # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require
  13. # any prior set up.
  14. "lease-database": {
  15. "type": "memfile"
  16. },
  17. # Addresses will be assigned with preferred and valid lifetimes
  18. # being 3000 and 4000, respectively. Client is told to start
  19. # renewing after 1000 seconds. If the server does not repond
  20. # after 2000 seconds since the lease was granted, client is supposed
  21. # to start REBIND procedure (emergency renewal that allows switching
  22. # to a different server).
  23. "preferred-lifetime": 3000,
  24. "valid-lifetime": 4000,
  25. "renew-timer": 1000,
  26. "rebind-timer": 2000,
  27. # The following list defines subnets. Each subnet consists of at
  28. # least subnet and pool entries.
  29. "subnet6": [
  30. {
  31. "pools": [ { "pool": "2001:db8:1::/80" } ],
  32. "subnet": "2001:db8:1::/64",
  33. "interface": "ethX"
  34. }
  35. ]
  36. },
  37. # The following configures logging. Kea will log all debug messages
  38. # to /var/log/kea-debug.log file.
  39. "Logging": {
  40. "loggers": [
  41. {
  42. "name": "kea-dhcp6",
  43. "output_options": [
  44. {
  45. "output": "/var/log/kea-debug.log"
  46. }
  47. ],
  48. "debuglevel": 99,
  49. "severity": "DEBUG"
  50. }
  51. ]
  52. }
  53. }