DHCP lease assigned based on agent-circuit-id

Hello,

is there a possibility to assign static DHCP server leases to clients based on agent-circuit-id and not on client MAC address?

We use GPON and we would like to assign clients IP’s based on ONU serial number, not their MAC address. This would free us from recording client routers MAC addressess and the clients would get same IP based on ONU serial. The ONU’s are in bridge mode so they are basically “media converters”.

Most likely the ONU is NOT passing this data upstream to the DHCP server. By definition a Layer 2 CPE does not have any Layer 3 capabilities (well depending upon your system it may allow communication with the captive portal for entering the Registration ID

The issue is that your looking for the ONU to operate @ Layer2 as a bridge device.

One option would be to have the customer enter in the ONU as the user/pass into a captive Portal (hotspot) and then obtain an IP address based on what you had in Radius. This way if the customer changes their CPE the ONU is agnostic to this change and just used for the Serial Number Username from the customers view point.

Prior to DOCSIS being what it has become - we did this because of the 3COM CMTS being such a pain in the booty…

Not the best fix - but should work.

I forgot to mention that of course the ONU is passing correct agent-circuit-id which is based on ONU serial number.
Mikrotik DHCP server can see it. This information is visible in Active tab for the respective lease.

My question still is: how to match a lease based on this option and not on MAC address?