[Kea-users] No DHCP Reply sent out from kea server

Marek Hajduczenia mxhajduczenia at gmail.com
Wed May 8 20:10:46 UTC 2024


You need to add 

 

 
{

 
"space": "dhcp6",

 
"name": "vendor-opts",

 
"code": 17,

 
"data": "4491"

 
}

 

to your "option-data" stanza. Otherwise, the process will not insert the
vendor-specific entry in Option 17. 

 

Marek

 

From: Kea-users <kea-users-bounces at lists.isc.org> On Behalf Of Xiao, Yu
(CCI-Atlanta) via Kea-users
Sent: Wednesday, May 8, 2024 1:46 PM
To: Kea user's list <kea-users at lists.isc.org>
Cc: Xiao, Yu (CCI-Atlanta) <yu.xiao at cox.com>
Subject: [Kea-users] No DHCP Reply sent out from kea server

 

Greetings,

 

I configured some sub-options for DHCPv6 Option 17 for RPD use. I didn't
find too detailed information regarding how to customize those sub-options
under one option such as DHCPv6 option 17. Luckily, I found some examples
from previous discussion email. Before I added those options, I could see
the Solicit, Advertise, Request and Reply packets between the RPD and DHCP
server. After the configuration, now I don't see DHCP server responded to
the Advertise packets anymore. The Advertise packet was sent. I checked the
debug logs, I don't see any reasons why the Advertise packets are not sent.
There's no errors in the debug logs. 

 

I define those options globally while use them under the class but they are
not working. Then I changed the configuration and use them under global
configuration, but still no changes. I suspect my customization
configuration for sub-options have some problem. But I don't see any issue
according to manual 9.2.15. DHCPv6 Vendor-Specific Options. Did I miss
something in the configuration? I also attached my debug settings, not sure
if there could be more detailed debug logs to help our troubleshooting
process. 

 

My kea version is 2.4.1. 

 

 

Option related Config:

 

   # custom definitions

   ### DOCSIS space

   "option-def": [{

        "space": "vendor-4491",

        "name": "device-type",

        "code": 2,

        "type": "string"

      },

      {

        "space": "vendor-4491",

        "name": "tftp-servers",

        "code": 32,

        "array": true,

        "type": "ipv6-address"

      },

      {

        "space": "vendor-4491",

        "name": "config-file",

        "code": 33,

        "type": "string"

      },

      {

        "space": "vendor-4491",

        "name": "syslog-servers",

        "code": 34,

        "array": true,

        "type": "ipv6-address"

      },

      {

        "space": "vendor-4491",

        "name": "time-servers",

        "code": 37,

        "array": true,

        "type": "ipv6-address"

      },

      {

        "space": "vendor-4491",

        "name": "time-offset",

        "code": 38,

        "type": "int32"

      },

      {

        "space": "vendor-4491",

        "name": "ccap-cores",

        "code": 61,

        "array": true,

        "type": "ipv6-address"

      },

     ],

 

    "client-classes": [

        {

            "name": "RPD",

            "test": "substring(option[17].option[2].hex,0,3) == 'RPD'",

            "option-data": [

                {

                    "space": "vendor-4491",

                    "name": "syslog-servers",

                    "code": 34,

                    "csv-format": true,

                    "data": "2001:391:20:7004:10:0:252:120"

                },

                {

                    "space": "vendor-4491",

                    "name": "time-servers",

                    "code": 37,

                    "csv-format": true,

                    "data": "2001:391:20:7004:10:0:252:112"

                },

                {

                    "space": "vendor-4491",

                    "name": "time-offset",

                    "code": 38,

                    "csv-format": true,

                    "data": "0"

                },

                {

                    "space": "vendor-4491",

                    "name": "ccap-cores",

                    "code": 61,

                    "csv-format": true,

                    "data": "2001:391:20:7010:10:0:254:73"

                }

            ]

        }

    ],

 

Debug config:

 

# DHCPv6 configuration ends with the next line

 

    "loggers": [

        {

            "name": "kea-dhcp6",

            "output_options": [

                {

                    "output": "/tmp/kea-debug.log",

                    "maxver": 8,

                    "maxsize": 40480000,

                }

            ],

            "severity": "DEBUG",

            "debuglevel": 99

        }

 

    ]

 

Debug logs:

.

2024-05-08 14:50:14.577 INFO  [kea-dhcp6.leases/27581.139777794037504]
DHCP6_LEASE_ADVERT duid=[00:03:00:01:c4:b2:39:ba:56:98], tid=0x206da9: lease
for address 2001:391:20:7716::447 and iaid=1 will be advertised

2024-05-08 14:50:14.577 DEBUG [kea-dhcp6.leases/27581.139777794037504]
DHCP6_LEASE_DATA duid=[00:03:00:01:c4:b2:39:ba:56:98], tid=0x206da9:
detailed lease information for iaid=1: Type:          IA_NA(0)

Address:       2001:391:20:7716::447

Prefix length: 128

IAID:          1

Pref life:     300

Valid life:    400

Cltt:          1715193821

DUID:          00:03:00:01:c4:b2:39:ba:56:98

Hardware addr: c4:b2:39:ba:56:98

Subnet ID:     1

Pool ID:       0

State:         expired-reclaimed

 

2024-05-08 14:50:14.577 DEBUG [kea-dhcp6.packets/27581.139777794037504]
DHCP6_PACKET_SEND duid=[00:03:00:01:c4:b2:39:ba:56:98], tid=0x206da9: trying
to send packet ADVERTISE (type 2) from [2001:391:20:c012::240]:547 to
[2001:391:20:7716::1]:547 on interface ens18

2024-05-08 14:50:14.577 DEBUG [kea-dhcp6.packets/27581.139777794037504]
DHCP6_RESPONSE_DATA responding with packet type 2 data is
localAddr=[2001:391:20:c012::240]:547 remoteAddr=[2001:391:20:7716::1]:547

msgtype=2(ADVERTISE), transid=0x206da9

type=00001, len=00010: 00:03:00:01:c4:b2:39:ba:56:98

type=00002, len=00014: 00:01:00:01:2d:c5:0b:41:b6:0f:80:c4:26:56

type=00003(IA_NA), len=00040: iaid=1, t1=100, t2=200,

options:

  type=00005(IAADDR), len=00024: address=2001:391:20:7716::447,
preferred-lft=300, valid-lft=400

type=39(CLIENT_FQDN), flags: (N=1, O=0, S=0), domain-name='rpdc4b239ba5698.'
(full)

1 relay(s):

relay[0]: msg-type=13(RELAY_REPLY), hop-count=0,

link-address=2001:391:20:7716::1, peer-address=fe80::c6b2:39ff:feba:5698, 0
option(s)

.

 

 

 

 

Best Regards,

Yu

 

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


More information about the Kea-users mailing list