[Kea-users] use of option 82, relay4[1].hex

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] use of option 82, relay4[1].hex

agiimaa.b

Hello All,

i'm trying to configure Kea 1.5 to tie clients to their locations (because customers shouldn't move their equipment to any other location).

 My sample configuration is below:

   "client-classes": [
  {
      "name": "opt82",
      "test": "relay4.[1].hex == 485754435096C50A",
  }
  ],

  "subnet4": [
    {
        "pools": [
            {
              "pool":  "192.168.0.3 - 192.168.0.200",
              "client-class": "opt82"
           }

           
And returning error is:
DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/usr/local/etc/kea/kea-dhcp4.conf': expression: [relay4[1].hex == 485754435096C50A] error: <string>:1.18-29: Invalid value in 485754435096. Allowed range: 0..4294967295 at (/usr/local/etc/kea/kea-dhcp4.conf: 15:11)

Question is:
    * how can i express the switch's circuit-id?

    * any other suggestion on solution?
    
Any reply would be appreciated,    
Thank you

The information transmitted, including attachments, is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and destroy any copies of this information.

-------------------------------------------------------------------------------------------------------------------------------------

Энэхүү и-мэйл болон хавсралт дахь мэдээлэл нь тодорхой хүнд хаяглагдсан бөгөөд нууцлалтай мэдээлэл агуулж байж болзошгүй тул бусдад дамжуулах, олон нийтэд тараах, өөр бусад зорилгоор ашиглахыг хориглоно. Хэрэв та уг и-мэйлийг санамсаргүй байдлаар хүлээн авсан бол и-мэйл илгээгчид мэдэгдэж, хуулбар баримт үлдээлгүй устгана уу.


_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] use of option 82, relay4[1].hex

Tomek Mrugalski
On 23/05/2019 09:41, agiimaa.b wrote:
>  "test": "relay4.[1].hex == 485754435096C50A",
485754435096C50A is being interpreted as decimal number.
Try this: relay4.[1].hex == 0x485754435096C50A

Tomek
_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users