multiple-options.json 1.8 KB

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