[Kea-users] subnet_id - what values can you use?

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

[Kea-users] subnet_id - what values can you use?

brixo

Trying to use kea (1.0.0) and want to use subnet_id in order to figure out which site the scope belongs to (as I cannot find a variable to use as a label/description).

 

I am using the following in the kea.conf

 

{"subnet": "10.48.0.0/24","id":"4250","pools": [{ "pool": "10.48.0.2-10.48.0.254 "}],"option-data":[{"name": "routers","data": "10.48.0.1"}]},

 

However, it complains about the value in the ID:

 

ERROR [kea-dhcp4.dhcp4/321] DHCP4_PARSER_FAIL failed to create or run parser for configuration element subnet4: Failed to parse value "4250" as unsigned 32-bit integer (/etc/kea/kea-dhcp4.conf:63:32)

 

What values can I put in there?  I have tried integers from 1000-64000, but still complains.

 

Neil Briscoe

 


_______________________________________________
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] subnet_id - what values can you use?

Wlodek Wencel

Hello,

just don't use "" with numeric values. "id":4250, should work.

Wlodek


On 09/13/2017 05:59 PM, Neil Briscoe wrote:

Trying to use kea (1.0.0) and want to use subnet_id in order to figure out which site the scope belongs to (as I cannot find a variable to use as a label/description).

 

I am using the following in the kea.conf

 

{"subnet": "10.48.0.0/24","id":"4250","pools": [{ "pool": "10.48.0.2-10.48.0.254 "}],"option-data":[{"name": "routers","data": "10.48.0.1"}]},

 

However, it complains about the value in the ID:

 

ERROR [kea-dhcp4.dhcp4/321] DHCP4_PARSER_FAIL failed to create or run parser for configuration element subnet4: Failed to parse value "4250" as unsigned 32-bit integer (/etc/kea/kea-dhcp4.conf:63:32)

 

What values can I put in there?  I have tried integers from 1000-64000, but still complains.

 

Neil Briscoe

 



_______________________________________________
Kea-users mailing list
[hidden email]
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] subnet_id - what values can you use?

itay cohen
In reply to this post by brixo
try - "id":4250

itay,


On Wed, Sep 13, 2017 at 6:59 PM, Neil Briscoe <[hidden email]> wrote:

Trying to use kea (1.0.0) and want to use subnet_id in order to figure out which site the scope belongs to (as I cannot find a variable to use as a label/description).

 

I am using the following in the kea.conf

 

{"subnet": "10.48.0.0/24","id":"4250","pools": [{ "pool": "10.48.0.2-10.48.0.254 "}],"option-data":[{"name": "routers","data": "10.48.0.1"}]},

 

However, it complains about the value in the ID:

 

ERROR [kea-dhcp4.dhcp4/321] DHCP4_PARSER_FAIL failed to create or run parser for configuration element subnet4: Failed to parse value "4250" as unsigned 32-bit integer (/etc/kea/kea-dhcp4.conf:63:32)

 

What values can I put in there?  I have tried integers from 1000-64000, but still complains.

 

Neil Briscoe

 


_______________________________________________
Kea-users mailing list
[hidden email]
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] subnet_id - what values can you use?

Tomek Mrugalski
In reply to this post by brixo
W dniu 13.09.2017 o 17:59, Neil Briscoe pisze:
> What values can I put in there?  I have tried integers from 1000-64000,
> but still complains.
A full range of unsigned 32 bits integer in principle should work, but I
would avoid the extreme values: 0 and 4294967295. Everything else in
between should work.

As others pointed out, integers are written without double quotes, which
are used for expressing strings. subnet-id is an integer.

Tomek
_______________________________________________
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] subnet_id - what values can you use?

brixo
In reply to this post by Wlodek Wencel

Many thanks to all – this works perfectly…!

 

From: Kea-users <[hidden email]> on behalf of Włodzimierz Wencel <[hidden email]>
Date: Wednesday, 13 September 2017 at 17:09
To: <[hidden email]>
Subject: Re: [Kea-users] subnet_id - what values can you use?

 

Hello,

just don't use "" with numeric values. "id":4250, should work.

Wlodek

 

On 09/13/2017 05:59 PM, Neil Briscoe wrote:

Trying to use kea (1.0.0) and want to use subnet_id in order to figure out which site the scope belongs to (as I cannot find a variable to use as a label/description).

 

I am using the following in the kea.conf

 

{"subnet": "10.48.0.0/24","id":"4250","pools": [{ "pool": "10.48.0.2-10.48.0.254 "}],"option-data":[{"name": "routers","data": "10.48.0.1"}]},

 

However, it complains about the value in the ID:

 

ERROR [kea-dhcp4.dhcp4/321] DHCP4_PARSER_FAIL failed to create or run parser for configuration element subnet4: Failed to parse value "4250" as unsigned 32-bit integer (/etc/kea/kea-dhcp4.conf:63:32)

 

What values can I put in there?  I have tried integers from 1000-64000, but still complains.

 

Neil Briscoe

 




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


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


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