[Kea-users] address not being allocated with perfdhcp

Andrei Pavel andrei at isc.org
Thu Oct 29 07:04:01 UTC 2020


I would look at discover and request captures for differences between perfdhcp and other clients. There should be something there that explains this behavior.

[Andrei Pavel - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=qxmnq)	[qxmnq]

On October 27, 2020 at 11:52 GMT, Ahiya Zadok <ahiya at younity.io> wrote:

What do you think?

Is there a way to make the perfdhcp, behave differently?

From: Ahiya Zadok <ahiya at younity.io>
Sent: Monday, October 26, 2020 2:46 PM
To: 'andrei at isc.org' <andrei at isc.org>; 'kea-users at lists.isc.org' <kea-users at lists.isc.org>
Subject: RE: [Kea-users] address not being allocated with perfdhcp

Hi Andri

Thanks for responding.

On the perfdhcp I see all packets were dropped.

Regarding my setup:

I'm using FortiGate as the DHCP relay.

My DHCP server holds one interface with multiple pools.

All DHCP relay agents redirect requests to the DHCP server IP.

My traffic generator is a ubuntu 18.04 VM (ESXi) with one physical interface and multiple VLAN interfaces, configured via netplan.

Regarding packet capture:

I can see the request (broadcast) gets to the DHCP server.

I can see the offer send out of the DHCP server

But nothing comes out of the DHCP relay(fw)

On the other hand when I'm not using perfdhcp, but configuring DHCP client on the actual VLAN interface it works.

The big difference is when I'm using perfdhcp the relay agent IP on the request packets is the IP of the perfdhcp server.

When using standard dhcp-client the relay agent ip on the request packets is the ip of the fw (the real dhcp relay).

ahiya

From: andrei at isc.org <andrei at isc.org>
Sent: Monday, October 26, 2020 12:17 PM
To: ahiya at younity.io; kea-users at lists.isc.org
Subject: Re: [Kea-users] address not being allocated with perfdhcp

Hi,

DHCP4_LEASE_ADVERT is usually a good sign. Log shows that an address has been allocated.

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?

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?

[Andrei Pavel - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=qsblq)

[qsblq]

On October 26, 2020 at 7:47 GMT, Ahiya Zadok <ahiya at younity.io> wrote:

hi All

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 successfully.in the DHCP log I see all sessions end with "DHCP4_LEASE_ADVERT" message and no allocation accurse.

while using perfdhcp without VLAN the allocation accrues successfully.

while using the VLAN interface with a single DHCP client (netplan not prefdhcp) allocation to the VLAN interface is successful.

so it seems like when using the VLAN interface with prefdhcp the client doesn't claim the offered address.

basically, I'm a bit lost here, so if someone has any idea what is happing here, it will be awesome.

i hope I'm just missing an option in my perfdhcp command and not a limitation.

attached debug log of the fail transaction.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20201029/6ed4ce04/attachment.htm>


More information about the Kea-users mailing list