On Чт 28.09.2017 15:16, Francis Dupont wrote:
A client class is the easiest way to perform specific subnet selection.

Regards

Francis Dupont <[email protected]>
.

  Trying this way, but does not work:

  "client-classes": [
    {
      "name": "routed_100_101_101_0_24",
      "test": "relay4[2].text == '100.101.101.0'"
    }
  ],

2017-09-28 15:27:31.459 DEBUG [kea-dhcp4.packets/4408] DHCP4_BUFFER_RECEIVED received buffer from x.x.x.156:67 to x.x.x..90:67 over interface lan0.96 2017-09-28 15:27:31.460 DEBUG [kea-dhcp4.options/4408] DHCP4_BUFFER_UNPACK parsing buffer received from x.x.x.156 to x.x.x.90 over interface lan0.96 2017-09-28 15:27:31.460 DEBUG [kea-dhcp4.eval/4408] EVAL_DEBUG_OPTION Pushing option 2 with value 'type=002, len=013: 31:30:30:2e:31:30:31:2e:31:30:31:2e:30' 2017-09-28 15:27:31.460 DEBUG [kea-dhcp4.eval/4408] EVAL_DEBUG_STRING Pushing text string '100.101.101.0' 2017-09-28 15:27:31.460 DEBUG [kea-dhcp4.eval/4408] EVAL_DEBUG_EQUAL Popping 0x3130302E3130312E3130312E30 and 0x747970653D3030322C206C656E3D3031333A2033313A33303A33303A32653A33313A33303A33313A32653A33313A33303A33313A32653A3330 pushing result 'false' 2017-09-28 15:27:31.460 DEBUG [kea-dhcp4.options/4408] EVAL_RESULT Expression routed_100_101_101_0_24 evaluated to 0 2017-09-28 15:27:31.460 DEBUG [kea-dhcp4.packets/4408] DHCP4_PACKET_RECEIVED [hwtype=1 74:23:44:5d:44:4a], cid=[01:74:23:44:5d:44:4a], tid=0xb9926426: DHCPDISCOVER (type 1) received from x.x.x.156 to x.x.x.90 on interface lan0.96 2017-09-28 15:27:31.460 DEBUG [kea-dhcp4.packets/4408] DHCP4_QUERY_DATA [hwtype=1 74:23:44:5d:44:4a], cid=[01:74:23:44:5d:44:4a], tid=0xb9926426, packet details: local_address=x.x.x.90:67, remote_adress=x.x.x.156:67, msg_type=DHCPDISCOVER (1), transid=0xb9926426,
options:
  type=012, len=018: "RedmiNote3-xrn3pro" (string)
  type=053, len=001: 1 (uint8)
type=055, len=009: 1(uint8) 3(uint8) 6(uint8) 15(uint8) 26(uint8) 28(uint8) 51(uint8) 58(uint8) 59(uint8)
  type=057, len=002: 1500 (uint16)
  type=060, len=018: "android-dhcp-6.0.1" (string)
  type=061, len=007: 01:74:23:44:5d:44:4a
  type=082, len=023:,
options:
    type=001, len=006: fe:0b:2e:c1:f4:7a
    type=002, len=013: 31:30:30:2e:31:30:31:2e:31:30:31:2e:30
2017-09-28 15:27:31.461 DEBUG [kea-dhcp4.packets/4408] DHCP4_SUBNET_SELECTION_FAILED [hwtype=1 74:23:44:5d:44:4a], cid=[01:74:23:44:5d:44:4a], tid=0xb9926426: failed to select subnet for the client 2017-09-28 15:27:31.461 DEBUG [kea-dhcp4.dhcp4/4408] DHCP4_CLASS_ASSIGNED [hwtype=1 74:23:44:5d:44:4a], cid=[01:74:23:44:5d:44:4a], tid=0xb9926426: client packet has been assigned to the following class(es): VENDOR_CLASS_android-dhcp-6.0.1

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

Reply via email to