]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4765] Added examples of static client class assignments.
authorMarcin Siodelski <marcin@isc.org>
Sat, 3 Sep 2016 11:21:25 +0000 (13:21 +0200)
committerMarcin Siodelski <marcin@isc.org>
Sat, 3 Sep 2016 11:21:25 +0000 (13:21 +0200)
doc/examples/kea4/classify.json
doc/examples/kea6/classify.json

index 760f584fd55197a10742ceff1f05073e1fc849a4..ab3e9a9a30cf8b579c735d360e65ce5535eae693 100644 (file)
     },
 # This one doesn't have any client-class specified, so everyone
 # is allowed in. The normal subnet selection rules still apply,
-# though.      
+# though. There is also a static class reservation for a client
+# using MAC address 1a:1b:1c:1d:1e:1f. This client will always
+# be assigned to this class.
     {
         "pools": [ { "pool":  "192.0.3.1 - 192.0.3.200" } ],
         "subnet": "192.0.3.0/24",
+        "reservations": [
+        {
+            "hw-address": "1a:1b:1c:1d:1e:1f",
+            "client-classes": [ "VoIP" ]
+        } ],
         "interface": "ethX"
     }
   ]
index eac05896c7e7285df626480a503df43ddc7aa2d7..a32eb120d4eb68bd4268984e3be8956f11a243b6 100644 (file)
         "client-class": "cable-modems",
         "interface": "ethX"
     },
+# The following subnet contains a class reservation for a client using
+# DUID 01:02:03:04:05:0A:0B:0C:0D:0E. This client will always be assigned
+# to this class.
     {
         "pools": [ { "pool": "2001:db8:2::/80" } ],
         "subnet": "2001:db8:2::/64",
+        "reservations": [
+        {
+            "duid": "01:02:03:04:05:0A:0B:0C:0D:0E",
+            "client-classes": [ "cable-modems" ]
+        } ],
         "interface": "ethX"
     }
   ]