advanced.json 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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-config": {
  13. "interfaces": [ "ethX" ]
  14. },
  15. # We need to specify lease type. As of May 2014, three backends are supported:
  16. # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require
  17. # any prior set up.
  18. "lease-database": {
  19. "type": "memfile"
  20. },
  21. # Kea 0.9.1 introduced MAC/hardware addresses support in DHCPv6. There is
  22. # no single reliable method of getting MAC address information in DHCPv6.
  23. # Kea supports several methods. Depending on your network set up, some
  24. # methods may be more preferable than others, hence the configuration
  25. # parameter. 'mac-sources' is a list of methods. Allowed parameters are:
  26. # any, raw, duid, ipv6-link-local, client-link-addr-option, rfc6939 (which
  27. # is an alias for client-link-addr-option), remote-id, rfc4649 (which is an
  28. # alias for remote-id, subscriber-id, rfc4580 (which is an alias for
  29. # subscriber-id) and docsis.
  30. #
  31. # Note that the order matters. Methods are attempted one by one in the order
  32. # specified until hardware address is obtained. If you don't care which method
  33. # is used, using 'any' is marginally faster than enumerating them all.
  34. #
  35. # If mac-sources are not specified, a default value of 'any' is used.
  36. "mac-sources": [ "client-link-addr-option", "duid", "ipv6-link-local" ],
  37. # RFC6422 defines a mechanism called relay-supplied options option. The relay
  38. # agent may insert certain options that the server will echo back to the
  39. # client, if certain criteria are met. One condition is that the option must
  40. # be RSOO-enabled (i.e. allowed to be echoed back). IANA maintains a list
  41. # of those options here:
  42. # http://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml#options-relay-supplied
  43. # However, it is possible to allow the server to echo back additional options.
  44. # This entry marks options 110, 120 and 130 as RSOO-enabled.
  45. "relay-supplied-options": [ "110", "120", "130" ],
  46. # Addresses will be assigned with preferred and valid lifetimes
  47. # being 3000 and 4000, respectively. Client is told to start
  48. # renewing after 1000 seconds. If the server does not respond
  49. # after 2000 seconds since the lease was granted, client is supposed
  50. # to start REBIND procedure (emergency renewal that allows switching
  51. # to a different server).
  52. "preferred-lifetime": 3000,
  53. "valid-lifetime": 4000,
  54. "renew-timer": 1000,
  55. "rebind-timer": 2000,
  56. # The following list defines subnets. Each subnet consists of at
  57. # least subnet and pool entries.
  58. "subnet6": [
  59. {
  60. "pools": [ { "pool": "2001:db8:1::/80" } ],
  61. "subnet": "2001:db8:1::/64",
  62. "interface": "ethX"
  63. }
  64. ]
  65. },
  66. # The following configures logging. Kea will log all debug messages
  67. # to /var/log/kea-debug.log file.
  68. "Logging": {
  69. "loggers": [
  70. {
  71. "name": "kea-dhcp6",
  72. "output_options": [
  73. {
  74. "output": "/var/log/kea-debug.log"
  75. }
  76. ],
  77. "debuglevel": 99,
  78. "severity": "DEBUG"
  79. }
  80. ]
  81. }
  82. }