several-subnets.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This is an example configuration file for DHCPv6 server in Kea.
  2. # It's a basic scenario with four IPv6 subnets configured. In each
  3. # subnet, there's a smaller pool of dynamic addresses.
  4. { "Dhcp6":
  5. {
  6. # Kea is told to listen on eth0 interface only.
  7. "interfaces": [ "eth0" ],
  8. # We need to specify lease type. As of May 2014, three backends are supported:
  9. # memfile, mysql and pgsql. We'll just use memfile, because it doesn't require
  10. # any prior set up.
  11. "lease-database": {
  12. "type": "memfile"
  13. },
  14. # Addresses will be assigned with preferred and valid lifetimes
  15. # being 3000 and 4000, respectively. Client is told to start
  16. # renewing after 1000 seconds. If the server does not repond
  17. # after 2000 seconds since the lease was granted, client is supposed
  18. # to start REBIND procedure (emergency renewal that allows switching
  19. # to a different server).
  20. "preferred-lifetime": 3000,
  21. "valid-lifetime": 4000,
  22. "renew-timer": 1000,
  23. "rebind-timer": 2000,
  24. # The following list defines subnets. Each subnet consists of at
  25. # least subnet and pool entries.
  26. "subnet6": [
  27. { "pool": [ "2001:db8:1::/80" ],
  28. "subnet": "2001:db8:1::/64" },
  29. { "pool": [ "2001:db8:2::/80" ],
  30. "subnet": "2001:db8:2::/64" },
  31. { "pool": [ "2001:db8:3::/80" ],
  32. "subnet": "2001:db8:3::/64" },
  33. { "pool": [ "2001:db8:4::/80" ],
  34. "subnet": "2001:db8:4::/64" } ]
  35. }
  36. }