advanced.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # This is an example configuration file for DHCPv6 server in Kea.
  2. # It attempts to showcase some of the more advanced features.
  3. # Topology wise, it's a basic scenario with one IPv6 subnet configured.
  4. # It is assumed that one subnet (2001:db8:1::/64) is available directly
  5. # over eth0 interface.
  6. { "Dhcp6":
  7. {
  8. # Kea is told to listen on eth0 interface only.
  9. "interfaces": [ "eth0" ],
  10. # We need to specify lease type. As of May 2014, three backends are supported:
  11. # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require
  12. # any prior set up.
  13. "lease-database": {
  14. "type": "memfile"
  15. },
  16. # Kea 0.9.1 introduced MAC/hardware addresses support in DHCPv6. There is
  17. # no single reliable method of getting MAC address information in DHCPv6.
  18. # Kea supports several methods. Depending on your network set up, some
  19. # methods may be more preferable than others, hence the configuration
  20. # parameter. 'mac-sources' is a list of methods. Allowed parameters are:
  21. # any, raw, duid, ipv6-link-local, client-link-addr-option, rfc6939 (which
  22. # is an alias for client-link-addr-option), remote-id, rfc4649 (which is an
  23. # alias for remote-id, subscriber-id, rfc4580 (which is an alias for
  24. # subscriber-id) and docsis.
  25. #
  26. # If mac-sources are not specified, a default value of 'any' is used.
  27. "mac-sources": [ "client-link-addr-option", "duid", "ipv6-link-local" ],
  28. # Addresses will be assigned with preferred and valid lifetimes
  29. # being 3000 and 4000, respectively. Client is told to start
  30. # renewing after 1000 seconds. If the server does not repond
  31. # after 2000 seconds since the lease was granted, client is supposed
  32. # to start REBIND procedure (emergency renewal that allows switching
  33. # to a different server).
  34. "preferred-lifetime": 3000,
  35. "valid-lifetime": 4000,
  36. "renew-timer": 1000,
  37. "rebind-timer": 2000,
  38. # The following list defines subnets. Each subnet consists of at
  39. # least subnet and pool entries.
  40. "subnet6": [
  41. {
  42. "pools": [ { "pool": "2001:db8:1::/80" } ],
  43. "subnet": "2001:db8:1::/64",
  44. "interface": "eth0"
  45. }
  46. ]
  47. },
  48. # The following configures logging. Kea will log all debug messages
  49. # to /var/log/kea-debug.log file.
  50. "Logging": {
  51. "loggers": [
  52. {
  53. "name": "kea-dhcp6",
  54. "output_options": [
  55. {
  56. "output": "/var/log/kea-debug.log"
  57. }
  58. ],
  59. "debuglevel": 99,
  60. "severity": "DEBUG"
  61. }
  62. ]
  63. }
  64. }