several-subnets.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # This is an example configuration file for DHCPv6 server in Kea.
  2. # It's a basic scenario with four IPv6 subnets configured. In each
  3. # subnet, there's a smaller pool of dynamic addresses.
  4. { "Dhcp6":
  5. {
  6. # Kea is told to listen on ethX interface only.
  7. "interfaces": [ "ethX" ],
  8. # We need to specify lease type. As of May 2014, three backends are supported:
  9. # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require
  10. # any prior set up.
  11. "lease-database": {
  12. "type": "memfile"
  13. },
  14. # Addresses will be assigned with preferred and valid lifetimes
  15. # being 3000 and 4000, respectively. Client is told to start
  16. # renewing after 1000 seconds. If the server does not repond
  17. # after 2000 seconds since the lease was granted, client is supposed
  18. # to start REBIND procedure (emergency renewal that allows switching
  19. # to a different server).
  20. "preferred-lifetime": 3000,
  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. "subnet6": [
  27. { "pools": [ { "pool": "2001:db8:1::/80" } ],
  28. "subnet": "2001:db8:1::/64" },
  29. { "pools": [ { "pool": "2001:db8:2::/80" } ],
  30. "subnet": "2001:db8:2::/64" },
  31. { "pools": [ { "pool": "2001:db8:3::/80" } ],
  32. "subnet": "2001:db8:3::/64" },
  33. { "pools": [ { "pool": "2001:db8:4::/80" } ],
  34. "subnet": "2001:db8:4::/64" } ]
  35. },
  36. # The following configures logging. It assumes that warning messages
  37. # will be logged to stdout.
  38. "Logging": {
  39. "loggers": [
  40. {
  41. "name": "kea-dhcp6",
  42. "output_options": [
  43. {
  44. "output": "stdout"
  45. }
  46. ],
  47. "severity": "WARN"
  48. }
  49. ]
  50. }
  51. }