simple.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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
  40. // least informational level (info, warn, error and fatal) should be
  41. // logged to stdout. Alternatively, you can specify stderr here, a filename
  42. // or 'syslog', which will store output messages via syslog.
  43. "Logging": {
  44. "loggers": [
  45. {
  46. "name": "kea-dhcp6",
  47. "output_options": [
  48. {
  49. "output": "stdout"
  50. }
  51. ],
  52. "debuglevel": 0,
  53. "severity": "INFO"
  54. }
  55. ]
  56. }
  57. }