]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[github24] Added example configuration for Softwire46.
authorMarcin Siodelski <marcin@isc.org>
Thu, 13 Oct 2016 14:26:10 +0000 (16:26 +0200)
committerMarcin Siodelski <marcin@isc.org>
Thu, 13 Oct 2016 14:26:10 +0000 (16:26 +0200)
doc/Makefile.am
doc/examples/kea6/softwire46.json [new file with mode: 0644]

index 69401e6749af77af0307a60a3fb66412c1f9fae0..5ca61b5a45446ba8ad71c82b200403d1f4646531 100644 (file)
@@ -23,6 +23,7 @@ nobase_dist_doc_DATA += examples/kea6/multiple-options.json
 nobase_dist_doc_DATA += examples/kea6/reservations.json
 nobase_dist_doc_DATA += examples/kea6/several-subnets.json
 nobase_dist_doc_DATA += examples/kea6/simple.json
+nobase_dist_doc_DATA += examples/kea6/softwire46.json
 nobase_dist_doc_DATA += examples/kea6/stateless.json
 
 devel:
diff --git a/doc/examples/kea6/softwire46.json b/doc/examples/kea6/softwire46.json
new file mode 100644 (file)
index 0000000..c7b5986
--- /dev/null
@@ -0,0 +1,91 @@
+# This is an example configuration file for DHCPv6 server in Kea.
+# It demonstrates how user can specify values for Softwire options
+# defined in RFC 7598.
+
+{ "Dhcp6":
+
+{ 
+# Kea is told to listen on ethX interface only.
+  "interfaces-config": {
+    "interfaces": [ "ethX" ]
+  },
+
+# We need to specify lease type. As of May 2014, three backends are supported:
+# memfile, mysql and pgsql. We'll just use memfile, because it doesn't require
+# any prior set up.
+  "lease-database": {
+    "type": "memfile"
+  },
+
+# Addresses will be assigned with preferred and valid lifetimes
+# being 3000 and 4000, respectively. Client is told to start
+# renewing after 1000 seconds. If the server does not respond
+# after 2000 seconds since the lease was granted, client is supposed
+# to start REBIND procedure (emergency renewal that allows switching
+# to a different server).
+  "preferred-lifetime": 3000,
+  "valid-lifetime": 4000,
+  "renew-timer": 1000,
+  "rebind-timer": 2000,
+
+# The following list defines subnets. Each subnet consists of at
+# least subnet and pool entries.
+  "subnet6": [ 
+    {
+      "pools": [ { "pool": "2001:db8:1::/80" } ],
+      "subnet": "2001:db8:1::/64",
+      "interface": "ethX",
+# Include MAP-E Container option for hosts connected to this subnet.
+      "option-data": [
+        {
+            "name": "s46-cont-mape"
+        }
+      ],
+# Send host specific softwire options.
+      "reservations": [
+        {
+            "duid": "01:02:03:04:05:06:07:08:09:0A",
+            "option-data": [
+# These two options will be included in the MAP-E Container
+              {
+                "space": "s46-cont-mape-options",
+                "name": "s46-rule",
+                "data": "1, 0, 24, 192.0.2.0, 2001:db8:1::/64"
+              },
+              {
+                "space": "s46-cont-mape-options",
+                "name": "s46-br",
+                "data": "2001:db8::cafe::1"
+              },
+# This option will be included in the S46 Rule option.
+              {
+                "space": "s46-rule-options",
+                "name": "s46-portparams",
+                "data": "0, 3/4"
+              }
+            ]
+        }
+      ]
+    }
+  ]
+},
+
+# The following configures logging. Kea will log all debug messages
+# to /var/log/kea-debug.log file.
+"Logging": {
+    "loggers": [
+        {
+            "name": "kea-dhcp6",
+            "output_options": [
+                {
+                    "output": "/var/log/kea-debug.log"
+                }
+            ], 
+            "debuglevel": 99,
+            "severity": "DEBUG"
+        }
+    ]
+}
+
+}
+