several-subnets.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 the the database used to store leases. As of
  11. // September 2016, four database backends are supported: MySQL,
  12. // PostgreSQL, Cassandra, and the in-memory database, Memfile.
  13. // We'll use memfile because it doesn't require 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 respond
  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. { "pools": [ { "pool": "2001:db8:1::/80" } ],
  31. "subnet": "2001:db8:1::/64" },
  32. { "pools": [ { "pool": "2001:db8:2::/80" } ],
  33. "subnet": "2001:db8:2::/64" },
  34. { "pools": [ { "pool": "2001:db8:3::/80" } ],
  35. "subnet": "2001:db8:3::/64" },
  36. { "pools": [ { "pool": "2001:db8:4::/80" } ],
  37. "subnet": "2001:db8:4::/64" } ]
  38. },
  39. // The following configures logging. It assumes that messages with at
  40. // least informational level (info, warn, error and fatal) should be
  41. // logged to stdout.
  42. "Logging": {
  43. "loggers": [
  44. {
  45. "name": "kea-dhcp6",
  46. "output_options": [
  47. {
  48. "output": "stdout"
  49. }
  50. ],
  51. "debuglevel": 0,
  52. "severity": "INFO"
  53. }
  54. ]
  55. }
  56. }