Community discussions

MikroTik App
 
amorsen
newbie
Topic Author
Posts: 37
Joined: Wed Jun 13, 2007 2:17 pm

DHCP options by MAC-address pattern

Thu Aug 28, 2008 5:36 pm

It would be very nice if DHCP could set specific options depending on MAC-address. In our case we have some Snom-phones which expect the TFTP-server option to be in this weird format:
"http://provision.example.com/somewhere/{mac}", whereas the Linksys PAP2 expects the more conventional "provision.example.com".

In dnsmasq.conf, this is configured as follows:

dhcp-mac=snom,00:04:13:*:*:*
dhcp-option=66,"provision.example.com"
dhcp-option=snom,66,"http://provision.example.com/somewhere/{mac}"

Hopefully RouterOS could do it with a more human-friendly syntax.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: DHCP options by MAC-address pattern

Sun Aug 31, 2008 11:10 pm

and it would be nice if we could use RADIUS to add some DHCP Options in DHCP response...
 
amorsen
newbie
Topic Author
Posts: 37
Joined: Wed Jun 13, 2007 2:17 pm

Re: DHCP options by MAC-address pattern

Wed Sep 03, 2008 3:35 pm

If you're willing to depend on RADIUS, you could send the DHCP request off to a different DHCP-server -- possibly even running on the RADIUS-server.

Our problem is that we want the local net to work even when the WAN is down, and in most of our locations the RB is the only "server". The only solution is for the DHCP-server in RouterOS to acquire more features.
 
krzysioD
just joined
Posts: 10
Joined: Fri Nov 07, 2008 9:41 pm

Re: DHCP options by MAC-address pattern

Mon Dec 01, 2008 12:24 pm

What is the point of sending dhcp request off the LAN when you have multi IP devices in that LAN and you want to serve this DHCP-request in LAN or without external DHCP?

What i do now is for example add an option 43, it's 'vendor extension' to comunicate with specific kind of hardware:

i create separate vlans: DATA and VOICE, if any dhcp request is given, my mikrotik is responding with option 43.

This option has encoded some "magic", if normal PC receives the #43 it just ingores that option, receives IP and everything is OK

If my Ip-Phone gets #43, it goes to Voice VLAN (number encoded in #43 option) and asks for another DHCP offer.
BUT:
-If anyone uses VOICE vlan he gets the IP for VOICE servers (for ip-phones etc...)
-IF i need to have 2 devices with #43 option, then i'm hitting the wall (for example from my office: access point and IP-telephone).

So, if there was an option for using the mac-pattern it would be superb.
 
rnbguy
Frequent Visitor
Frequent Visitor
Posts: 55
Joined: Fri Sep 12, 2008 8:55 am

Re: DHCP options by MAC-address pattern

Thu Apr 09, 2009 7:31 am

has this been implemented by any chance? mac-patterns
 
exothermic
just joined
Posts: 9
Joined: Wed May 20, 2009 12:49 am

Re: DHCP options by MAC-address pattern

Wed May 20, 2009 12:51 am

This would be extremely useful to us as well.
 
User avatar
NetworkPro
Forum Guru
Forum Guru
Posts: 1376
Joined: Mon Jan 05, 2009 6:23 pm
Location: bit.ly/the-qos
Contact:

Re: DHCP options by MAC-address pattern

Mon Jul 20, 2009 3:09 pm

Yeah it can be useful. And right now I need to be able to assing the same IP address to more than one MAC addreesses. Not all working at once! When I brigde my LAN interface on my laptop, MAC address changess, I want it to get the same IP when bridged and when not bridged! How hard can this be for the developers? Not hard I guess.
 
variable
Member Candidate
Member Candidate
Posts: 217
Joined: Wed Apr 13, 2005 4:36 am

Re: DHCP options by MAC-address pattern

Wed Jun 01, 2011 10:20 pm

Any update to this? A Radius DHCP option would be awesome!
 
yams
just joined
Posts: 5
Joined: Wed Apr 20, 2016 8:22 pm

Re: DHCP options by MAC-address pattern

Wed Feb 14, 2018 9:44 pm

Hi

This is a verry old post but is there some new devloppement about this ?
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: DHCP options by MAC-address pattern

Thu May 06, 2021 11:00 am

Currently we can segregate some devices and give them differ pools.
First enable debug dhcp to found some entry like vendor id

my example

/ip dhcp-server vendor-class-id
add address-pool=bridge-lan__switch name=switch server=bridge-lan vid=SF200-48
add address-pool=bridge-lan__phone name=phone server=bridge-lan vid="Cisco SPA303"
add address-pool=bridge-wifi-guest name=android server=bridge-wifi-guest vid=android-dhcp-8.1.0
etc...
Proper devices will be group in differ IP range at the same DHCP SERVER.

Some devices not share that VendorID info and we still must use Make Static and set proper IP manual.

Who is online

Users browsing this forum: archemist, GoogleOther [Bot], tangent and 63 guests