Community discussions

MikroTik App
 
millenium7
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Wed Mar 16, 2016 6:12 am

DHCP Option 82 circuit/remote ID for server leases in v7?

Tue Feb 08, 2022 8:59 am

This has been a huge limitation for us for a long time, being unable to do leases via DHCP Option82 parameters
I saw in RouterOS v7 that User Manager has had an overhaul, i'm wondering if its now possible to somehow use this (or just the base DHCP server) to assign addresses based on either the Circuit ID or Remote ID fields?

I see that custom attributes can be set in the User Manager tab, but I think this is in the opposite direction? i.e. these attributes are pushed to the client. They are not read and matched in order to assign an appropriate lease

I'd really like to get away from using a third party DHCP server that literally only exists for us because MikroTik doesn't seem to support this one thing, even though it will display both fields as read-only parameters on a lease
 
RcRaCk2k
Member Candidate
Member Candidate
Posts: 115
Joined: Mon May 07, 2012 10:40 pm

Re: DHCP Option 82 circuit/remote ID for server leases in v7?

Thu Feb 10, 2022 6:53 pm

Perhaps you can use Docker on your Mikrotik model to run exactly a instance of a DHCP Server that supports your needs.

So you do not need an extra device for this job.
 
millenium7
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Wed Mar 16, 2016 6:12 am

Re: DHCP Option 82 circuit/remote ID for server leases in v7?

Fri Feb 11, 2022 9:03 am

Perhaps you can use Docker on your Mikrotik model to run exactly a instance of a DHCP Server that supports your needs.

So you do not need an extra device for this job.
This requires learning how to work with docker, setting up a new DHCP server etc. It's a lot of administrative overhead as I want this to be easily manageable by staff members (even if a simple webpage with API integration and not directly logging into the router)
The really simple straightforward solution is to simply add this to DHCP server lease options, or in user manager. Quite a simple thing to do and doesn't add a bunch of extra headache points
 
syadnom
Forum Veteran
Forum Veteran
Posts: 794
Joined: Thu Jan 27, 2011 7:29 am

Re: DHCP Option 82 circuit/remote ID for server leases in v7?

Fri Jun 17, 2022 5:18 am

Perhaps you can use Docker on your Mikrotik model to run exactly a instance of a DHCP Server that supports your needs.

So you do not need an extra device for this job.
This requires learning how to work with docker, setting up a new DHCP server etc. It's a lot of administrative overhead as I want this to be easily manageable by staff members (even if a simple webpage with API integration and not directly logging into the router)
The really simple straightforward solution is to simply add this to DHCP server lease options, or in user manager. Quite a simple thing to do and doesn't add a bunch of extra headache points
Agreed, it would be really REALLY nice to just have this option in the DHCP server.

I don't even need it to be radius backed, I just want to hand out the same IP to clients regardless of their router without having to log in. ie, 'slot' and 'port' ID in option 82.

couple of use cases.

one, simple PtMP with DHCP Option 82 on the CPE, traditional wISP need w/o having extra software in the mix.

Also, port based DHCP... Consider a network switch with 24 ports. Would be a fantastic use case to pass IPs to specific ports, especially for things like IP cameras. Port 1 is 192.168.10.1/24 gw 254, port 7 is 192.168.10.7/24, or however you want to number it.

Who is online

Users browsing this forum: No registered users and 18 guests