simple.json 1.6 KB

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