several-subnets.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 least
  40. # informational level (info, warn, error and fatal) should be logged to stdout.
  41. "Logging": {
  42. "loggers": [
  43. {
  44. "name": "kea-dhcp6",
  45. "output_options": [
  46. {
  47. "output": "stdout"
  48. }
  49. ],
  50. "debuglevel": 0,
  51. "severity": "INFO"
  52. }
  53. ]
  54. }
  55. }