advanced.json 2.8 KB

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