softwire46.json 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // This is an example configuration file for DHCPv6 server in Kea.
  2. // It demonstrates how user can specify values for Softwire options
  3. // defined in RFC 7598 for Lightweight 4over6 architecture.
  4. { "Dhcp6":
  5. {
  6. // Kea is told to listen on ethX interface only.
  7. "interfaces-config": {
  8. "interfaces": [ "ethX" ]
  9. },
  10. // Let's use a Memfile backend to store leases.
  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 respond
  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. {
  28. "pools": [ { "pool": "2001:db8:1::/80" } ],
  29. "subnet": "2001:db8:1::/64",
  30. "interface": "ethX",
  31. // Include MAP-E Container option for hosts connected to this subnet.
  32. "option-data": [
  33. {
  34. "name": "s46-cont-mape"
  35. }
  36. ],
  37. // Send host specific softwire options.
  38. "reservations": [
  39. {
  40. "duid": "01:02:03:04:05:06:07:08:09:0A",
  41. "option-data": [
  42. // These two options will be included in the MAP-E Container
  43. {
  44. "space": "s46-cont-mape-options",
  45. "name": "s46-rule",
  46. "data": "1, 0, 24, 192.0.2.0, 2001:db8:1::/64"
  47. },
  48. {
  49. "space": "s46-cont-mape-options",
  50. "name": "s46-br",
  51. "data": "2001:db8:cafe::1"
  52. },
  53. // This option will be included in the S46 Rule option. It includes
  54. // PSID/PSID length value in a user friendly form. The PSID length
  55. // specifies the number of bits on which PSID is coded. The PSID
  56. // value 3 is a 4th value that is coded on these 4 bits: "0011b".
  57. {
  58. "space": "s46-rule-options",
  59. "name": "s46-portparams",
  60. "data": "0, 3/4"
  61. }
  62. ]
  63. }
  64. ]
  65. }
  66. ]
  67. },
  68. // The following configures logging. Kea will log all debug messages
  69. // to /var/log/kea-debug.log file.
  70. "Logging": {
  71. "loggers": [
  72. {
  73. "name": "kea-dhcp6",
  74. "output_options": [
  75. {
  76. "output": "/var/log/kea-debug.log"
  77. }
  78. ],
  79. "debuglevel": 99,
  80. "severity": "DEBUG"
  81. }
  82. ]
  83. }
  84. }