From: Marcin Siodelski Date: Sat, 3 Sep 2016 11:21:25 +0000 (+0200) Subject: [4765] Added examples of static client class assignments. X-Git-Tag: trac5006_base~14^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2908f3654370c0efad4971bcd61c27f33350f592;p=thirdparty%2Fkea.git [4765] Added examples of static client class assignments. --- diff --git a/doc/examples/kea4/classify.json b/doc/examples/kea4/classify.json index 760f584fd5..ab3e9a9a30 100644 --- a/doc/examples/kea4/classify.json +++ b/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" } ] diff --git a/doc/examples/kea6/classify.json b/doc/examples/kea6/classify.json index eac05896c7..a32eb120d4 100644 --- a/doc/examples/kea6/classify.json +++ b/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" } ]