cassandra.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // This is an example configuration file for the DHCPv6 server in Kea.
  2. // It is a basic scenario with one IPv6 subnet configured. It demonstrates
  3. // how to configure Kea to use CQL (Cassandra) backend.
  4. { "Dhcp6":
  5. {
  6. // Kea is told to listen on ethX interface only.
  7. "interfaces-config": {
  8. "interfaces": [ "ethX" ]
  9. },
  10. // CQL (Cassandra) backend. Leases will be stored in Cassandra database. Make
  11. // sure it is up, running and properly initialized. See kea-admin documentation
  12. // for details on how to initialize the database. The only strictly required
  13. // parameters are type, keyspace and contact-points. At least one contact point
  14. // must be specified, but more than one is required for redundancy. Make sure
  15. // you specify the contact points without spaces. Kea must be compiled with
  16. // --with-cql option to use this backend.
  17. "lease-database": {
  18. "type": "cql",
  19. "keyspace": "keatest",
  20. "contact-points": "192.0.2.1,192.0.2.2,192.0.2.3",
  21. "port": 9042
  22. },
  23. // Addresses will be assigned with preferred and valid lifetimes
  24. // being 3000 and 4000, respectively. Client is told to start
  25. // renewing after 1000 seconds. If the server does not respond
  26. // after 2000 seconds since the lease was granted, client is supposed
  27. // to start REBIND procedure (emergency renewal that allows switching
  28. // to a different server).
  29. "preferred-lifetime": 3000,
  30. "valid-lifetime": 4000,
  31. "renew-timer": 1000,
  32. "rebind-timer": 2000,
  33. // The following list defines subnets. Each subnet consists of at
  34. // least subnet and pool entries.
  35. "subnet6": [
  36. {
  37. "pools": [ { "pool": "2001:db8:1::/80" } ],
  38. "subnet": "2001:db8:1::/64",
  39. "interface": "ethX"
  40. }
  41. ]
  42. },
  43. // The following configures logging. It assumes that messages with at least
  44. // informational level (info, warn, error and fatal) should be logged to stdout.
  45. "Logging": {
  46. "loggers": [
  47. {
  48. "name": "kea-dhcp6",
  49. "output_options": [
  50. {
  51. "output": "stdout"
  52. }
  53. ],
  54. "debuglevel": 0,
  55. "severity": "INFO"
  56. }
  57. ]
  58. }
  59. }