simple.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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-config": {
  9. "interfaces": [ "ethX" ]
  10. },
  11. # We need to specify the the database used to store leases. As of
  12. # September 2016, four database backends are supported: MySQL,
  13. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
  14. # We'll use memfile because it doesn't require any prior set up.
  15. "lease-database": {
  16. "type": "memfile",
  17. "lfc-interval": 3600
  18. },
  19. # Addresses will be assigned with preferred and valid lifetimes
  20. # being 3000 and 4000, respectively. Client is told to start
  21. # renewing after 1000 seconds. If the server does not respond
  22. # after 2000 seconds since the lease was granted, client is supposed
  23. # to start REBIND procedure (emergency renewal that allows switching
  24. # to a different server).
  25. "preferred-lifetime": 3000,
  26. "valid-lifetime": 4000,
  27. "renew-timer": 1000,
  28. "rebind-timer": 2000,
  29. # The following list defines subnets. Each subnet consists of at
  30. # least subnet and pool entries.
  31. "subnet6": [
  32. {
  33. "pools": [ { "pool": "2001:db8:1::/80" } ],
  34. "subnet": "2001:db8:1::/64",
  35. "interface": "ethX"
  36. }
  37. ]
  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. }