[Kea-users] failed to select subnet for the client
Francis Dupont
fdupont at isc.org
Mon May 29 07:28:02 UTC 2017
I suggest to add
"interface": "ens192",
into the "subnet": "172.0.1.0/24" specification if the failing client
is directly attached to this subnetwork.
Regards
Francis Dupont <fdupont at isc.org>
Yury Tsaregorodtsev writes:
>
>
> --===============5637547051936861049==
> Content-type: multipart/alternative;
> boundary="Apple-Mail=_B4223855-E749-49B7-9CD9-11B437C5A121"
>
>
> --Apple-Mail=_B4223855-E749-49B7-9CD9-11B437C5A121
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/plain;
> charset=us-ascii
>
> Hi!
> can anyone point me where is mistake?
> I almost tried everything, but always same errors :(
>
> 2017-05-28 14:26:03.392 DEBUG [kea-dhcp4.packets/30941] =
> DHCP4_BUFFER_RECEIVED received buffer from 0.0.0.0:68 to =
> 255.255.255.255:67 over interface ens192
> 2017-05-28 14:26:03.393 DEBUG [kea-dhcp4.options/30941] =
> DHCP4_BUFFER_UNPACK parsing buffer received from 0.0.0.0 to =
> 255.255.255.255 over interface ens192
> 2017-05-28 14:26:03.393 DEBUG [kea-dhcp4.packets/30941] =
> DHCP4_SUBNET_SELECTION_FAILED [hwtype=3D1 00:50:56:85:12:ad], =
> cid=3D[01:00:50:56:85:12:ad], tid=3D0x25c7e4d: failed to select subnet =
> for the client
> 2017-05-28 14:26:03.393 DEBUG [kea-dhcp4.bad-packets/30941] =
> DHCP4_PACKET_DROP_0002 [hwtype=3D1 00:50:56:85:12:ad], =
> cid=3D[01:00:50:56:85:12:ad], tid=3D0x25c7e4d, from interface ens192: no =
> suitable subnet configured for a direct client
>
>
> kea.conf
> {
> "Dhcp4": {
> "interfaces-config": {
> "interfaces": [ "ens192" ],
> "dhcp-socket-type": "raw"
> },
>
> "control-socket": {
> "socket-type": "unix",
> "socket-name": "/tmp/kea-dhcp4-ctrl.sock"
> },
>
> "lease-database": {
> "type": "mysql",
> "name": "kea_dhcp",
> "user": "root",
> "password": "dfhsdjk234Zbnmbs",
> "host": "138.201.211.126",
> "port": 3306
> },
>
> "hosts-database": {
> "type": "mysql",
> "name": "kea_dhcp",
> "user": "root",
> "password": "dfhsdjk234Zbnmbs",
> "host": "138.201.211.126",
> "port": 3306
> },
>
> "expired-leases-processing": {
> "reclaim-timer-wait-time": 10,
> "flush-reclaimed-timer-wait-time": 25,
> "hold-reclaimed-time": 3600,
> "max-reclaim-leases": 100,
> "max-reclaim-time": 250,
> "unwarned-reclaim-cycles": 5
> },
> "renew-timer": 900,
> "rebind-timer": 1800,
> "valid-lifetime": 3600,
>
> "subnet4": [
> {
> "subnet": "172.0.1.0/24",
> "pools": [ { "pool": "172.0.1.1 - 172.0.1.200" } ]
> }
> ]
> }
> }=
>
> --Apple-Mail=_B4223855-E749-49B7-9CD9-11B437C5A121
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/html;
> charset=us-ascii
>
> <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
> charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
> -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
> class=3D"">Hi!<div class=3D"">can anyone point me where is =
> mistake?</div><div class=3D"">I almost tried everything, but always same =
> errors :(</div><div class=3D""><br class=3D""></div><div class=3D""><div =
> style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
> Menlo; background-color: rgb(255, 255, 255);" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D"">2017-05-28 14:26:03.392 DEBUG [kea-dhcp4.packets/30941] =
> DHCP4_BUFFER_RECEIVED received buffer from 0.0.0.0:68 to =
> 255.255.255.255:67 over interface ens192</span></div><div style=3D"margin:=
> 0px; font-size: 11px; line-height: normal; font-family: Menlo; =
> background-color: rgb(255, 255, 255);" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D"">2017-05-28 14:26:03.393 DEBUG [kea-dhcp4.options/30941] =
> DHCP4_BUFFER_UNPACK parsing buffer received from 0.0.0.0 to =
> 255.255.255.255 over interface ens192</span></div><div style=3D"margin: =
> 0px; font-size: 11px; line-height: normal; font-family: Menlo; =
> background-color: rgb(255, 255, 255);" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D"">2017-05-28 14:26:03.393 DEBUG [kea-dhcp4.packets/30941] =
> DHCP4_SUBNET_SELECTION_FAILED [hwtype=3D1 00:50:56:85:12:ad], =
> cid=3D[01:00:50:56:85:12:ad], tid=3D0x25c7e4d: failed to select subnet =
> for the client</span></div><div style=3D"margin: 0px; font-size: 11px; =
> line-height: normal; font-family: Menlo; background-color: rgb(255, 255, =
> 255);" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D"">2017-05-28 14:26:03.393 DEBUG =
> [kea-dhcp4.bad-packets/30941] DHCP4_PACKET_DROP_0002 [hwtype=3D1 =
> 00:50:56:85:12:ad], cid=3D[01:00:50:56:85:12:ad], tid=3D0x25c7e4d, from =
> interface ens192: no suitable subnet configured for a direct =
> client</span></div></div><div style=3D"margin: 0px; font-size: 11px; =
> line-height: normal; font-family: Menlo; background-color: rgb(255, 255, =
> 255);" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""><br class=3D""></span></div><div =
> style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
> Menlo; background-color: rgb(255, 255, 255);" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" class=3D""><br =
> class=3D""></span></div><div style=3D"margin: 0px; font-size: 11px; =
> line-height: normal; font-family: Menlo; background-color: rgb(255, 255, =
> 255);" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D"">kea.conf</span></div><div style=3D"margin:=
> 0px; font-size: 11px; line-height: normal; font-family: Menlo; =
> background-color: rgb(255, 255, 255);" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" class=3D""><div =
> style=3D"margin: 0px; line-height: normal;" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D"">{</span></div><div style=3D"margin: 0px; line-height: normal; =
> min-height: 13px;" class=3D"">"Dhcp4": {</div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> "interfaces-config": =
> {</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "interfaces": [ "ens192" =
> ],</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "dhcp-socket-type": =
> "raw"</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> },</span></div><div style=3D"margin: 0px; =
> line-height: normal; min-height: 13px;" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> "control-socket": =
> {</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "socket-type": =
> "unix",</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "socket-name": =
> "/tmp/kea-dhcp4-ctrl.sock"</span></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> },</span></div><div =
> style=3D"margin: 0px; line-height: normal; min-height: 13px;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> "lease-database": =
> {</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "type": =
> "mysql",</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "name": =
> "kea_dhcp",</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "user": =
> "root",</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "password": =
> "dfhsdjk234Zbnmbs",</span></div><div style=3D"margin: 0px; line-height: =
> normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> =
> "host": "138.201.211.126",</span></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> =
> "port": 3306</span></div><div style=3D"margin: 0px; line-height: =
> normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> },</span></div><div =
> style=3D"margin: 0px; line-height: normal; min-height: 13px;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> "hosts-database": =
> {</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "type": =
> "mysql",</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "name": =
> "kea_dhcp",</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "user": =
> "root",</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "password": =
> "dfhsdjk234Zbnmbs",</span></div><div style=3D"margin: 0px; line-height: =
> normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> =
> "host": "138.201.211.126",</span></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> =
> "port": 3306</span></div><div style=3D"margin: 0px; line-height: =
> normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> },</span></div><div =
> style=3D"margin: 0px; line-height: normal; min-height: 13px;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> =
> "expired-leases-processing": {</span></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> =
> "reclaim-timer-wait-time": 10,</span></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D""> =
> "flush-reclaimed-timer-wait-time": 25,</span></div><div style=3D"margin: =
> 0px; line-height: normal;" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
> "hold-reclaimed-time": 3600,</span></div><div =
> style=3D"margin: 0px; line-height: normal;" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
> "max-reclaim-leases": 100,</span></div><div =
> style=3D"margin: 0px; line-height: normal;" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
> "max-reclaim-time": 250,</span></div><div =
> style=3D"margin: 0px; line-height: normal;" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
> "unwarned-reclaim-cycles": 5</span></div><div =
> style=3D"margin: 0px; line-height: normal;" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
> },</span></div><div style=3D"margin: 0px; line-height: normal; =
> min-height: 13px;" class=3D""> "renew-timer": 900,<span =
> style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""></span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> "rebind-timer": 1800,</span></div><div =
> style=3D"margin: 0px; line-height: normal;" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" class=3D""> =
> "valid-lifetime": 3600,</span></div><div style=3D"margin: 0px; =
> line-height: normal; min-height: 13px;" class=3D""><br =
> class=3D""></div><div style=3D"margin: 0px; line-height: normal; =
> min-height: 13px;" class=3D""> "subnet4": [<span =
> style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""></span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> {</span></div><div style=3D"margin:=
> 0px; line-height: normal;" class=3D""> =
> "subnet": "172.0.1.0/24",</div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""> =
> "pools": [ { "pool": "172.0.1.1 - 172.0.1.200" } ]</div><div =
> style=3D"margin: 0px; line-height: normal;" class=3D""><span =
> style=3D"font-variant-ligatures: no-common-ligatures" class=3D""><span =
> class=3D"Apple-tab-span" style=3D"white-space:pre"> =
> </span>}</span></div><div style=3D"margin: 0px; line-height: normal;" =
> class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
> class=3D""> ]</span></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D"">}</span></div><div style=3D"margin: 0px; =
> line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
> no-common-ligatures" class=3D"">}</span></div></span></div></body></html>=
>
> --Apple-Mail=_B4223855-E749-49B7-9CD9-11B437C5A121--
>
> --===============5637547051936861049==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
> --===============5637547051936861049==--
>
More information about the Kea-users
mailing list