duid.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 the the database used to store leases. As of
  29. # September 2016, four database backends are supported: MySQL,
  30. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
  31. # We'll use memfile because it doesn't require any prior set up.
  32. "lease-database": {
  33. "type": "memfile",
  34. "lfc-interval": 3600
  35. },
  36. # Addresses will be assigned with preferred and valid lifetimes
  37. # being 3000 and 4000, respectively. Client is told to start
  38. # renewing after 1000 seconds. If the server does not respond
  39. # after 2000 seconds since the lease was granted, client is supposed
  40. # to start REBIND procedure (emergency renewal that allows switching
  41. # to a different server).
  42. "preferred-lifetime": 3000,
  43. "valid-lifetime": 4000,
  44. "renew-timer": 1000,
  45. "rebind-timer": 2000,
  46. # The following list defines subnets. Each subnet consists of at
  47. # least subnet and pool entries.
  48. "subnet6": [
  49. {
  50. "pools": [ { "pool": "2001:db8:1::/80" } ],
  51. "subnet": "2001:db8:1::/64",
  52. "interface": "ethX"
  53. }
  54. ]
  55. },
  56. # The following configures logging. It assumes that messages with at least
  57. # informational level (info, warn, error) will will be logged to stdout.
  58. "Logging": {
  59. "loggers": [
  60. {
  61. "name": "kea-dhcp6",
  62. "output_options": [
  63. {
  64. "output": "stdout"
  65. }
  66. ],
  67. "debuglevel": 0,
  68. "severity": "INFO"
  69. }
  70. ]
  71. }
  72. }