multiple-options.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # This is an example configuration file for DHCPv6 server in Kea.
  2. # It demonstrates simple configuration of the options for a subnet.
  3. { "Dhcp6":
  4. {
  5. # Kea is told to listen on ethX interface only.
  6. "interfaces-config": {
  7. "interfaces": [ "ethX" ]
  8. },
  9. # We need to specify lease type. As of May 2014, three backends are supported:
  10. # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require
  11. # any prior set up.
  12. "lease-database": {
  13. "type": "memfile"
  14. },
  15. # Addresses will be assigned with preferred and valid lifetimes
  16. # being 3000 and 4000, respectively. Client is told to start
  17. # renewing after 1000 seconds. If the server does not respond
  18. # after 2000 seconds since the lease was granted, client is supposed
  19. # to start REBIND procedure (emergency renewal that allows switching
  20. # to a different server).
  21. "preferred-lifetime": 3000,
  22. "valid-lifetime": 4000,
  23. "renew-timer": 1000,
  24. "rebind-timer": 2000,
  25. # Defining a subnet. There are 2 DHCP options returned to the
  26. # clients connected to this subnet. The first option is identified
  27. # by the name. The second option is identified by the code.
  28. "subnet6": [
  29. {
  30. "pools": [ { "pool": "2001:db8:1::/80" } ],
  31. "subnet": "2001:db8:1::/64",
  32. "interface": "ethX",
  33. "option-data": [
  34. {
  35. "name": "dns-servers",
  36. "data": "2001:db8:2::45, 2001:db8:2::100"
  37. },
  38. {
  39. "code": 12,
  40. "data": "2001:db8:1:0:ff00::1"
  41. },
  42. ]
  43. }
  44. ]
  45. },
  46. # The following configures logging. Kea will log all debug messages
  47. # to /var/log/kea-debug.log file.
  48. "Logging": {
  49. "loggers": [
  50. {
  51. "name": "kea-dhcp6",
  52. "output_options": [
  53. {
  54. "output": "/var/log/kea-debug.log"
  55. }
  56. ],
  57. "debuglevel": 99,
  58. "severity": "DEBUG"
  59. }
  60. ]
  61. }
  62. }