Я так понял что нужно использовать обработчик dhcp(в конфиге ацеля) "InetDhcpProccessor", У меня использовался "InetDhcpHelperProccesor". После изменения появилось в логах заветное "Found agentDevice".
После изменения идентификатора в верхний регистер , DHCP запросы игнорируются
Код:
dhcp 07-28/12:57:21 DEBUG [dhcpLstnr-p-11-t-7] InetDhcpDeviceMap - Found device by giaddr id=2
dhcp 07-28/12:57:21 DEBUG [dhcpLstnr-p-11-t-7] InetDhcpDeviceMap - Found subDevice by identifier id=3
dhcp 07-28/12:57:21 WARN [dhcpLstnr-p-11-t-7] DhcpListenerWorker - Device not found for address: 192.168.12.247, ignoring DHCP request.
как только пишу в нижнем свитч перестает игнорироваться, но при этом и адрес не выдает и сервисная сессия не стартует, сыпит ошибки .
Код:
dhcp 07-28/13:06:59 DEBUG [dhcpLstnr-p-11-t-4] InetDhcpProcessor - OP_BOOT_REQUEST
dhcp 07-28/13:06:59 DEBUG [dhcpLstnr-p-11-t-4] InetDhcpProcessor - DHCP_DISCOVER
dhcp 07-28/13:06:59 DEBUG [dhcpLstnr-p-11-t-4] InetDhcpProcessor - request.giaddr= 192.168.12.247, clientAddress=/192.168.12.247:67
dhcp 07-28/13:06:59 ERROR [dhcpLstnr-p-11-t-4] InetDhcpProcessor - 5
java.lang.ArrayIndexOutOfBoundsException: 5
at ru.bitel.bgbilling.modules.inet.api.server.InetUtils.parseInt(InetUtils.java:454)
at ru.bitel.bgbilling.modules.inet.runtime.device.AbstractInetDeviceRuntime.getOption82InterfaceId(AbstractInetDeviceRuntime.java:264)
at ru.bitel.bgbilling.modules.inet.runtime.device.InetDeviceRuntime.getOption82InterfaceId(InetDeviceRuntime.java:1)
at ru.bitel.bgbilling.modules.inet.dhcp.InetDhcpDevice.findServRuntime(InetDhcpDevice.java:271)
at ru.bitel.bgbilling.modules.inet.dhcp.InetDhcpProcessor.processRequestImpl(InetDhcpProcessor.java:130)
at ru.bitel.bgbilling.modules.inet.dhcp.InetAbstractDhcpProcessor.processRequest(InetAbstractDhcpProcessor.java:55)
at ru.bitel.bgbilling.modules.inet.dhcp.InetAbstractDhcpProcessor.processRequest(InetAbstractDhcpProcessor.java:1)
at ru.bitel.bgbilling.kernel.network.dhcp.DhcpListenerWorker.runImpl(DhcpListenerWorker.java:55)
at ru.bitel.common.worker.WorkerTask.run(WorkerTask.java:86)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
at ru.bitel.common.worker.WorkerThread.run(WorkerThread.java:40)
dhcp 07-28/13:07:06 DEBUG [dhcpLstnr-p-11-t-5] InetDhcpDeviceMap - Found device by giaddr id=2
dhcp 07-28/13:07:06 INFO [dhcpLstnr-p-11-t-5] InetAbstractDhcpProcessor - REQUEST:
Message type: BOOT_REQUEST
Dhcp message type: DHCP Discover{1}
htype: 1, hlen: 6, hops: 2
xid: -1987272552, secs: 47, flags: -32768
Client IP: 0.0.0.0
Your IP: 0.0.0.0
Server IP: 0.0.0.0
Relay IP: 192.168.12.247
Client MAC: {000C42823FD4}
{61}={01000C42823FD4}
Parameter request list{55}={1, 121, 3, 33, 6, 42}
Host name{12}={comp2}
Agent information{82}=
sub{1}={00040003010F}
sub{2}={00060012CFF2A740}
dhcp 07-28/13:06:59 INFO [dhcpLstnr-p-11-t-4] InetAbstractDhcpProcessor - REQUEST_AFTER_PREPROCESS:
Message type: BOOT_REQUEST
Dhcp message type: DHCP Discover{1}
htype: 1, hlen: 6, hops: 2
xid: -1987272552, secs: 47, flags: -32768
Client IP: 0.0.0.0
Your IP: 0.0.0.0
Server IP: 0.0.0.0
Relay IP: 192.168.12.247
Client MAC: {000C42823FD4}
{61}={01000C42823FD4}
Parameter request list{55}={1, 121, 3, 33, 6, 42}
Host name{12}={comp2}
Agent information{82}=
sub{1}={0F}
sub{2}={0012CFF2A740}
Что может быть не так ?