<div dir="ltr"><div dir="ltr"><div dir="ltr">I tried supplying a DHCP server IP address as suggested, but perfdhcp still isn't reporting receiving responses. Wireshark capture shows that the DHCP server responded. Does something on the host running perfdhcp need to be configured?</div><div dir="ltr"><br></div><div dir="ltr">Thanks and regards,</div><div dir="ltr">Rick<br><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace">[perfdhcp command & output]<br></font><font face="monospace, monospace">$ perfdhcp -xaeistT -r1 -n1 -B -L 6767 -i -l wlp8s0 10.20.100.10<br></font><font face="monospace, monospace">Running: perfdhcp -x aeistT -r 1 -n 1 -B -L 6767 -i -l wlp8s0 10.20.100.10<br></font><font face="monospace, monospace">IPv4<br></font><font face="monospace, monospace">DISCOVER-OFFER only<br></font><font face="monospace, monospace">lease-type=address-only (IA_NA option added to the client's request)<br></font><font face="monospace, monospace">rate[1/s]=1<br></font><font face="monospace, monospace">num-request[0]=1<br></font><font face="monospace, monospace">drop-time[0]=1<br></font><font face="monospace, monospace">drop-time[1]=1<br></font><font face="monospace, monospace">aggressivity=1<br></font><font face="monospace, monospace">local-port=6767<br></font><font face="monospace, monospace">broadcast<br></font><font face="monospace, monospace">elp-offset=-1<br></font><font face="monospace, monospace">sid-offset=-1<br></font><font face="monospace, monospace">rip-offset=-1<br></font><font face="monospace, monospace">diagnostic-selectors=aeistT<br></font><font face="monospace, monospace">interface=wlp8s0<br></font><font face="monospace, monospace">server=10.20.100.10<br></font><font face="monospace, monospace">Set MAC to 00::0c::01::02::03::04<br></font><font face="monospace, monospace">Set DUID to 00010001246411c7000c01020304<br></font><font face="monospace, monospace">Reached max requests limit.<br></font><font face="monospace, monospace">***Rate statistics***<br></font><font face="monospace, monospace">Rate: 0 DISCOVER-OFFER/second, expected rate: 1</font><font face="monospace, monospace"><br></font><font face="monospace, monospace">***Statistics for: DISCOVER-OFFER***<br></font><font face="monospace, monospace">sent packets: 1<br></font><font face="monospace, monospace">received packets: 0<br></font><font face="monospace, monospace">drops: 1</font><font face="monospace, monospace"><br></font><font face="monospace, monospace">min delay: inf ms<br></font><font face="monospace, monospace">avg delay: Delay summary unavailable! No packets received.</font><font face="monospace, monospace"><br></font><font face="monospace, monospace">Late received packets: 0<br></font><font face="monospace, monospace">Late sent packets: 2<br></font><font face="monospace, monospace">Multiple packets receives: 0<br></font><font face="monospace, monospace">Short waits for packets: 2<br></font><font face="monospace, monospace">***Timestamps for packets: DISCOVER-OFFER***<br></font><font face="monospace, monospace">Unavailable! No packets received.</font><font face="monospace, monospace"><br></font><font face="monospace, monospace">Interrupted<br></font><font face="monospace, monospace">xid-offset=4<br></font><font face="monospace, monospace">random-offset=35<br></font><font face="monospace, monospace">contents: <br></font><font face="monospace, monospace">0000 01010601000000000000000000000000<br></font><font face="monospace, monospace">0020 00000000000000000a14640c000c0102<br></font><font face="monospace, monospace">0040 03040000000000000000000000000000<br></font><font face="monospace, monospace">0060 00000000000000000000000000000000<br></font><font face="monospace, monospace">0080 00000000000000000000000000000000<br></font><font face="monospace, monospace">00a0 00000000000000000000000000000000<br></font><font face="monospace, monospace">00c0 00000000000000000000000000000000<br></font><font face="monospace, monospace">00e0 00000000000000000000000000000000<br></font><font face="monospace, monospace">0100 00000000000000000000000000000000<br></font><font face="monospace, monospace">0120 00000000000000000000000000000000<br></font><font face="monospace, monospace">0140 00000000000000000000000000000000<br></font><font face="monospace, monospace">0160 00000000000000000000000000000000<br></font><font face="monospace, monospace">0180 00000000000000000000000000000000<br></font><font face="monospace, monospace">01a0 00000000000000000000000000000000<br></font><font face="monospace, monospace">01c0 00000000000000000000000063825363<br></font><font face="monospace, monospace">01e0 3501013707011c02030f060c3d070100<br></font><font face="monospace, monospace">0200 0c01020304ff</font><font face="monospace, monospace"><br></font><font face="monospace, monospace">xid-offset=4<br></font><font face="monospace, monospace">random-offset=35<br></font><font face="monospace, monospace">srvid-offset=54<br></font><font face="monospace, monospace">time-offset=8<br></font><font face="monospace, monospace">ip-offset=240<br></font><font face="monospace, monospace">contents: </font></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace"><br></font><font face="monospace, monospace">[Wireshark Summary]<br></font><font face="monospace, monospace" size="1"> No. Time Source HW Src Addr Destination HW Dst Addr Protocol Length Info<br></font><font face="monospace, monospace" size="1"> 9 6.832764720 10.20.100.12 IntelCor_52:39:7e 10.20.100.10 ZyxelCom_4c:3c:40 DHCP 304 DHCP Discover - Transaction ID 0x0<br></font><font face="monospace, monospace" size="1"> Frame 9: 304 bytes on wire (2432 bits), 304 bytes captured (2432 bits) on interface 0<br></font><font face="monospace, monospace" size="1"> Ethernet II, Src: IntelCor_52:39:7e (44:85:00:52:39:7e), Dst: ZyxelCom_4c:3c:40 (5c:6a:80:4c:3c:40)<br></font><font face="monospace, monospace" size="1"> Internet Protocol Version 4, Src: 10.20.100.12, Dst: 10.20.100.10<br></font><font face="monospace, monospace" size="1"> User Datagram Protocol, Src Port: 6767, Dst Port: 67<br></font><font face="monospace, monospace" size="1"> Dynamic Host Configuration Protocol (Discover)<br></font><font face="monospace, monospace" size="1"> No. Time Source HW Src Addr Destination HW Dst Addr Protocol Length Info<br></font><font face="monospace, monospace" size="1"> 10 7.067694405 10.20.100.10 ZyxelCom_4c:3c:40 10.20.100.12 IntelCor_52:39:7e DHCP 326 DHCP Offer - Transaction ID 0x0<br></font><font face="monospace, monospace" size="1"> Frame 10: 326 bytes on wire (2608 bits), 326 bytes captured (2608 bits) on interface 0<br></font><font face="monospace, monospace" size="1"> Ethernet II, Src: ZyxelCom_4c:3c:40 (5c:6a:80:4c:3c:40), Dst: IntelCor_52:39:7e (44:85:00:52:39:7e)<br></font><font face="monospace, monospace" size="1"> Internet Protocol Version 4, Src: 10.20.100.10, Dst: 10.20.100.12<br></font><font face="monospace, monospace" size="1"> User Datagram Protocol, Src Port: 67, Dst Port: 67<br></font><font face="monospace, monospace" size="1"> Dynamic Host Configuration Protocol (Offer)<br></font><font face="monospace, monospace" size="1"> No. Time Source HW Src Addr Destination HW Dst Addr Protocol Length Info<br></font><font face="monospace, monospace" size="1"> 11 7.067807375 10.20.100.12 IntelCor_52:39:7e 10.20.100.10 ZyxelCom_4c:3c:40 ICMP 354 Destination unreachable (Host administratively prohibited)<br></font><font face="monospace, monospace" size="1"> Frame 11: 354 bytes on wire (2832 bits), 354 bytes captured (2832 bits) on interface 0<br></font><font face="monospace, monospace" size="1"> Ethernet II, Src: IntelCor_52:39:7e (44:85:00:52:39:7e), Dst: ZyxelCom_4c:3c:40 (5c:6a:80:4c:3c:40)<br></font><font face="monospace, monospace" size="1"> Internet Protocol Version 4, Src: 10.20.100.12, Dst: 10.20.100.10<br></font><font face="monospace, monospace" size="1"> Internet Control Message Protocol</font></blockquote><div><div><br></div></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 6, 2019 at 5:39 PM Marcin Siodelski <<a href="mailto:marcin@isc.org">marcin@isc.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The DHCPv4 protocol requires that the server sends packets to the<br>
directly connected clients which don't have an address yet and the<br>
clients without an address should be able to receive the DHCPACK. In<br>
order to simulate directly connected clients, perfdhcp would need to<br>
include extra complexity which doesn't seem to be worth the effort.<br>
<br>
In order to overcome this problem, we implemented perfdhcp in such a way<br>
that it simulates relayed traffic (sets giaddr to the IP address of the<br>
local interface via which perfdhcp sends traffic). In relayed<br>
configurations, the traffic is typically unicast to the server.<br>
<br>
The perfdhcp tool accepts optional 'server' argument which can be<br>
appended at the end of the command line which defaults to<br>
255.255.255.255. I suggest that you try specifying a unicast address<br>
where the DHCP server can be contacted instead of using the default<br>
broadcast address. If you use the default, perfdhcp may not handle it<br>
very well (depending on what the server sets as the source and<br>
destination IP address in the DHCPACK).<br>
<br>
Marcin Siodelski<br>
DHCP Software Engineer,<br>
ISC<br>
<br>
<br>
<br>
On 05/05/2019 00:44, Rick Graham wrote:<br>
> I compiled/installed v1.5 and I need a bit more help using perfdhcp.<br>
> <br>
> With Wireshark I can see packets going to and from the DHCP server, but<br>
> perfdhcp doesn't seem to see them. It's very possible that I'm not<br>
> using it correctly or that there is some other configuration that needs<br>
> to be made. I looked a little bit for a perfdhcp tutorial but didn't<br>
> find one.<br>
> <br>
> How should I use perfdhcp? Are there any requirements/setups required<br>
> for the host where the command is run? ... or for the DHCP server?<br>
> <br>
> Your help is greatly appreciated.<br>
> Rick<br>
> <br>
> [perfdhcp Command and Output]<br>
> $ perfdhcp -xaeistT -r1 -n1 -B -L 6767 -l wlp8s0<br>
> Running: perfdhcp -x aeistT -r 1 -n 1 -B -L 6767 -l wlp8s0<br>
> IPv4<br>
> lease-type=address-only (IA_NA option added to the client's request)<br>
> rate[1/s]=1<br>
> num-request[0]=1<br>
> drop-time[0]=1<br>
> drop-time[1]=1<br>
> aggressivity=1<br>
> local-port=6767<br>
> broadcast<br>
> elp-offset=-1<br>
> sid-offset=-1<br>
> rip-offset=-1<br>
> diagnostic-selectors=aeistT<br>
> interface=wlp8s0<br>
> server=255.255.255.255<br>
> Set MAC to 00::0c::01::02::03::04<br>
> Set DUID to 000100012460cc9e000c01020304<br>
> Reached max requests limit.<br>
> ***Rate statistics***<br>
> Rate: 0 4-way exchanges/second, expected rate: 1<br>
> ***Statistics for: DISCOVER-OFFER***<br>
> sent packets: 1<br>
> received packets: 0<br>
> drops: 1<br>
> min delay: inf ms<br>
> avg delay: Delay summary unavailable! No packets received.<br>
> ***Statistics for: REQUEST-ACK***<br>
> sent packets: 0<br>
> received packets: 0<br>
> drops: 0<br>
> min delay: inf ms<br>
> avg delay: Delay summary unavailable! No packets received.<br>
> Late received packets: 0<br>
> Late sent packets: 2<br>
> Multiple packets receives: 0<br>
> Short waits for packets: 2<br>
> ***Timestamps for packets: DISCOVER-OFFER***<br>
> Unavailable! No packets received.<br>
> ***Timestamps for packets: REQUEST-ACK***<br>
> Unavailable! No packets received.<br>
> Interrupted<br>
> xid-offset=4<br>
> random-offset=35<br>
> contents: <br>
> 0000 01010601000000000000000000000000<br>
> 0020 00000000000000000a14640c000c0102<br>
> 0040 03040000000000000000000000000000<br>
> 0060 00000000000000000000000000000000<br>
> 0080 00000000000000000000000000000000<br>
> 00a0 00000000000000000000000000000000<br>
> 00c0 00000000000000000000000000000000<br>
> 00e0 00000000000000000000000000000000<br>
> 0100 00000000000000000000000000000000<br>
> 0120 00000000000000000000000000000000<br>
> 0140 00000000000000000000000000000000<br>
> 0160 00000000000000000000000000000000<br>
> 0180 00000000000000000000000000000000<br>
> 01a0 00000000000000000000000000000000<br>
> 01c0 00000000000000000000000063825363<br>
> 01e0 3501013707011c02030f060c3d070100<br>
> 0200 0c01020304ff<br>
> xid-offset=4<br>
> random-offset=35<br>
> srvid-offset=54<br>
> time-offset=8<br>
> ip-offset=240<br>
> contents: <br>
> [Wireshark summary]<br>
> No. Time Source HW Src Addr <br>
> Destination HW Dst Addr Protocol Length Info<br>
> 26 6.517873909 10.20.100.12 IntelCor_52:39:7e <br>
> 255.255.255.255 Broadcast DHCP 304 DHCP<br>
> Discover - Transaction ID 0x0<br>
> Frame 26: 304 bytes on wire (2432 bits), 304 bytes captured (2432<br>
> bits) on interface 0<br>
> Ethernet II, Src: IntelCor_52:39:7e (44:85:00:52:39:7e), Dst:<br>
> Broadcast (ff:ff:ff:ff:ff:ff)<br>
> Internet Protocol Version 4, Src: 10.20.100.12, Dst: 255.255.255.255<br>
> User Datagram Protocol, Src Port: 6767, Dst Port: 67<br>
> Dynamic Host Configuration Protocol (Discover)<br>
> No. Time Source HW Src Addr <br>
> Destination HW Dst Addr Protocol Length Info<br>
> 27 6.809201927 10.20.100.10 ZyxelCom_4c:3c:40 <br>
> 10.20.100.12 IntelCor_52:39:7e DHCP 326 DHCP<br>
> Offer - Transaction ID 0x0<br>
> Frame 27: 326 bytes on wire (2608 bits), 326 bytes captured (2608<br>
> bits) on interface 0<br>
> Ethernet II, Src: ZyxelCom_4c:3c:40 (5c:6a:80:4c:3c:40), Dst:<br>
> IntelCor_52:39:7e (44:85:00:52:39:7e)<br>
> Internet Protocol Version 4, Src: 10.20.100.10, Dst: 10.20.100.12<br>
> User Datagram Protocol, Src Port: 67, Dst Port: 67<br>
> Dynamic Host Configuration Protocol (Offer)<br>
> No. Time Source HW Src Addr <br>
> Destination HW Dst Addr Protocol Length Info<br>
> 28 6.809242186 10.20.100.12 IntelCor_52:39:7e <br>
> 10.20.100.10 ZyxelCom_4c:3c:40 ICMP 354 <br>
> Destination unreachable (Host administratively prohibited)<br>
> Frame 28: 354 bytes on wire (2832 bits), 354 bytes captured (2832<br>
> bits) on interface 0<br>
> Ethernet II, Src: IntelCor_52:39:7e (44:85:00:52:39:7e), Dst:<br>
> ZyxelCom_4c:3c:40 (5c:6a:80:4c:3c:40)<br>
> Internet Protocol Version 4, Src: 10.20.100.12, Dst: 10.20.100.10<br>
> Internet Control Message Protocol<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> On Fri, May 3, 2019 at 12:53 PM Thomas Markwalder <<a href="mailto:tmark@isc.org" target="_blank">tmark@isc.org</a><br>
> <mailto:<a href="mailto:tmark@isc.org" target="_blank">tmark@isc.org</a>>> wrote:<br>
> <br>
> Hello:<br>
> <br>
> Perfdhcp is server agnostic. It communicates using standard DHCP<br>
> and DHCPv6 messages and should work with an RFC compliant server.<br>
> <br>
> Cheers,<br>
> <br>
> Thomas Markwalder<br>
> ISC Software Engineering<br>
> <br>
> <br>
> <br>
> On 5/3/19 3:05 AM, Rick Graham wrote:<br>
>> I would like to test the DHCP server of an IoT device on my local<br>
>> network. Is KEA's perfdhcp appropriate for this? Is there a<br>
>> better way/tool to test a (probably) non-KEA DHCP server?<br>
>><br>
>> Thanks and regards,<br>
>> Rick<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Kea-users mailing list<br>
>> <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a> <mailto:<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a>><br>
>> <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
> <br>
> _______________________________________________<br>
> Kea-users mailing list<br>
> <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a> <mailto:<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a>><br>
> <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
> <br>
> <br>
> _______________________________________________<br>
> Kea-users mailing list<br>
> <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
> <br>
<br>
</blockquote></div>