simple.json 1.7 KB

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