[Kea-users] Reservation lookup fails
Bull, Mary
mbull at wm.edu
Tue Jul 2 12:47:00 UTC 2024
Hi Peter,
Yes, it selects the correct subnet starting with subnet id.
Jul 1 23:44:00 is-kea-03: DHCP4_PACKET_RECEIVED [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: DHCPDISCOVER (type 1) received from 10.150.136.2 to 128.239.10.233 on interface ens32
Jul 1 23:44:00 is-kea-03: DHCP4_QUERY_DATA [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78, packet details: local_address=128.239.10.233:67, remote_address=10.150.136.2:67, msg_type=DHCPDISCOVER (1), transid=0xe36dbc78,#012options:#012 type=012, len=015: "XRX9C934EA07417" (string)#012 type=051, len=004: 4294967295 (uint32)#012 type=053, len=001: 1 (uint8)#012 type=055, len=023: 116(uint8) 252(uint8) 67(uint8) 28(uint8) 59(uint8) 58(uint8) 15(uint8) 6(uint8) 119(uint8) 81(uint8) 12(uint8) 44(uint8) 46(uint8) 47(uint8) 42(uint8) 70(uint8) 3(uint8) 78(uint8) 79(uint8) 69(uint8) 1(uint8) 66(uint8) 2(uint8)#012 type=060, len=104: "Mfg=Xerox;Typ=MFP;Mod=Xerox AltaLink B8170 Multifunction Printer;Ser=HHZ763011;Loc=Mathematics Jones 100" (string)#012 type=061, len=007: 019c934ea074:17#012 type=077, len=105: 684d66673d58:65726f783b54:79703d4d4650:3b4d6f643d58:65726f782041:6c74614c696e:6b2042383137:30204d756c74:6966756e6374:696f6e205072:696e7465723b:5365723d4848:5a3736333031:313b4c6f633d:4d617468656d:617469637320:4a6f6e657320:31:30:30#012 type=81 (CLIENT_FQDN), flags: (N=0, E=0, O=0, S=1), domain-name='xrx9c934ea07417.wm.edu.' (full)#012 type=082, len=024:,#012options:#012 type=001, len=022: 6972622e3130:31352678652d:312f302f312e:31:35:30:00
Jul 1 23:44:00 is-kea-03: DHCP4_SUBNET_SELECTED [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: the subnet with ID 150136 was selected for client assignments
*Jul 1 23:44:00 is-kea-03: DHCP4_SUBNET_DATA [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: the selected subnet details: 10.150.136.0/24*
Jul 1 23:44:00 is-kea-03: HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: hwaddr=9c934ea07417
Jul 1 23:44:00 is-kea-03: HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier hwaddr=9c934ea07417, found 0 host(s)
Jul 1 23:44:00 is-kea-03: DHCP4_CLASS_ASSIGNED [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: client packet has been assigned to the following class(es): UNKNOWN
Jul 1 23:44:00 is-kea-03: DHCP4_CLASS_ASSIGNED [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: client packet has been assigned to the following class(es): ALL, HA_is-kea-03, VENDOR_CLASS_Mfg=Xerox;Typ=MFP;Mod=Xerox AltaLink B8170 Multifunction Printer;Ser=HHZ763011;Loc=Mathematics Jones 100, UNKNOWN
Jul 1 23:44:00 is-kea-03: DHCP4_CLIENT_FQDN_PROCESS [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: processing Client FQDN option
Jul 1 23:44:00 is-kea-03: DHCP4_CLIENT_FQDN_DATA [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: Client sent FQDN option: type=81 (CLIENT_FQDN), flags: (N=0, E=0, O=0, S=1), domain-name='xrx9c934ea07417.wm.edu.' (full)
Jul 1 23:44:00 is-kea-03: DHCP4_RESPONSE_FQDN_DATA [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: including FQDN option in the server's response: type=81 (CLIENT_FQDN), flags: (N=1, E=0, O=1, S=0), domain-name='xrx9c934ea07417.wm.edu.' (full)
Jul 1 23:44:00 is-kea-03: ALLOC_ENGINE_V4_OFFER_NEW_LEASE allocation engine will try to offer new lease to the client [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78
Jul 1 23:44:00 is-kea-03: ALLOC_ENGINE_V4_ALLOC_FAIL_SHARED_NETWORK [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: failed to allocate an IPv4 address in the shared network printers-network: 0 subnets have no available addresses, 55 subnets have no matching pools
Jul 1 23:44:00 is-kea-03: ALLOC_ENGINE_V4_ALLOC_FAIL_NO_POOLS [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: no pools were available for the address allocation
Jul 1 23:44:00 is-kea-03: ALLOC_ENGINE_V4_ALLOC_FAIL_CLASSES [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: Failed to allocate an IPv4 address for client with classes: ALL, HA_is-kea-03, VENDOR_CLASS_Mfg=Xerox;Typ=MFP;Mod=Xerox AltaLink B8170 Multifunction Printer;Ser=HHZ763011;Loc=Mathematics Jones 100, UNKNOWN
Jul 1 23:44:00 is-kea-03: DHCP4_SUBNET_DYNAMICALLY_CHANGED [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: changed selected subnet 10.150.136.0/24 to subnet 10.150.135.0/24 from shared network printers-network for client assignments
Jul 1 23:44:00 is-kea-03: DHCP4_PACKET_NAK_0003 [hwtype=1 9c934ea07417], cid=[019c934ea074:17], tid=0xe36dbc78: failed to advertise a lease, client sent ciaddr 0.0.0.0, requested-ip-address (no address)
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of kea-users-request at lists.isc.org <kea-users-request at lists.isc.org>
Date: Tuesday, July 2, 2024 at 8:00 AM
To: kea-users at lists.isc.org <kea-users at lists.isc.org>
Subject: Kea-users Digest, Vol 121, Issue 2
Send Kea-users mailing list submissions to
kea-users at lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Cmbull%40wm.edu%7C0c3fb53d51ad4b3b2fe508dc9a8e8181%7Cb93cbc3e661d40588693a897b924b8d7%7C0%7C0%7C638555184068830981%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=e25tlcd1c55Hbe8YDl7x43smYchRElic8VGQCD1OftY%3D&reserved=0<https://lists.isc.org/mailman/listinfo/kea-users>
or, via email, send a message with subject or body 'help' to
kea-users-request at lists.isc.org
You can reach the person managing the list at
kea-users-owner at lists.isc.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Kea-users digest..."
Today's Topics:
1. Re: Reservation lookup fails (Peter Davies)
2. Re: Force subnet selection for specific interface (Darren Ankney)
----------------------------------------------------------------------
Message: 1
Date: Tue, 2 Jul 2024 07:25:11 +0200
From: Peter Davies <peterd at isc.org>
To: kea-users at lists.isc.org
Subject: Re: [Kea-users] Reservation lookup fails
Message-ID: <29ddca54-95c8-4d8b-8923-fa0b823f3509 at isc.org>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Hi Mary,
?? Is the correct subnet being selected (150136)?
Please share the complete Kea logging for this client.
Kind Regard Peter
On 02/07/2024 05.58, Bull, Mary wrote:
>
> I?ve set up host reservations with lookup specified by hw-address;
> however, the log is showing that devices are failing to find the
> reservation in the mysql backend.
>
> Log:
>
> *HOSTS_CFG_GET_ALL_IDENTIFIER*get all hosts with reservations using
> identifier: hwaddr=9c934ea07417
>
> *HOSTS_CFG_GET_ALL_IDENTIFIER*_COUNT using identifier
> hwaddr=9c934ea07417, found 0 host(s)
>
> However, I can search and find this same host in the hosts table in
> the database:
>
> MariaDB [kea]> select * from hosts where dhcp_identifier LIKE
> '9c934ea07417';
>
> +---------+-----------------+----------------------+-----------------+-----------------+--------------+----------+----------------------+----------------------+-------------------+-----------------------+----------------------+--------------+----------+
>
> | host_id | dhcp_identifier | dhcp_identifier_type | dhcp4_subnet_id |
> ipv4_address |
>
> +---------+-----------------+----------------------+-----------------+-----------------+--------------+----------+----------------------+----------------------+-------------------+-----------------------+----------------------+--------------+----------+
>
> | ? 34177 | 9c934ea07417? ? |? ? ? ? ? ? ? ? ? ? 0 | 150136 ? ? ?? ?
> 177637420
>
> I have the host database configured. There are no dynamic addresses
> given out for this subnet, only reserved addresses identified in hosts
> table.
>
> "hosts-database": {
>
> ??????? "type": "mysql",
>
> ??????? "name": "kea",
>
> ??????? "user": "kea",
>
> ??????? "host": "",
>
> }
>
> "host-reservation-identifiers": ["hw-address"],
>
> ??????? "reservations-global": false,
>
> ??????? "reservations-in-subnet": true,
>
> ??????? "reservations-out-of-pool": true,
>
>
--
Peter Davies
Support Engineer
Internet Systems Corporation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fpipermail%2Fkea-users%2Fattachments%2F20240702%2Fc1fd13dc%2Fattachment-0001.htm&data=05%7C02%7Cmbull%40wm.edu%7C0c3fb53d51ad4b3b2fe508dc9a8e8181%7Cb93cbc3e661d40588693a897b924b8d7%7C0%7C0%7C638555184068840523%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=h6GCMhM40lBj%2Fe9MSQNYMsl3ykeUTUC%2B%2BFO9LNGd1Os%3D&reserved=0<https://lists.isc.org/pipermail/kea-users/attachments/20240702/c1fd13dc/attachment-0001.htm>>
------------------------------
Message: 2
Date: Tue, 2 Jul 2024 05:30:34 -0400
From: Darren Ankney <darren.ankney at gmail.com>
To: "kea-users at lists.isc.org" <kea-users at lists.isc.org>
Subject: Re: [Kea-users] Force subnet selection for specific interface
Message-ID:
<CAKabWHi8PQLiZJrk84=FiS6pOg4d-1Jtsk3mu8p7G3N-H985fw at mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Hi Branimir,
> Yes, the traffic is relayed.
In that case, have a look at:
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkea.readthedocs.io%2Fen%2Fkea-2.4.1%2Farm%2Fdhcp4-srv.html%23using-a-specific-relay-agent-for-a-subnet&data=05%7C02%7Cmbull%40wm.edu%7C0c3fb53d51ad4b3b2fe508dc9a8e8181%7Cb93cbc3e661d40588693a897b924b8d7%7C0%7C0%7C638555184068845401%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=YTPiMP%2Bbk7Mv3HA6m8t4onf6pyySQBD5jnuZEuCWXbs%3D&reserved=0<https://kea.readthedocs.io/en/kea-2.4.1/arm/dhcp4-srv.html#using-a-specific-relay-agent-for-a-subnet>
which allows you to give a directive to Kea that a relay agent should
be served by a certain subnet. This can also be done at the
shared-network level if you are using that concept.
Thank you,
Darren Ankney
------------------------------
Subject: Digest Footer
_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.isc.org%2Fcontact%2F&data=05%7C02%7Cmbull%40wm.edu%7C0c3fb53d51ad4b3b2fe508dc9a8e8181%7Cb93cbc3e661d40588693a897b924b8d7%7C0%7C0%7C638555184068850405%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=fMSA%2BoxFu5jwm4RXNQkPc5JfmL3iHpKVUbxegq4acJU%3D&reserved=0<https://www.isc.org/contact/> for more information.
Kea-users mailing list
Kea-users at lists.isc.org
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Cmbull%40wm.edu%7C0c3fb53d51ad4b3b2fe508dc9a8e8181%7Cb93cbc3e661d40588693a897b924b8d7%7C0%7C0%7C638555184068854969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=LNavX8LBEwlp3UgCrIuYY1U9KVcFHcncpz0w%2FXlCTcE%3D&reserved=0<https://lists.isc.org/mailman/listinfo/kea-users>
------------------------------
End of Kea-users Digest, Vol 121, Issue 2
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240702/55234087/attachment-0001.htm>
More information about the Kea-users
mailing list