several-subnets.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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-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 preferred and valid lifetimes
  17. # being 3000 and 4000, respectively. Client is told to start
  18. # renewing after 1000 seconds. If the server does not repond
  19. # after 2000 seconds since the lease was granted, client is supposed
  20. # to start REBIND procedure (emergency renewal that allows switching
  21. # to a different server).
  22. "preferred-lifetime": 3000,
  23. "valid-lifetime": 4000,
  24. "renew-timer": 1000,
  25. "rebind-timer": 2000,
  26. # The following list defines subnets. Each subnet consists of at
  27. # least subnet and pool entries.
  28. "subnet6": [
  29. { "pools": [ { "pool": "2001:db8:1::/80" } ],
  30. "subnet": "2001:db8:1::/64" },
  31. { "pools": [ { "pool": "2001:db8:2::/80" } ],
  32. "subnet": "2001:db8:2::/64" },
  33. { "pools": [ { "pool": "2001:db8:3::/80" } ],
  34. "subnet": "2001:db8:3::/64" },
  35. { "pools": [ { "pool": "2001:db8:4::/80" } ],
  36. "subnet": "2001:db8:4::/64" } ]
  37. },
  38. # The following configures logging. It assumes that warning messages
  39. # will be logged to stdout.
  40. "Logging": {
  41. "loggers": [
  42. {
  43. "name": "kea-dhcp6",
  44. "output_options": [
  45. {
  46. "output": "stdout"
  47. }
  48. ],
  49. "severity": "WARN"
  50. }
  51. ]
  52. }
  53. }