[Kea-users] Option82

Batuhan bakip at itu.edu.tr
Sun Mar 18 17:48:53 UTC 2018


On 16/03/2018 12:10, Tomek Mrugalski wrote:

>You specified Kea version as 1.1.0. If you are really using 1.1.0, please
upgrade to 1.3.0. There's been a lot of changes and improvements in the
client classification area.

 

I upgraded to 1.3.0, thank you for proposal.

 

I read the documents and I tried some cases.

 

First case: I evaluated circuit-id, remote-id and mac address for the
incoming packet then I gave IP address from the subnet. Since I want to give
you a single address, I had to use host reservation. 

 

This is my configuration for this case:

..

..

  "client-classes": [

   {"name": "opt82", "test": "substring(relay4[1].hex,2,4) == 0x012E0105 and
substring(relay4[2].hex,2,6) == 0x 44656e656d65 and substring(pkt4.mac,0,6)
== 0x123412341234"} ],

 

  "subnet4": [

    {

       "subnet": "10.0.100.0/24",

       "client-class": "opt82",

       "reservations": [

       {

          "hw-address": "12:34:12:34:12:36",

          "ip-address": "10.0.100.13"

        },

   ]

}

]

..

..

 

This configuration is successful and useful. I can add new client-classes.

 

Second case: I do not want to evaulate mac address, I evaluated circuit-id
and remote-id for the incoming packet. For example, I want to determine what
IP address to give to the port of switch for any client so I do not care mac
address . The following configuration is not working because reservations
need  a circuit-id or a hw-address or a duid or a client-id or a flex-id.
Maybe I give circuit-id in reservations but  it may have to be the same
circuit-id for different IP address so configuration will fail. 

..

..

  "client-classes": [

   {"name": "opt82", "test": "substring(relay4[1].hex,2,4) == 0x012E0105 and
substring(relay4[2].hex,2,6) == 0x 44656e656d65"} ],

 

  "subnet4": [

    {

       "subnet": "10.0.100.0/24",

       "client-class": "opt82",

       "reservations": [

       {

          "ip-address": "10.0.100.13"

        },

   ]

}

]

..

..

 

Client-classes is exactly as I want but I would like to give the IP address
according to the client-classes evaluation without sticking to reservation
obligations.

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180318/c57c43cd/attachment.htm>


More information about the Kea-users mailing list