Hello,

New to Kea and trying to get class spawning to work. This was easy to figure 
out and setup with the EOL'd ISC DHCP server software, but having trouble 
getting it to work in Kea.

I'm testing using three laptops, and all three are getting IPs. I'm trying to 
limit IPs to two, per option 82 info. I saw in the docs that this mechanism 
doesn't work 100% under heavy load, but I'm literally just testing with three 
devices - no other devices are using the server.

Anything look incorrect or missing?

"client-classes": [
  {
    "name": "everyone",
    "template-test": "option[82].hex",
    "user-context": {
            "limits": {
                    "address-limit": 2
            }
    }
  }
]


I read that the order of hooks is important, so I have the limits one towards 
the top:

"hooks-libraries": [{
    "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_legal_log.so"
  },
  {
      "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_limits.so"
  },
  {
      "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_stat_cmds.so"
  }, {
      "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so",
      "parameters": { }
  }, {
      "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_class_cmds.so"
  }, {
      "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_subnet_cmds.so"
  }, {
      "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",


And here is a look at the user contexts for each lease. They all appear to have 
the same content - which I'd expect when they're all behind a single ONT device 
(implying the same option 82 info, therefore same spawn class). I do find the 
"&#x2c" a bit confusing though.

{ "ISC": { "relay-agent-info": { "remote-id": "43584E4B3030464530454543"&#x2c 
"sub-options": 
"0x01184E4F434C41422045746820312F312F312F312F67313A3131020C43584E4B3030464530454543"
 } } }

{ "ISC": { "relay-agent-info": { "remote-id": "43584E4B3030464530454543"&#x2c 
"sub-options": 
"0x01184E4F434C41422045746820312F312F312F312F67313A3131020C43584E4B3030464530454543"
 } } }

{ "ISC": { "relay-agent-info": { "remote-id": "43584E4B3030464530454543"&#x2c 
"sub-options": 
"0x01184E4F434C41422045746820312F312F312F312F67313A3131020C43584E4B3030464530454543"
 } } }


Thanks,


Jason Creviston
Sr. Network Administrator

P: 765-795-9305               2 S. West Street - P.O. Box 237, Cloverdale, IN 
46120
Book an appointment with 
me!<https://outlook.office365.com/owa/calendar/[email protected]/bookings/>

[cid:codetwo-signature-logo-endeavor_1c9b8f6f-f797-4b22-a7d8-b9c8f1b0c327.png]  
[cid:codetwo-gigtel-logo2_e109b7e4-b185-40fc-94f2-947f96c612cf.png]         
[cid:endeavor-it-signature-2_cad37e9b-ad7b-4219-a677-f37914c8d32a.png]

weEndeavor.com<http://weendeavor.com/>  GigTel.com<http://gigtel.com/>     
EndeavorIT.com<http://EndeavorIT.com>

CONFIDENTIALITY NOTICE: The information in this Email and my attachments are 
confidential and may be privileged. This Email is intended solely for the named 
recipient or recipients. If you are not the intended recipient, any use, 
disclosure, copying or distribution of this Email is prohibited. If you are not 
the intended recipient, please inform us by replying with the subject line 
"Wrong Address" and then delete this Email and any attachments. Endeavor 
Communications uses regularly updated anti-virus software in an attempt to 
reduce the possibility of transmitting computer viruses. We do not guarantee, 
however, that any attachments to this Email are virus-free.
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

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

Reply via email to