advanced.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 ethX interface.
  6. #
  7. # The following features are currently showcased here:
  8. # 1. Configuration of MAC/hardware address sources in DHCPv6
  9. { "Dhcp6":
  10. {
  11. # Kea is told to listen on ethX network interface only.
  12. "interfaces": [ "ethX" ],
  13. # We need to specify lease type. As of May 2014, three backends are supported:
  14. # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require
  15. # any prior set up.
  16. "lease-database": {
  17. "type": "memfile"
  18. },
  19. # Kea 0.9.1 introduced MAC/hardware addresses support in DHCPv6. There is
  20. # no single reliable method of getting MAC address information in DHCPv6.
  21. # Kea supports several methods. Depending on your network set up, some
  22. # methods may be more preferable than others, hence the configuration
  23. # parameter. 'mac-sources' is a list of methods. Allowed parameters are:
  24. # any, raw, duid, ipv6-link-local, client-link-addr-option, rfc6939 (which
  25. # is an alias for client-link-addr-option), remote-id, rfc4649 (which is an
  26. # alias for remote-id, subscriber-id, rfc4580 (which is an alias for
  27. # subscriber-id) and docsis.
  28. #
  29. # Note that the order matters. Methods are attempted one by one in the order
  30. # specified until hardware address is obtained. If you don't care which method
  31. # is used, using 'any' is marginally faster than enumerating them all.
  32. #
  33. # If mac-sources are not specified, a default value of 'any' is used.
  34. "mac-sources": [ "client-link-addr-option", "duid", "ipv6-link-local" ],
  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 repond
  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. Kea will log all debug messages
  56. # to /var/log/kea-debug.log file.
  57. "Logging": {
  58. "loggers": [
  59. {
  60. "name": "kea-dhcp6",
  61. "output_options": [
  62. {
  63. "output": "/var/log/kea-debug.log"
  64. }
  65. ],
  66. "debuglevel": 99,
  67. "severity": "DEBUG"
  68. }
  69. ]
  70. }
  71. }