duid.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # This is an example configuration file for DHCPv6 server in Kea.
  2. # It demonstrates how to configure Kea to use DUID-LLT with some
  3. # values specified explicitly.
  4. { "Dhcp6":
  5. {
  6. # Configure server identifier (DUID-LLT). The hexadecimal value of the
  7. # identifier will be used as link layer address component of the DUID.
  8. # The link layer type will be ethernet. The value of time is set to 0
  9. # which indicates that the server must generate this value, i.e. use
  10. # current time. Note that it is easy to move from this configuration
  11. # to DUID-EN or DUID-LL. It would require changing the "type" value
  12. # to "EN" or "LL" respectively. The "identifier" would hold a
  13. # DUID-EN variable length identifier or DUID-LL link layer address.
  14. # The values of "time" and "htype" would be ignored for DUID-EN.
  15. # If one wanted to use a non-default enterprise-id for DUID-EN, the
  16. # "enterprise-id" parameter would need to be added. Note that only
  17. # a "type" parameter is mandatory while specifying "server-id" map.
  18. "server-id": {
  19. "type": "LLT",
  20. "identifier": "12C4D5AF870C",
  21. "time": 0,
  22. "htype": 1
  23. },
  24. # Kea is told to listen on ethX interface only.
  25. "interfaces-config": {
  26. "interfaces": [ "ethX" ]
  27. },
  28. # We need to specify lease type. As of May 2014, three backends are supported:
  29. # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require
  30. # any prior set up.
  31. "lease-database": {
  32. "type": "memfile"
  33. },
  34. # Addresses will be assigned with preferred and valid lifetimes
  35. # being 3000 and 4000, respectively. Client is told to start
  36. # renewing after 1000 seconds. If the server does not respond
  37. # after 2000 seconds since the lease was granted, client is supposed
  38. # to start REBIND procedure (emergency renewal that allows switching
  39. # to a different server).
  40. "preferred-lifetime": 3000,
  41. "valid-lifetime": 4000,
  42. "renew-timer": 1000,
  43. "rebind-timer": 2000,
  44. # The following list defines subnets. Each subnet consists of at
  45. # least subnet and pool entries.
  46. "subnet6": [
  47. {
  48. "pools": [ { "pool": "2001:db8:1::/80" } ],
  49. "subnet": "2001:db8:1::/64",
  50. "interface": "ethX"
  51. }
  52. ]
  53. },
  54. # The following configures logging. Kea will log all debug messages
  55. # to /var/log/kea-debug.log file.
  56. "Logging": {
  57. "loggers": [
  58. {
  59. "name": "kea-dhcp6",
  60. "output_options": [
  61. {
  62. "output": "/var/log/kea-debug.log"
  63. }
  64. ],
  65. "debuglevel": 0,
  66. "severity": "INFO"
  67. }
  68. ]
  69. }
  70. }