<div dir="LTR"><div dir="auto">I would look at discover and request captures for differences between perfdhcp and other clients. There should be something there that explains this behavior.<br></div></div><div class="chatflow-embed" x-type="signature"><br><table cellspacing="0" cellpedding="0" border="0" style="margin-bottom:4px"><tr><td><img src="https://res.spikenow.com/c/?id=2wrozubjbvijte7n&s=48&m=c&_ts=qxmnq" width="24" height="24" style="vertical-align:bottom"></td><td width="4" nowrap> </td><td><a href="https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=qxmnq" style="text-decoration:none"><b style="color:#0084ff">Andrei Pavel</b><span style="color:#999"> - Chat @ Spike</span></a></td><td><img alt="qxmnq" width="10" height="10" src="https://spikenow.com/t/"></td></tr></table></div><div class="hop_extra"><br>On October 27, 2020 at 11:52 GMT, Ahiya Zadok <<a href="mailto:ahiya@younity.io">ahiya@younity.io</a>> wrote:<br><blockquote class="hop_quote" style="margin:0 0 0 .2ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><head></head><div><div style="word-wrap:break-word">  <div class="WordSection1"><p class="MsoNormal">What do you think?<span dir="RTL" style="font-family:"Arial",sans-serif"></span></p><p class="MsoNormal">Is there a way to make the perfdhcp, behave differently? </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b>From:</b> Ahiya Zadok <<a href="mailto:ahiya@younity.io">ahiya@younity.io</a>> <br><b>Sent:</b> Monday, October 26, 2020 2:46 PM<br><b>To:</b> '<a href="mailto:andrei@isc.org">andrei@isc.org</a>' <<a href="mailto:andrei@isc.org">andrei@isc.org</a>>; '<a href="mailto:kea-users@lists.isc.org">kea-users@lists.isc.org</a>' <<a href="mailto:kea-users@lists.isc.org">kea-users@lists.isc.org</a>><br><b>Subject:</b> RE: [Kea-users] address not being allocated with perfdhcp</p></div></div><p class="MsoNormal"> </p><p class="MsoNormal">Hi Andri</p><p class="MsoNormal"> </p><p class="MsoNormal">Thanks for responding.</p><p class="MsoNormal">On the perfdhcp I see all packets were dropped.</p><p class="MsoNormal"> </p><p class="MsoNormal">Regarding my setup:</p><p class="MsoNormal">I'm using FortiGate as the DHCP relay.</p><p class="MsoNormal">My DHCP server holds one interface with multiple pools.</p><p class="MsoNormal">All DHCP relay agents redirect requests to the DHCP server IP.</p><p class="MsoNormal">My traffic generator is a ubuntu 18.04 VM (ESXi) with one physical interface and multiple VLAN interfaces, configured via netplan.</p><p class="MsoNormal"> </p><p class="MsoNormal">Regarding packet capture:</p><p class="MsoNormal">I can see the request (broadcast) gets to the DHCP server.</p><p class="MsoNormal">I can see the offer send out of the DHCP server</p><p class="MsoNormal">But nothing comes out of the DHCP relay(fw)</p><p class="MsoNormal"> </p><p class="MsoNormal">On the other hand when I'm not using perfdhcp, but configuring DHCP client on the actual VLAN interface it works.</p><p class="MsoNormal"> </p><p class="MsoNormal">The big difference is when I'm using perfdhcp the relay agent IP on the request packets is the IP of the perfdhcp server.</p><p class="MsoNormal">When using standard dhcp-client the relay agent ip on the request packets is the ip of the fw (the real dhcp relay).</p><p class="MsoNormal"> </p><p class="MsoNormal">ahiya</p><p class="MsoNormal"> </p><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b>From:</b> <a href="mailto:andrei@isc.org">andrei@isc.org</a> <<a href="mailto:andrei@isc.org">andrei@isc.org</a>> <br><b>Sent:</b> Monday, October 26, 2020 12:17 PM<br><b>To:</b> <a href="mailto:ahiya@younity.io">ahiya@younity.io</a>; <a href="mailto:kea-users@lists.isc.org">kea-users@lists.isc.org</a><br><b>Subject:</b> Re: [Kea-users] address not being allocated with perfdhcp</p></div><p class="MsoNormal"> </p><div><div><p class="MsoNormal">Hi,</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">DHCP4_LEASE_ADVERT is usually a good sign. Log shows that an address has been allocated.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">What do you mean by allocation not occuring or accruing? Does the perfdhcp report the packet as dropped? Does the packet reach perfdhcp's interface if you do a capture?</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Moreover, how is this VLAN set up? Are both VLAN interfaces on the same machine? Why do you need to use VLANs if the VLAN-free setup works?</p></div></div><div><p class="MsoNormal"> </p><table class="MsoNormalTable" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="padding:.75pt .75pt .75pt .75pt"><p class="MsoNormal" style="margin-bottom:3.0pt"><img style="width:.25in;height:.25in" id="_x0000_i1027" src="https://res.spikenow.com/c/?id=2wrozubjbvijte7n&s=48&m=c&_ts=qsblq" width="24" height="24" border="0"></p></td><td style="width:3.0pt;padding:.75pt .75pt .75pt .75pt" width="4" nowrap=""><p class="MsoNormal" style="margin-bottom:3.0pt"> </p></td><td style="padding:.75pt .75pt .75pt .75pt"><p class="MsoNormal" style="margin-bottom:3.0pt"><a href="https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=qsblq"><b><span style="color:#0084ff;text-decoration:none">Andrei Pavel</span></b><span style="color:#999999;text-decoration:none"> - Chat @ Spike</span></a></p></td><td style="padding:.75pt .75pt .75pt .75pt"><p class="MsoNormal" style="margin-bottom:3.0pt"><img style="width:.1041in;height:.1041in" id="_x0000_i1026" src="https://spikenow.com/t/" alt="qsblq" width="10" height="10" border="0"></p></td></tr></tbody></table></div><div><p class="MsoNormal"><span style="color:white"><br>On October 26, 2020 at 7:47 GMT, Ahiya Zadok <</span><a href="mailto:ahiya@younity.io">ahiya@younity.io</a>> wrote:</p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:1.2pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"><div><p class="MsoNormal"> </p></div><div><div><div><p class="MsoPlainText">hi All</p><p class="MsoPlainText">I’m using perfdhcp to test my kea-DHCP, while trying to produce DHCP requests via VLAN interfaces, the address allocation process doesn't end <a href="http://successfully.in">successfully.in</a> the DHCP log I see all sessions end with "DHCP4_LEASE_ADVERT" message and no allocation accurse.</p><p class="MsoPlainText">while using perfdhcp without VLAN the allocation accrues successfully.</p><p class="MsoPlainText">while using the VLAN interface with a single DHCP client (netplan not prefdhcp) allocation to the VLAN interface is successful.</p><p class="MsoPlainText">so it seems like when using the VLAN interface with prefdhcp the client doesn't claim the offered address. </p><p class="MsoPlainText">basically, I'm a bit lost here, so if someone has any idea what is happing here, it will be awesome. </p><p class="MsoPlainText">i hope I'm just missing an option in my perfdhcp command and not a limitation.</p><p class="MsoPlainText">attached debug log of the fail transaction.</p><p class="MsoPlainText"> </p><p class="MsoPlainText">Thanks </p><p class="MsoPlainText"> </p></div></div></div><div><p class="MsoNormal"> </p></div></blockquote></div><div><p class="MsoNormal"><img style="width:.3437in;height:.0104in" id="_x0000_i1025" src="https://bolt.im/t/?1MwFF593vsULLQgGs9hSqwUNXDTdGy4-iiaVsGxrGctu1XVnDJcHbDR3texP1aKWojFO2b8edGKkAfW7fYU7Qw" width="33" height="1" border="0"></p></div></div>

</div></div><div><br></div></blockquote></div><div class="chatflow-status"><img src="https://bolt.im/t/?VfuCXh35SR_8N9Hbbprg7QpyqrCYw5AjpPuXZkqfum8sZogIzTtmlwoFdUNVfPhoGXnsNYsW8j4rnLL8z6FxFw"></div>