[Kea-users] client-classes for a particular MAC Address of a CPE

Walter Onda walter at onda.ch
Sat Jun 30 13:07:10 UTC 2018


Hello

I'm trying ro built a classes for exact a MAC Address of a CPE. The CPE 
is running behind a cablemodem.

I'm trying different ways but it doesn't work resp. it doesn't match.

My Code:
"client-classes": [
         {
            "name": "PlayoutServer144",
            "test": "/substring(pkt4.mac, 0, 6) /== '0x00d0550b6076'",
            "option-data": [
                 { "name": "TVMotion_140", "code": 140, 
"data":"10.239.135.144"},
                 { "name": "TVMotion_166", "code": 166, 
"data":"10.239.135.144"}
            ]

         }

Maybe I could us the option82? The remote-ID here is the MAC of the 
Cablemodem. Actualy I don't now how to use this Option82, I'm new in kea.

This is the DHCPDUMP of the CPE:

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

   TIME: 2018-06-30 14:58:25.050
     IP: 77.245.177.50 (f8:72:ea:24:9c:a3) > 217.194.48.106 
(0:50:56:9b:7d:76)
     OP: 1 (BOOTPREQUEST)
  HTYPE: 1 (Ethernet)
   HLEN: 6
   HOPS: 1
    XID: 5551589f
   SECS: 10
  FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 10.236.251.1
CHADDR: 00:d0:55:0b:60:76:00:00:00:00:00:00:00:00:00:00
  SNAME: .
  FNAME: .
OPTION:  53 (  1) DHCP message type         1 (DHCPDISCOVER)
OPTION:  57 (  2) Maximum DHCP message size 548
OPTION:  51 (  4) IP address leasetime      -1 ()
OPTION:  55 ( 24) Parameter Request List      1 (Subnet mask)
                                               3 (Routers)
                                               6 (DNS server)
                                              12 (Host name)
                                              15 (Domainname)
                                              17 (Root path)
                                              23 (Default IP TTL)
                                              28 (Broadcast address)
                                              29 (Perform mask discovery)
                                              31 (Perform router discovery)
                                              33 (Static route)
                                              40 (NIS domain)
                                              41 (NIS servers)
                                              42 (NTP servers)
                                             140 (???)
                                             141 (???)
                                             142 (???)
                                             145 (???)
                                             146 (???)
                                             160 (???)
                                             166 (???)
                                             170 (???)
                                             171 (???)
                                             172 (???)

OPTION:  60 (  6) Vendor class identifier   UFI511
OPTION:  61 (  7) Client-identifier         01:00:d0:55:0b:60:76
OPTION:  82 ( 38) Relay Agent Information
                   Circuit-ID 
6e:6f:64:65:2d:39:38:5f:53:70:61:72:65:20:64:6f:63:73:69:73:20:30:2f:31:2f:30:2f:30
                   Remote-ID     58:23:8c:cc:5f:db
---------------------------------------------------------------------------

Regards and thank you in advanced

Walter

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


More information about the Kea-users mailing list