multiple-options.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # This is an example configuration file for DHCPv6 server in Kea.
  2. # It demonstrates simple configuration of the options for a subnet.
  3. { "Dhcp6":
  4. {
  5. # Kea is told to listen on ethX interface only.
  6. "interfaces-config": {
  7. "interfaces": [ "ethX" ]
  8. },
  9. # We need to specify the the database used to store leases. As of
  10. # September 2016, four database backends are supported: MySQL,
  11. # PostgreSQL, Cassandra, and the in-memory database, Memfile.
  12. # We'll use memfile because it doesn't require any prior set up.
  13. "lease-database": {
  14. "type": "memfile"
  15. },
  16. # Addresses will be assigned with preferred and valid lifetimes
  17. # being 3000 and 4000, respectively. Client is told to start
  18. # renewing after 1000 seconds. If the server does not respond
  19. # after 2000 seconds since the lease was granted, client is supposed
  20. # to start REBIND procedure (emergency renewal that allows switching
  21. # to a different server).
  22. "preferred-lifetime": 3000,
  23. "valid-lifetime": 4000,
  24. "renew-timer": 1000,
  25. "rebind-timer": 2000,
  26. # Defining a subnet. There are 2 DHCP options returned to the
  27. # clients connected to this subnet. The first option is identified
  28. # by the name. The second option is identified by the code.
  29. "subnet6": [
  30. {
  31. "pools": [ { "pool": "2001:db8:1::/80" } ],
  32. "subnet": "2001:db8:1::/64",
  33. "interface": "ethX",
  34. "option-data": [
  35. {
  36. "name": "dns-servers",
  37. "data": "2001:db8:2::45, 2001:db8:2::100"
  38. },
  39. {
  40. "code": 12,
  41. "data": "2001:db8:1:0:ff00::1"
  42. },
  43. ]
  44. }
  45. ]
  46. },
  47. # The following configures logging. It assumes that messages with at least
  48. # informational level (info, warn, error and fatal) should be logged to stdout.
  49. "Logging": {
  50. "loggers": [
  51. {
  52. "name": "kea-dhcp6",
  53. "output_options": [
  54. {
  55. "output": "stdout"
  56. }
  57. ],
  58. "debuglevel": 0,
  59. "severity": "INFO"
  60. }
  61. ]
  62. }
  63. }