duid.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. },
  35. # Addresses will be assigned with preferred and valid lifetimes
  36. # being 3000 and 4000, respectively. Client is told to start
  37. # renewing after 1000 seconds. If the server does not respond
  38. # after 2000 seconds since the lease was granted, client is supposed
  39. # to start REBIND procedure (emergency renewal that allows switching
  40. # to a different server).
  41. "preferred-lifetime": 3000,
  42. "valid-lifetime": 4000,
  43. "renew-timer": 1000,
  44. "rebind-timer": 2000,
  45. # The following list defines subnets. Each subnet consists of at
  46. # least subnet and pool entries.
  47. "subnet6": [
  48. {
  49. "pools": [ { "pool": "2001:db8:1::/80" } ],
  50. "subnet": "2001:db8:1::/64",
  51. "interface": "ethX"
  52. }
  53. ]
  54. },
  55. # The following configures logging. It assumes that messages with at least
  56. # informational level (info, warn, error) will will be logged to stdout.
  57. "Logging": {
  58. "loggers": [
  59. {
  60. "name": "kea-dhcp6",
  61. "output_options": [
  62. {
  63. "output": "stdout"
  64. }
  65. ],
  66. "debuglevel": 0,
  67. "severity": "INFO"
  68. }
  69. ]
  70. }
  71. }