Hello,
i have a problem with the IP ranges of multiple subnets for dhcp which i dont understand. My linux dhcp server has the IP 192.168.22.10 and netmask /23. enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 00:e0:c5:22:fd:3a brd ff:ff:ff:ff:ff:ff inet 192.168.22.10/23 brd 192.168.23.255 scope global enp1s0 valid_lft forever preferred_lft forever Then i have "Dhcp4": { "interfaces-config": { "interfaces": [ "enp1s0" ], "dhcp-socket-type": "raw" }, ..... "client-classes": [ { "name": "Yealink-Phone1", "test": "substring(option[60].hex,0,7) == 'yealink'" }, { "name": "CiscoPhone", "test": "substring(option[60].hex,0,13) == 'Cisco Systems'" }, { "name": "DROP", "test": "not member('Yealink-Phone1') and not member('CiscoPhone')" } ], ....... "subnet4": [ { "id": 1, "subnet": "192.168.22.0/24", "pools": [ { "pool": "192.168.22.35 - 192.168.22.254" } ], "client-class": "Yealink-Phone1", "option-data": [ { "name": "routers", "data": "192.168.23.254" }, { "code": 66, "data": "https://FooBar" }, { "name": "name-servers", "data": "192.168.22.10" } ] }, { "id": 2, "subnet": "192.168.23.0/24", "pools": [ { "pool": "192.168.23.200 - 192.168.23.238" } ], "client-class": "CiscoPhone", "option-data": [ { "name": "ntp-servers", "code": 42, "data": "192.168.22.11" }, { "code": 66, "data": "FooBar02" }, ] } ] } } The requests from the phones come in and are assigned to classes. The Yealink phones shall live in 192.168.22.0/24 and the Cisco phones in 192.168.23.0/24. 2024-10-30 10:19:37.205 INFO [kea-dhcp4.options/19394.140372922102272] EVAL_RESULT Expression Yealink-Phone01 evaluated to 1 2024-10-30 10:19:40.932 INFO [kea-dhcp4.options/19394.140372922102272] EVAL_RESULT Expression CiscoPhone evaluated to 1 The Yealink phones getting IPs, the Cisco phones not. 2024-10-30 10:20:12.933 DEBUG [kea-dhcp4.bad-packets/19394.140372922102272] DHCP4_PACKET_DROP_0002 [hwtype=1 f0:9e:63:0f:5a:6a], cid=[01:f0:9e:63:0f:5a:6a], tid=0x5f9c, from interface enp1s0: no suitable subnet configured for a direct client The error message is "no suitable subnet configured for a direct client". If i give the cisco phones a part of 192.168.22.0 they get IPs to. So it's a probably an error with the netmask which i dont understand. The server has 192.168.22.0/23 so 192.168.23.0/24 should be part of his address range. Could someone pls explain why the server dont distributes IPs from 192.168.23.0 ? regards Jörg -- Mit freundlichen Grüßen im Auftrage Jörg Hartmann Referat P2 / IT-Stelle Landesrechnungshof Sachsen-Anhalt 06844 Dessau-Roßlau, Kavalierstraße 31
-- 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 Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users