Browse Source

[4765] Added examples of static client class assignments.

Marcin Siodelski 8 years ago
parent
commit
2908f36543
2 changed files with 16 additions and 1 deletions
  1. 8 1
      doc/examples/kea4/classify.json
  2. 8 0
      doc/examples/kea6/classify.json

+ 8 - 1
doc/examples/kea4/classify.json

@@ -73,10 +73,17 @@
     },
 # 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"
     }
   ]

+ 8 - 0
doc/examples/kea6/classify.json

@@ -58,9 +58,17 @@
         "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"
     }
   ]