[Kea-users] kea server not send custom dhcp options

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

[Kea-users] kea server not send custom dhcp options

Anatoliy Shiptisyn
Hello. I try add option 209. I read docs but it just not working.

I put in "Dhcp4"

"option-def": [
           {
               "name": "ConfigFile",
               "code": 209,
               "type": "string",
               "array": false,
               "record-types": "",
               "space": "dhcp4",
               "encapsulate": ""
}],

And add in "option-data" after 
           { "name" : "routers", "data" : "194.117.250.1" },
           { "name" : "domain-name-servers", "data" : "8.8.8.8, 8.8.4.4" },
this 
           {
               "name": "ConfigFile",
               "data": "testtest"
           },



And send dhcp request to server. But server not return 209 option. In server log i see:

2020-05-24 14:49:11.304 DEBUG [kea-dhcp4.packets/14003] DHCP4_RESPONSE_DATA [hwtype=1 de:ad:c0:de:ca:fe], cid=[no info], tid=0xfc067955: responding with packet DHCPOFFER (type 2), packet de
tails: local_address=192.168.1.11:67, remote_adress=255.255.255.255:68, msg_type=DHCPOFFER (2), transid=0xfc067955,
options:
 type=001, len=004: 4294967040 (uint32)
 type=003, len=004: 192.168.1.1
 type=006, len=008: 8.8.8.8 8.8.4.4
 type=051, len=004: 4000 (uint32)
 type=053, len=001: 2 (uint8)
 type=054, len=004: 192.168.1.10

Where is 209?

Version on kea server: 

kea-dhcp4 -v
1.1.0

Linux Distro is Ubuntu 18.04 

_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] kea server not send custom dhcp options

Sten Carlsen

Thanks

Sten

On 24 May 2020, at 17.02, Anatoly Shipitsin <[hidden email]> wrote:

Hello. I try add option 209. I read docs but it just not working.

I put in "Dhcp4"

"option-def": [
           {
               "name": "ConfigFile",
               "code": 209,
               "type": "string",
               "array": false,
               "record-types": "",
               "space": "dhcp4",
               "encapsulate": ""
}],

And add in "option-data" after 
           { "name" : "routers", "data" : "194.117.250.1" },
           { "name" : "domain-name-servers", "data" : "8.8.8.8, 8.8.4.4" },
this 
           {
               "name": "ConfigFile",
               "data": "testtest"
           },



And send dhcp request to server. But server not return 209 option.

Does the client ask for it? usually options besides the most basic are not sent if the client does not ask for them. The thinking behind is AFAIK that if the client does not ask, it will not know what to do with it, so no reason to send it.

In server log i see:

2020-05-24 14:49:11.304 DEBUG [kea-dhcp4.packets/14003] DHCP4_RESPONSE_DATA [hwtype=1 de:ad:c0:de:ca:fe], cid=[no info], tid=0xfc067955: responding with packet DHCPOFFER (type 2), packet de
tails: local_address=192.168.1.11:67, remote_adress=255.255.255.255:68, msg_type=DHCPOFFER (2), transid=0xfc067955,
options:
 type=001, len=004: 4294967040 (uint32)
 type=003, len=004: 192.168.1.1
 type=006, len=008: 8.8.8.8 8.8.4.4
 type=051, len=004: 4000 (uint32)
 type=053, len=001: 2 (uint8)
 type=054, len=004: 192.168.1.10

Where is 209?

Version on kea server: 

kea-dhcp4 -v
1.1.0

Linux Distro is Ubuntu 18.04 
_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users


_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] kea server not send custom dhcp options

Francis Dupont
In reply to this post by Anatoliy Shiptisyn
The server sends an option only when it was required by the client
(code in the PRL option of the discover) or when it has the
always-send flag set to true in the option data.

Regards

Francis Dupont <[hidden email]>
_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users